Skip to content

Commit c03d6f6

Browse files
committed
Tweaks for npm scripts
1 parent 256b443 commit c03d6f6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@
99
},
1010
"license": "GPL-3.0+",
1111
"scripts": {
12-
"setup": "npm install && composer install",
13-
"build": "composer install --no-dev && npm install --only=prod && composer archive --file=$npm_package_name --format=zip && npm run postarchive",
14-
"postarchive": "rm -rf $npm_package_name && unzip $npm_package_name.zip -d $npm_package_name && rm $npm_package_name.zip && zip -r $npm_package_name.zip $npm_package_name && rm -rf $npm_package_name",
12+
"setup": "npm install && composer install && husky install",
13+
"build": "composer install --no-dev && npm install --only=prod && composer archive --file=$npm_package_name --format=zip",
1514
"phpcs": "composer run phpcs",
1615
"lint": "composer run lint",
1716
"lint:staged": "composer run lint-staged",
18-
"lint:branch": "composer run lint-branch",
19-
"prepare": "husky install"
17+
"lint:branch": "composer run lint-branch"
2018
},
2119
"devDependencies": {
2220
"husky": "^8.0.0"

0 commit comments

Comments
 (0)