From 1efe27c8103961ac600932c98cbcb9519feaa27f Mon Sep 17 00:00:00 2001 From: isaacs Date: Tue, 21 May 2024 12:00:50 -0700 Subject: [PATCH] jackspeak@3.1.2 --- package-lock.json | 65 +++++++++++++++++++++++++++--- package.json | 2 +- src/bin.mts | 5 +-- tap-snapshots/test/bin.ts.test.cjs | 7 +++- 4 files changed, 69 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index ddf67638..1b1a744b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "ISC", "dependencies": { "foreground-child": "^3.1.0", - "jackspeak": "^2.3.6", + "jackspeak": "^3.1.2", "minimatch": "^9.0.1", "minipass": "^7.0.4", "path-scurry": "^1.11.0" @@ -32,7 +32,7 @@ "typescript": "^5.2.2" }, "engines": { - "node": ">=16 || 14 >=14.17" + "node": ">=16 || 14 >=14.18" }, "funding": { "url": "https://github.com/sponsors/isaacs" @@ -563,6 +563,24 @@ "@tapjs/test": "1.4.2" } }, + "node_modules/@tapjs/config/node_modules/jackspeak": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", + "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", + "dev": true, + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, "node_modules/@tapjs/core": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/@tapjs/core/-/core-1.5.2.tgz", @@ -905,6 +923,24 @@ "@tapjs/core": "1.5.2" } }, + "node_modules/@tapjs/test/node_modules/jackspeak": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", + "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", + "dev": true, + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, "node_modules/@tapjs/typescript": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/@tapjs/typescript/-/typescript-1.4.2.tgz", @@ -1874,6 +1910,24 @@ "node": ">= 6" } }, + "node_modules/glob/node_modules/jackspeak": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", + "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", + "dev": true, + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, "node_modules/graceful-fs": { "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", @@ -2239,9 +2293,10 @@ } }, "node_modules/jackspeak": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", - "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.1.2.tgz", + "integrity": "sha512-kWmLKn2tRtfYMF/BakihVVRzBKOxz4gJMiL2Rj91WnAB5TPZumSH99R/Yf1qE1u4uRimvCSJfm6hnxohXeEXjQ==", + "license": "BlueOak-1.0.0", "dependencies": { "@isaacs/cliui": "^8.0.2" }, diff --git a/package.json b/package.json index 6d93c9f9..5d3cafd6 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ }, "dependencies": { "foreground-child": "^3.1.0", - "jackspeak": "^2.3.6", + "jackspeak": "^3.1.2", "minimatch": "^9.0.1", "minipass": "^7.0.4", "path-scurry": "^1.11.0" diff --git a/src/bin.mts b/src/bin.mts index 0fbfaeea..31bf6fac 100755 --- a/src/bin.mts +++ b/src/bin.mts @@ -201,8 +201,7 @@ const j = jack({ description: `Defaults to the value of 'process.platform' if available, or 'linux' if not. Setting --platform=win32 on non-Windows systems may cause strange behavior!`, - validate: v => - new Set([ + validOptions: [ 'aix', 'android', 'darwin', @@ -214,7 +213,7 @@ const j = jack({ 'win32', 'cygwin', 'netbsd', - ]).has(v), + ] }, }) .optList({ diff --git a/tap-snapshots/test/bin.ts.test.cjs b/tap-snapshots/test/bin.ts.test.cjs index 0c71c132..eecf927d 100644 --- a/tap-snapshots/test/bin.ts.test.cjs +++ b/tap-snapshots/test/bin.ts.test.cjs @@ -133,8 +133,13 @@ Object { available, or 'linux' if not. Setting --platform=win32 on non-Windows systems may cause strange behavior! + Valid options: "aix", "android", "darwin", "freebsd", + "haiku", "linux", "openbsd", "sunos", "win32", + "cygwin", "netbsd" + -i --ignore= - Glob patterns to ignore Can be set multiple times + Glob patterns to ignore + Can be set multiple times -v --debug Output a huge amount of noisy debug information about patterns as they are parsed and used to match files.