@stacksjs/storage 0.52.10 → 0.53.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
@@ -41,9 +41,10 @@ export declare function deleteEmptyFolders(dir: string): void;
41
41
  export declare function doesFolderExist(path: string): any;
42
42
  export declare function createFolder(dir: string): Promise<void>;
43
43
  export declare function updateConfigFile(filePath: string, newConfig: Record<string, unknown>): Promise<void>;
44
- export declare const filesystem: {
44
+ export declare const storage: {
45
45
  _dirname: any;
46
46
  readJsonFile: typeof readJsonFile;
47
+ readPackageJson: typeof readPackageJson;
47
48
  writeJsonFile: typeof writeJsonFile;
48
49
  readTextFile: typeof readTextFile;
49
50
  writeTextFile: typeof writeTextFile;
@@ -60,4 +61,3 @@ export declare const filesystem: {
60
61
  updateConfigFile: typeof updateConfigFile;
61
62
  fs: any;
62
63
  };
63
- export default filesystem;
package/dist/index.mjs CHANGED
@@ -141,9 +141,10 @@ export function updateConfigFile(filePath, newConfig) {
141
141
  resolve();
142
142
  });
143
143
  }
144
- export const filesystem = {
144
+ export const storage = {
145
145
  _dirname,
146
146
  readJsonFile,
147
+ readPackageJson,
147
148
  writeJsonFile,
148
149
  readTextFile,
149
150
  writeTextFile,
@@ -159,7 +160,4 @@ export const filesystem = {
159
160
  doesFolderExist,
160
161
  updateConfigFile,
161
162
  fs
162
- // potentially refactor to `...fs` but, currently, there is an issues when building @stacksjs/config
163
- // the problem is relating to https://github.com/microsoft/TypeScript/issues/5711#issuecomment-157793294
164
163
  };
165
- export default filesystem;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/storage",
3
3
  "type": "module",
4
- "version": "0.52.10",
4
+ "version": "0.53.1",
5
5
  "packageManager": "pnpm@8.5.1",
6
6
  "description": "The Stacks file system.",
7
7
  "author": "Chris Breuer",
@@ -45,13 +45,13 @@
45
45
  "peerDependencies": {
46
46
  "fs-extra": "^11.1.1",
47
47
  "unstorage": "^1.6.0",
48
- "@stacksjs/arrays": "0.52.10",
49
- "@stacksjs/path": "0.52.10",
50
- "@stacksjs/types": "0.52.10",
51
- "@stacksjs/utils": "0.52.10"
48
+ "@stacksjs/arrays": "0.53.1",
49
+ "@stacksjs/path": "0.53.1",
50
+ "@stacksjs/types": "0.53.1",
51
+ "@stacksjs/utils": "0.53.1"
52
52
  },
53
53
  "devDependencies": {
54
- "@stacksjs/development": "0.52.10"
54
+ "@stacksjs/development": "0.53.1"
55
55
  },
56
56
  "scripts": {
57
57
  "build": "unbuild",