Skip to content

Commit

Permalink
include esmockLoader.js in published folder
Browse files Browse the repository at this point in the history
  • Loading branch information
bumblehead committed Sep 10, 2023
1 parent 3833fd2 commit fed6569
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
4 changes: 3 additions & 1 deletion tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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)\"",
Expand Down

0 comments on commit fed6569

Please sign in to comment.