diff --git a/.changeset/cli-bin-executable.md b/.changeset/cli-bin-executable.md new file mode 100644 index 0000000..586e1cc --- /dev/null +++ b/.changeset/cli-bin-executable.md @@ -0,0 +1,9 @@ +--- +"tokenometer": patch +"@tokenometer/core": patch +--- + +Fix `tokenometer` CLI not invokable via `npx` on Linux. The published +`dist/index.js` had no execute bit, so `npx --yes tokenometer@` on +Linux runners failed with `sh: 1: tokenometer: not found`. Build script +now chmods +x after tsc emit. diff --git a/packages/cli/package.json b/packages/cli/package.json index 42ce7bb..185aaf8 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -75,7 +75,7 @@ "registry": "https://registry.npmjs.org/" }, "scripts": { - "build": "tsc -b", + "build": "tsc -b && chmod +x dist/index.js", "clean": "rm -rf dist" }, "dependencies": {