From 2c52df65f7ed40fe222f3bf49516fad16d49719d Mon Sep 17 00:00:00 2001 From: chris Date: Sat, 9 Sep 2023 19:31:18 -0700 Subject: [PATCH] remove of un-minified scripts before ci-test rather than before publishing (ci-tests run before publishing) --- package.json | 4 +--- tests/package.json | 4 +++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index cda5e340..67947715 100644 --- a/package.json +++ b/package.json @@ -78,9 +78,7 @@ "test-cover": "npm run test:install && c8 npm run test:all", "lint": "eslint --ext=.js,.mjs .", "lint-fix": "eslint --ext=.js,.mjs --fix .", - "mini:pkg": "npm pkg delete scripts devDependencies dependencies", - "mini:src": "cd src && npx rimraf \"!(esmock|esmockLoader).js\"", - "mini": "npm run mini:src && npm run mini:pkg", + "mini": "npm pkg delete scripts devDependencies dependencies", "prepublishOnly": "npm run lint && npm run test-ci && npm run mini" } } diff --git a/tests/package.json b/tests/package.json index d77125ea..fbd890f5 100644 --- a/tests/package.json +++ b/tests/package.json @@ -27,7 +27,9 @@ "scripts": { "mini:esmock": "cd .. && cd src && npx esbuild esmock.js --minify --bundle --allow-overwrite --platform=node --format=esm --outfile=esmock.js", "mini:esmockLoader": "cd .. && cd src && npx esbuild esmockLoader.js --minify --bundle --allow-overwrite --platform=node --format=esm --outfile=esmockLoader.js", - "mini": "npm run mini:esmock && npm run mini:esmockLoader", + "mini:src": "npm run mini:esmock && npm run mini:esmockLoader", + "mini:rimraf": "cd .. && cd src && npx rimraf \"!(esmock|esmockLoader).js\"", + "mini": "npm run mini:src && npm run mini:rimraf", "isnodelt18": "node -e \"+process.versions.node.split('.')[0] < 18 || process.exit(1)\"", "isnodegt19": "node -e \"+process.versions.node.split('.')[0] > 19 || process.exit(1)\"", "isnodenight": "node -e \"process.versions.node.includes('night') || process.exit(1)\"",