@stacksjs/storage 0.68.1 → 0.69.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/copy.d.ts +2 -2
- package/dist/files.d.ts +3 -3
- package/dist/fs.d.ts +3 -2
- package/dist/glob.d.ts +3 -4
- package/dist/index.js +66165 -29210
- package/dist/move.d.ts +2 -2
- package/dist/zip.d.ts +1 -1
- package/package.json +15 -15
package/dist/copy.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare function copy(src: string | string[], dest: string, exclude: string[]
|
|
1
|
+
export declare function copy(src: string | string[], dest: string, exclude: string[]): void;
|
|
2
2
|
export declare function copyFile(src: string, dest: string): void;
|
|
3
|
-
export declare function copyFolder(src: string, dest: string, exclude: string[]
|
|
3
|
+
export declare function copyFolder(src: string, dest: string, exclude: string[]): void;
|
package/dist/files.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { JsonFile, TextFile } from '@stacksjs/types';
|
|
1
|
+
import type { JsonFile, PackageJson, TextFile } from '@stacksjs/types';
|
|
2
2
|
|
|
3
3
|
export declare function readJsonFile(name: string, cwd?: string): Promise<JsonFile>;
|
|
4
4
|
export declare function readPackageJson(name: string, cwd?: string): Promise<PackageJson>;
|
|
@@ -12,8 +12,8 @@ export declare function doesNotExist(path: string): boolean;
|
|
|
12
12
|
export declare function hasFiles(folder: string): boolean;
|
|
13
13
|
export declare function hasComponents(): boolean;
|
|
14
14
|
export declare function hasFunctions(): boolean;
|
|
15
|
-
export declare function deleteFiles(dir: string, exclude: string[]
|
|
16
|
-
export declare function getFiles(dir: string, exclude: string[]
|
|
15
|
+
export declare function deleteFiles(dir: string, exclude: string[]): void;
|
|
16
|
+
export declare function getFiles(dir: string, exclude: string[]): string[];
|
|
17
17
|
export declare function put(path: string, contents: string): void;
|
|
18
18
|
export declare function get(path: string): Promise<string>;
|
|
19
19
|
export declare interface Files {
|
package/dist/fs.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { mkdirSync, pathExists as existsSync, readFileSync, watch as fsWatch, watchFile, writeFileSync } from 'fs-extra';
|
|
2
2
|
|
|
3
|
-
export
|
|
4
|
-
|
|
3
|
+
export declare function exists(path: string): Promise<boolean>;
|
|
4
|
+
|
|
5
|
+
export { existsSync, fs, fsWatch, mkdirSync, readFileSync, watchFile, writeFileSync }
|
package/dist/glob.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { globSync as gs } from 'tinyglobby';
|
|
2
|
-
|
|
3
|
-
export { glob } from 'tinyglobby'
|
|
4
1
|
export declare interface GlobOptions {
|
|
5
2
|
absolute?: boolean
|
|
6
3
|
cwd?: string
|
|
@@ -12,4 +9,6 @@ export declare interface GlobOptions {
|
|
|
12
9
|
onlyDirectories?: boolean
|
|
13
10
|
onlyFiles?: boolean
|
|
14
11
|
}
|
|
15
|
-
export declare function globSync(patterns: string | string[], options?: Omit<GlobOptions, 'patterns'>): string[];
|
|
12
|
+
export declare function globSync(patterns: string | string[], options?: Omit<GlobOptions, 'patterns'>): string[];
|
|
13
|
+
|
|
14
|
+
export { glob } from 'tinyglobby'
|