mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Remove node_modules/ directories before building ZIP
This commit is contained in:
parent
43fd2e5dd3
commit
664c2220ac
1 changed files with 2 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue