From b175237040704f7c5cd3129a683d3bdcb838e6d3 Mon Sep 17 00:00:00 2001 From: Donna Peplinskie Date: Wed, 8 Jan 2025 14:16:53 -0500 Subject: [PATCH] Delete jquery-ui.js file post-build --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 202acd9bfc..faa316770a 100644 --- a/package.json +++ b/package.json @@ -126,7 +126,7 @@ }, "scripts": { "archive": "composer archive --file=$npm_package_name --format=zip", - "build": "npm run build:assets && npm run build:dependencies && npm run archive", + "build": "npm run build:assets && rm assets/dist/css/jquery-ui.js && npm run build:dependencies && npm run archive", "build:analyzer": "npm run --silent build:assets -- --json > node_modules/.cache/sensei-lms/build-stats.json && npx webpack-bundle-analyzer node_modules/.cache/sensei-lms/build-stats.json assets/dist", "build:assets": "rm -rf ./assets/dist && cross-env NODE_ENV=production npx calypso-build", "build:dependencies": "composer install && composer install --no-dev --prefer-dist --optimize-autoloader --no-scripts",