@helios-lang/cli-utils
Advanced tools
Comparing version 0.1.6 to 0.1.7
{ | ||
"name": "@helios-lang/cli-utils", | ||
"version": "0.1.6", | ||
"description": "Simplest possible cli library", | ||
"main": "src/index.js", | ||
"types": "types/index.d.ts", | ||
"type": "module", | ||
"scripts": { | ||
"build": "npm run prettify && npm run build:types && npm run test:suite", | ||
"build:types": "npx tsc -p jsconfig.json --noEmit false --emitDeclarationOnly", | ||
"prepack": "npm run build", | ||
"prettify": "npx prettier . --write", | ||
"test": "npm run test:pretty && npm run test:types && npm run test:suite", | ||
"test:pretty": "npx prettier . --check", | ||
"test:suite": "node --test --experimental-test-coverage", | ||
"test:types": "npx tsc -p jsconfig.json --noEmit" | ||
}, | ||
"author": "Christian Schmitz", | ||
"license": "BSD-3-Clause", | ||
"devDependencies": { | ||
"@types/node": "^20.12.5", | ||
"prettier": "^3.2.5", | ||
"typescript": "^5.4.4" | ||
}, | ||
"dependencies": { | ||
"@helios-lang/codec-utils": "^0.1.30", | ||
"@helios-lang/type-utils": "^0.1.18" | ||
}, | ||
"prettier": { | ||
"trailingComma": "none", | ||
"tabWidth": 4, | ||
"semi": false, | ||
"singleQuote": false | ||
} | ||
} | ||
"name": "@helios-lang/cli-utils", | ||
"version": "0.1.7", | ||
"description": "Simplest possible cli library", | ||
"main": "src/index.js", | ||
"types": "types/index.d.ts", | ||
"type": "module", | ||
"author": "Christian Schmitz", | ||
"license": "BSD-3-Clause", | ||
"devDependencies": { | ||
"@types/node": "^20.12.5", | ||
"prettier": "^3.3.3", | ||
"typescript": "^5.4.4" | ||
}, | ||
"dependencies": { | ||
"@helios-lang/codec-utils": "^0.1.36", | ||
"@helios-lang/type-utils": "^0.1.25" | ||
}, | ||
"prettier": { | ||
"trailingComma": "none", | ||
"tabWidth": 4, | ||
"semi": false, | ||
"singleQuote": false | ||
}, | ||
"scripts": { | ||
"build": "pnpm run prettify && pnpm run build:types && pnpm run test:suite", | ||
"build:types": "tsc -p jsconfig.json --noEmit false --emitDeclarationOnly", | ||
"prettify": "prettier . --write", | ||
"test": "pnpm run test:pretty && pnpm run test:types && pnpm run test:suite", | ||
"test:pretty": "prettier . --check", | ||
"test:suite": "node --test --experimental-test-coverage", | ||
"test:types": "tsc -p jsconfig.json --noEmit" | ||
} | ||
} |
@@ -63,6 +63,6 @@ /** | ||
}> = { | ||
options?: O | undefined; | ||
minArgs?: number | undefined; | ||
maxArgs?: number | undefined; | ||
action(args: string[], options: { [D in keyof O]: import("./options/Opt.js").OptType<O[D]>; }): Promise<void>; | ||
options?: O; | ||
minArgs?: number; | ||
maxArgs?: number; | ||
action(args: string[], options: { [D in keyof O]: OptType<O[D]>; }): Promise<void>; | ||
} | { | ||
@@ -69,0 +69,0 @@ commands: S; |
@@ -19,3 +19,3 @@ /** | ||
*/ | ||
export class EnumOpt<V extends string[]> implements Opt<V[number]> { | ||
export class EnumOpt<V extends Array<string>> implements Opt<V[number]> { | ||
/** | ||
@@ -43,3 +43,3 @@ * | ||
export type Opt<T> = import("./Opt.js").Opt<T>; | ||
export type EnumOptConfig<V extends string[]> = OptConfig & { | ||
export type EnumOptConfig<V extends Array<string>> = OptConfig & { | ||
variants: V; | ||
@@ -46,0 +46,0 @@ default: string | (() => string); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30487
34
871