Skip to content

Commit 69835c9

Browse files
authored
Fix CLI path (#235)
`bin` was pointing to `dist/cli.js` which no longer exists after #226, causing the CLI to break: ``` $ yarn changelog:validate node:internal/modules/cjs/loader:1228 throw err; ^ Error: Cannot find module './node_modules/@metamask/auto-changelog/dist/cli.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15) at Module._load (node:internal/modules/cjs/loader:1051:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12) at node:internal/main/run_main_module:28:49 { code: 'MODULE_NOT_FOUND', requireStack: [] } ```
1 parent e65c485 commit 69835c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"main": "./dist/index.cjs",
2525
"module": "./dist/index.mjs",
2626
"types": "./dist/index.d.cts",
27-
"bin": "dist/cli.js",
27+
"bin": "dist/cli.mjs",
2828
"files": [
2929
"dist"
3030
],

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ __metadata:
871871
peerDependencies:
872872
prettier: ">=3.0.0"
873873
bin:
874-
auto-changelog: dist/cli.js
874+
auto-changelog: dist/cli.mjs
875875
languageName: unknown
876876
linkType: soft
877877

0 commit comments

Comments
 (0)