diff --git a/package.json b/package.json index 409381e4..cda5e340 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,7 @@ "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).js\"", + "mini:src": "cd src && npx rimraf \"!(esmock|esmockLoader).js\"", "mini": "npm run mini:src && npm run mini:pkg", "prepublishOnly": "npm run lint && npm run test-ci && npm run mini" } diff --git a/tests/package.json b/tests/package.json index fab261d1..d77125ea 100644 --- a/tests/package.json +++ b/tests/package.json @@ -25,7 +25,9 @@ "sinon": "^12.0.1" }, "scripts": { - "mini": "cd .. && cd src && npx esbuild esmock.js --minify --bundle --allow-overwrite --platform=node --format=esm --outfile=esmock.js", + "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", "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)\"",