Skip to content

Commit

Permalink
Release v1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Aug 18, 2023
1 parent e84821e commit 64cd9fd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/cli-argv-util.d.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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 };
4 changes: 2 additions & 2 deletions dist/cli-argv-util.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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();
},
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 64cd9fd

Please sign in to comment.