Skip to content

Commit

Permalink
remove of un-minified scripts before ci-test rather than before publi…
Browse files Browse the repository at this point in the history
…shing (ci-tests run before publishing)
  • Loading branch information
bumblehead committed Sep 10, 2023
1 parent fed6569 commit 2c52df6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
4 changes: 3 additions & 1 deletion tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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)\"",
Expand Down

0 comments on commit 2c52df6

Please sign in to comment.