diff --git a/bin/create-release-branch.js b/bin/create-release-branch.js new file mode 100755 index 00000000..b404e589 --- /dev/null +++ b/bin/create-release-branch.js @@ -0,0 +1,4 @@ +#!/usr/bin/env node + +/* eslint-disable-next-line import/no-unassigned-import */ +require('../dist/cli'); diff --git a/package.json b/package.json index 99b7daa4..dc9a3273 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,9 @@ "type": "git", "url": "https://github.com/MetaMask/create-release-branch.git" }, - "bin": "dist/cli.js", + "bin": "bin/create-release-branch.js", "files": [ + "bin/", "dist/" ], "scripts": { @@ -17,7 +18,7 @@ "lint:eslint": "eslint . --cache --ext js,ts", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", "lint:misc": "prettier '**/*.json' '**/*.md' '!CHANGELOG.md' '**/*.yml' '!.yarnrc.yml' --ignore-path .gitignore --no-error-on-unmatched-pattern", - "prepack": "yarn build:clean && chmod +x dist/cli.js && yarn lint && yarn test", + "prepack": "yarn lint && yarn build:clean && yarn test", "test": "jest && jest-it-up", "test:watch": "jest --watch" }, diff --git a/yarn.lock b/yarn.lock index f9edd3ed..4b6c8cb3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -909,7 +909,7 @@ __metadata: yaml: ^2.1.1 yargs: ^17.5.1 bin: - create-release-branch: dist/cli.js + create-release-branch: bin/create-release-branch.js languageName: unknown linkType: soft