Skip to content

Commit

Permalink
fix(presetter): use tsx in esm mode
Browse files Browse the repository at this point in the history
  • Loading branch information
alvis committed Jul 30, 2024
1 parent 907cb62 commit afff010
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/presetter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@
"url": "git+https://github.com/alvis/presetter.git"
},
"scripts": {
"prepare": "tsx --eval \"require('./source/preset').bootstrapPreset()\" && npm run build",
"echo": "echo $npm_package_name",
"prepare": "tsx --eval \"import('./source/preset/setup.ts').then(({bootstrapPreset})=>bootstrapPreset())\" && npm run build",
"build": "npm run script -- build",
"clean": "npm run script -- clean",
"coverage": "npm run script -- coverage --",
"lint": "npm run script -- lint",
"prepublishOnly": "npm run prepare && npm run script -- prepublishOnly",
"script": "tsx --eval \"process.argv = [...process.argv.slice(0, 2), 'run', ...process.argv.slice(2)]; require('./source/executable');\" -- run --template",
"script": "tsx --eval \"process.argv = [...process.argv.slice(0, 2), 'run', ...process.argv.slice(2)]; import('./source/executable/index.ts');\" -- run --template",
"stage": "npm run script -- stage --",
"test": "npm run script -- test --",
"watch": "npm run script -- watch --"
Expand Down

0 comments on commit afff010

Please sign in to comment.