Skip to content

Commit

Permalink
Remove node_modules/ directories before building ZIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeatorres committed Sep 29, 2021
1 parent 43fd2e5 commit 664c222
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@
"docker:lint": "docker-compose run --rm test vendor/bin/phpcs --parallel=8 -n -s",
"docker:fix-lint": "docker-compose run --rm test vendor/bin/phpcbf",

"prebuild": "rm -rf ./vendor",
"prebuild": "rm -rf ./vendor && find . -name 'node_modules' -type d -maxdepth 3 -exec rm -rf {} +",
"build": "composer install --no-dev && npm run build:dev && npm run archive",

"prearchive": "rm -rf $npm_package_name.zip",
"archive": "zip -r $npm_package_name.zip . -x **.git/\\* **node_modules/\\*",
"postarchive": "npm run archive:cleanup && 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",
Expand Down

0 comments on commit 664c222

Please sign in to comment.