Skip to content
This repository was archived by the owner on Feb 24, 2024. It is now read-only.

Commit 52ccbe1

Browse files
committed
Add building the package before publishing it
Following actions are performed before publishing: - build package - chmod +x lib/cli.js - run eslint - run tests
1 parent 4b59c50 commit 52ccbe1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
"build": "tsc",
2222
"lint": "eslint . --ext .ts",
2323
"test": "jest --coverage --coverageReporters=text",
24-
"prepare": "yarn build",
25-
"prepublishOnly": "yarn lint && yarn test"
24+
"prepublishOnly": "yarn build && chmod +x lib/cli.js && yarn lint && yarn test"
2625
},
2726
"bin": {
2827
"cpp-merge": "lib/cli.js"

0 commit comments

Comments
 (0)