@stacksjs/storage 0.49.1 → 0.49.3

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
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
- import { fileURLToPath } from 'node:url';
3
1
  import type { JsonFile, TextFile } from '@stacksjs/types';
4
2
  export declare const _dirname: any;
5
3
  /**
@@ -55,6 +53,5 @@ export declare const filesystem: {
55
53
  deleteEmptyFolders: typeof deleteEmptyFolders;
56
54
  doesFolderExist: typeof doesFolderExist;
57
55
  fs: any;
58
- fileURLToPath: typeof fileURLToPath;
59
56
  };
60
57
  export default filesystem;
package/dist/index.mjs CHANGED
@@ -1,7 +1,6 @@
1
1
  import { fileURLToPath } from "node:url";
2
2
  import fs from "fs-extra";
3
- import detectIndent from "detect-indent";
4
- import { detectNewline } from "detect-newline";
3
+ import { detectIndent, detectNewline } from "@stacksjs/utils";
5
4
  import { componentsPath, dirname, functionsPath, join, projectPath } from "@stacksjs/path";
6
5
  import { contains } from "@stacksjs/arrays";
7
6
  export const _dirname = typeof __dirname !== "undefined" ? __dirname : dirname(fileURLToPath(import.meta.url));
@@ -143,9 +142,8 @@ export const filesystem = {
143
142
  deleteFiles,
144
143
  deleteEmptyFolders,
145
144
  doesFolderExist,
146
- fs,
145
+ fs
147
146
  // potentially refactor to `...fs` but, currently, there is an issues when building @stacksjs/config
148
147
  // the problem is relating to https://github.com/microsoft/TypeScript/issues/5711#issuecomment-157793294
149
- fileURLToPath
150
148
  };
151
149
  export default filesystem;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/storage",
3
3
  "type": "module",
4
- "version": "0.49.1",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "0.49.3",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "description": "The Stacks file system.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -38,20 +38,20 @@
38
38
  ],
39
39
  "engines": {
40
40
  "node": ">=v18.13.0",
41
- "pnpm": ">=7.25.0"
41
+ "pnpm": ">=7.25.1"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "fs-extra": "^11.1.0",
45
45
  "unstorage": "^1.0.1",
46
- "@stacksjs/arrays": "0.49.1",
47
- "@stacksjs/types": "0.49.1",
48
- "@stacksjs/utils": "0.49.1"
46
+ "@stacksjs/arrays": "0.49.3",
47
+ "@stacksjs/types": "0.49.3",
48
+ "@stacksjs/utils": "0.49.3"
49
49
  },
50
50
  "devDependencies": {
51
51
  "mkdist": "^1.1.0",
52
52
  "typescript": "^4.9.4",
53
- "@stacksjs/path": "0.49.1",
54
- "@stacksjs/testing": "0.49.1"
53
+ "@stacksjs/path": "0.49.3",
54
+ "@stacksjs/testing": "0.49.3"
55
55
  },
56
56
  "scripts": {
57
57
  "build": "mkdist -d",