Skip to content

Commit 782ec1f

Browse files
authored
Fix npx support (#2036)
1 parent acdc8a6 commit 782ec1f

11 files changed

Lines changed: 371 additions & 16 deletions

bin/cli.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#!/usr/bin/env node
22
// eslint-disable-next-line import/export
33
export * from './main.js';
4-
//# sourceMappingURL=cli.js.map

bin/cli.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

bin/index.js

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bin/index.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

bin/licenses.txt

Lines changed: 363 additions & 0 deletions
Large diffs are not rendered by default.

bin/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,3 @@ catch (e) {
106106
logger.error(e);
107107
process.exit(1);
108108
}
109-
//# sourceMappingURL=main.js.map

bin/main.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

bin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"appstore-connect-jwt-generator-cli","version":"1.0.7","author":"poad","license":"MIT","private":false,"homepage":"https://github.com/poad/appstore-connect-jwt-generator-cli#readme","bin":{"jwt-gen":"bin/index.js"},"main":"bin/cli.js","type":"module","repository":{"type":"git","url":"git+https://github.com/poad/appstore-connect-jwt-generator-cli.git"},"keywords":["jwt","appstore","cli"],"scripts":{"test":"vitest run --silent=false --coverage --passWithNoTests","clean":"tsc --build --clean","compile":"tsc","watch":"tsc --watch","build":"pnpm clean && pnpm compile","dev":"tsx src/main.ts","package":"ncc build --source-map --license licenses.txt -m -q -o bin","lint":"eslint","lint-fix":"eslint --fix","all":"pnpm build && pnpm package && pnpm lint && pnpm test"},"devDependencies":{"@eslint/compat":"^1.3.2","@eslint/js":"^9.35.0","@stylistic/eslint-plugin":"^5.3.1","@types/node":"^24.3.1","@vercel/ncc":"^0.38.3","@vitest/coverage-v8":"^3.2.4","eslint":"^9.35.0","eslint-config-prettier":"^10.1.8","eslint-import-resolver-typescript":"^4.4.4","eslint-plugin-flowtype":"^8.0.3","eslint-plugin-import":"^2.32.0","eslint-plugin-jest":"^29.0.1","eslint-plugin-prettier":"^5.5.4","eslint-plugin-promise":"^7.2.1","prettier":"^3.6.2","tsx":"^4.20.5","typescript":"^5.9.2","typescript-eslint":"^8.43.0","vite":"^7.1.5","vite-tsconfig-paths":"^5.1.4","vitest":"^3.2.4"},"dependencies":{"appstore-connect-jwt-generator-core":"^2.0.1","arg":"^5.0.2","chalk":"^5.6.2","chalk-template":"^1.1.2","log4js":"^6.9.1"},"files":["package.json","bin/*"],"exports":{".":{"node":"./bin/index.js","default":"./bin/index.js"}},"engines":{"npm":"use pnpm please!","yarn":"use pnpm please!","pnpm":">=8.7.1","node":">=22.0.0"},"publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"packageManager":"pnpm@10.15.1"}
1+
{"name":"appstore-connect-jwt-generator-cli","version":"1.0.7","author":"poad","license":"MIT","private":false,"homepage":"https://github.com/poad/appstore-connect-jwt-generator-cli#readme","main":"bin/cli.js","bin":{"jwt-gen":"./bin/cli.js","appstore-jwt-gen":"./bin/cli.js"},"type":"module","repository":{"type":"git","url":"git+https://github.com/poad/appstore-connect-jwt-generator-cli.git"},"keywords":["appstore","jwt","api","cli"],"preferGlobal":false,"scripts":{"test":"vitest run --silent=false --coverage --passWithNoTests","prebuild":"tsc --build --clean","watch":"tsc --watch","build":"tsc","dev":"tsx src/main.ts","package":"ncc build --license licenses.txt -m -q -o bin && chmod +x bin/cli.js","lint":"eslint","lint-fix":"eslint --fix","all":"pnpm build && pnpm package && pnpm lint && pnpm test"},"devDependencies":{"@eslint/compat":"^1.3.2","@eslint/js":"^9.35.0","@stylistic/eslint-plugin":"^5.3.1","@types/node":"^24.3.1","@vercel/ncc":"^0.38.3","@vitest/coverage-v8":"^3.2.4","eslint":"^9.35.0","eslint-config-prettier":"^10.1.8","eslint-import-resolver-typescript":"^4.4.4","eslint-plugin-flowtype":"^8.0.3","eslint-plugin-import":"^2.32.0","eslint-plugin-jest":"^29.0.1","eslint-plugin-prettier":"^5.5.4","eslint-plugin-promise":"^7.2.1","prettier":"^3.6.2","tsx":"^4.20.5","typescript":"^5.9.2","typescript-eslint":"^8.43.0","vite":"^7.1.5","vite-tsconfig-paths":"^5.1.4","vitest":"^3.2.4"},"dependencies":{"appstore-connect-jwt-generator-core":"^2.0.2","arg":"^5.0.2","chalk":"^5.6.2","chalk-template":"^1.1.2","log4js":"^6.9.1"},"files":["package.json","bin/*","README.md"],"exports":{".":{"node":"./bin/index.js","default":"./bin/index.js"}},"engines":{"npm":"use pnpm please!","yarn":"use pnpm please!","node":">=22.0.0"},"publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"packageManager":"pnpm@10.15.1"}

bin/sourcemap-register.cjs

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "MIT",
66
"private": false,
77
"homepage": "https://github.com/poad/appstore-connect-jwt-generator-cli#readme",
8-
"main": "bin/index.js",
8+
"main": "bin/cli.js",
99
"bin": {
1010
"jwt-gen": "./bin/cli.js",
1111
"appstore-jwt-gen": "./bin/cli.js"
@@ -24,12 +24,11 @@
2424
"preferGlobal": false,
2525
"scripts": {
2626
"test": "vitest run --silent=false --coverage --passWithNoTests",
27-
"clean": "tsc --build --clean",
28-
"compile": "tsc",
27+
"prebuild": "tsc --build --clean",
2928
"watch": "tsc --watch",
30-
"build": "pnpm clean && pnpm compile",
29+
"build": "tsc",
3130
"dev": "tsx src/main.ts",
32-
"package": "ncc build --source-map --license licenses.txt -m -q -o bin",
31+
"package": "ncc build --license licenses.txt -m -q -o bin && chmod +x bin/cli.js",
3332
"lint": "eslint",
3433
"lint-fix": "eslint --fix",
3534
"all": "pnpm build && pnpm package && pnpm lint && pnpm test"

0 commit comments

Comments
 (0)