@stacksjs/storage 0.49.1 → 0.49.2
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 +0 -3
- package/dist/index.mjs +2 -4
- package/package.json +6 -6
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 "
|
|
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/storage",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.49.
|
|
4
|
+
"version": "0.49.2",
|
|
5
5
|
"packageManager": "pnpm@7.25.0",
|
|
6
6
|
"description": "The Stacks file system.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"fs-extra": "^11.1.0",
|
|
45
45
|
"unstorage": "^1.0.1",
|
|
46
|
-
"@stacksjs/arrays": "0.49.
|
|
47
|
-
"@stacksjs/types": "0.49.
|
|
48
|
-
"@stacksjs/utils": "0.49.
|
|
46
|
+
"@stacksjs/arrays": "0.49.2",
|
|
47
|
+
"@stacksjs/types": "0.49.2",
|
|
48
|
+
"@stacksjs/utils": "0.49.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"mkdist": "^1.1.0",
|
|
52
52
|
"typescript": "^4.9.4",
|
|
53
|
-
"@stacksjs/path": "0.49.
|
|
54
|
-
"@stacksjs/testing": "0.49.
|
|
53
|
+
"@stacksjs/path": "0.49.2",
|
|
54
|
+
"@stacksjs/testing": "0.49.2"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"build": "mkdist -d",
|