From c03d6f6c1afe044016395433d72d0d8f423e8a1f Mon Sep 17 00:00:00 2001 From: Corey McKrill <916023+coreymckrill@users.noreply.github.com> Date: Fri, 12 Jul 2024 17:11:07 -0700 Subject: [PATCH] Tweaks for npm scripts --- package.json | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index f5427a6..4d18615 100644 --- a/package.json +++ b/package.json @@ -9,14 +9,12 @@ }, "license": "GPL-3.0+", "scripts": { - "setup": "npm install && composer install", - "build": "composer install --no-dev && npm install --only=prod && composer archive --file=$npm_package_name --format=zip && npm run postarchive", - "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", + "setup": "npm install && composer install && husky install", + "build": "composer install --no-dev && npm install --only=prod && composer archive --file=$npm_package_name --format=zip", "phpcs": "composer run phpcs", "lint": "composer run lint", "lint:staged": "composer run lint-staged", - "lint:branch": "composer run lint-branch", - "prepare": "husky install" + "lint:branch": "composer run lint-branch" }, "devDependencies": { "husky": "^8.0.0"