Skip to content

Commit 649527c

Browse files
committed
fix: remove preinstall script
1 parent e6cab35 commit 649527c

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

package-why.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"scripts": {
3-
"prepare": "We need to install husky hooks into git hooks.\\nSee https://blog.typicode.com/husky-git-hooks-autoinstall",
4-
"preinstall": "This script symlinks config files from support/root",
3+
"prepare": "This script symlinks config files from support/root.\\n&&\\nWe need to install husky hooks into git hooks.\\nSee https://blog.typicode.com/husky-git-hooks-autoinstall",
4+
"postinstall": "Notify devs about npx why",
55
"test": "Description for 'npm run test' command"
66
}
7-
}
7+
}

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
{
22
"name": "why",
3-
"version": "0.6.0",
3+
"version": "0.6.1",
44
"description": "A tool to document your package.json scripts",
55
"main": "src/index.js",
66
"bin": "src/index.js",
77
"files": [
88
"src"
99
],
1010
"scripts": {
11-
"prepare": "husky install",
12-
"preinstall": "./support/scripts/symlink-root.sh",
11+
"prepare": "./support/scripts/symlink-root.sh && husky install",
1312
"postinstall": "./src/postinstall.js",
1413
"test": "echo 'add tests'"
1514
},

0 commit comments

Comments
 (0)