cli-argv-util 1.2.1 → 1.2.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/cli-argv-util.d.ts +2 -2
- package/dist/cli-argv-util.js +2 -2
- package/package.json +1 -1
package/dist/cli-argv-util.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//! cli-argv-util v1.2.
|
|
1
|
+
//! cli-argv-util v1.2.2 ~~ https://github.com/center-key/cli-argv-util ~~ MIT License
|
|
2
2
|
|
|
3
3
|
export type StringFlagMap = {
|
|
4
4
|
[flag: string]: string | undefined;
|
|
@@ -19,6 +19,6 @@ declare const cliArgvUtil: {
|
|
|
19
19
|
run(packageJson: {
|
|
20
20
|
[key: string]: unknown;
|
|
21
21
|
}, posix: string): Buffer;
|
|
22
|
-
|
|
22
|
+
readFolder(folder: string): string[];
|
|
23
23
|
};
|
|
24
24
|
export { cliArgvUtil };
|
package/dist/cli-argv-util.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//! cli-argv-util v1.2.
|
|
1
|
+
//! cli-argv-util v1.2.2 ~~ https://github.com/center-key/cli-argv-util ~~ MIT License
|
|
2
2
|
|
|
3
3
|
import { execSync } from 'node:child_process';
|
|
4
4
|
import fs from 'fs';
|
|
@@ -29,7 +29,7 @@ const cliArgvUtil = {
|
|
|
29
29
|
const command = process.platform === 'win32' ? posix.replaceAll('\\ ', '" "') : posix;
|
|
30
30
|
return execSync(command.replace(name, 'node bin/cli.js'), { stdio: 'inherit' });
|
|
31
31
|
},
|
|
32
|
-
|
|
32
|
+
readFolder(folder) {
|
|
33
33
|
return fs.readdirSync(folder, { recursive: true }).map(file => slash(String(file))).sort();
|
|
34
34
|
},
|
|
35
35
|
};
|