diff --git a/dist/cli-argv-util.d.ts b/dist/cli-argv-util.d.ts index a9bb02e..1d9402e 100644 --- a/dist/cli-argv-util.d.ts +++ b/dist/cli-argv-util.d.ts @@ -1,4 +1,4 @@ -//! cli-argv-util v1.2.1 ~~ https://github.com/center-key/cli-argv-util ~~ MIT License +//! cli-argv-util v1.2.2 ~~ https://github.com/center-key/cli-argv-util ~~ MIT License export type StringFlagMap = { [flag: string]: string | undefined; @@ -19,6 +19,6 @@ declare const cliArgvUtil: { run(packageJson: { [key: string]: unknown; }, posix: string): Buffer; - readFiles(folder: string): string[]; + readFolder(folder: string): string[]; }; export { cliArgvUtil }; diff --git a/dist/cli-argv-util.js b/dist/cli-argv-util.js index 19d4893..8ad85e3 100644 --- a/dist/cli-argv-util.js +++ b/dist/cli-argv-util.js @@ -1,4 +1,4 @@ -//! cli-argv-util v1.2.1 ~~ https://github.com/center-key/cli-argv-util ~~ MIT License +//! cli-argv-util v1.2.2 ~~ https://github.com/center-key/cli-argv-util ~~ MIT License import { execSync } from 'node:child_process'; import fs from 'fs'; @@ -29,7 +29,7 @@ const cliArgvUtil = { const command = process.platform === 'win32' ? posix.replaceAll('\\ ', '" "') : posix; return execSync(command.replace(name, 'node bin/cli.js'), { stdio: 'inherit' }); }, - readFiles(folder) { + readFolder(folder) { return fs.readdirSync(folder, { recursive: true }).map(file => slash(String(file))).sort(); }, }; diff --git a/package.json b/package.json index 5879ea8..e54fd4b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cli-argv-util", - "version": "1.2.1", + "version": "1.2.2", "description": "Simple utility to parse command line parameters and flags (arguments vector)", "license": "MIT", "type": "module",