command-line-config 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -2,3 +2,8 @@ import { readFileSync } from 'node:fs';
2
2
  export type ReadFileOptions = Parameters<typeof readFileSync>[1];
3
3
  export declare function load(path?: string, readFileOptions?: ReadFileOptions): unknown | undefined;
4
4
  export declare function save(obj: unknown, path?: string): boolean;
5
+ declare const FileLoader: {
6
+ load: typeof load;
7
+ save: typeof save;
8
+ };
9
+ export default FileLoader;
package/dist/index.js CHANGED
@@ -43,4 +43,9 @@ export function save(obj, path) {
43
43
  }
44
44
  return false;
45
45
  }
46
+ const FileLoader = {
47
+ load,
48
+ save,
49
+ };
50
+ export default FileLoader;
46
51
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "command-line-config",
3
- "version": "2.1.0",
4
- "main": "./index.js",
3
+ "version": "2.1.1",
4
+ "main": "./dist/index.js",
5
5
  "type": "module",
6
6
  "devDependencies": {
7
7
  "@isoftdata/prettier-config-base": "^1.0.3",
@@ -15,7 +15,8 @@
15
15
  ],
16
16
  "scripts": {
17
17
  "build": "tsc",
18
- "build-watch": "tsc -w"
18
+ "build-watch": "tsc -w",
19
+ "prepublishOnly": "npm run build"
19
20
  },
20
21
  "prettier": "@isoftdata/prettier-config-base"
21
22
  }