Skip to content

Commit

Permalink
chore: use tsx instead of esno
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Jul 15, 2022
1 parent 8385475 commit dbb4bcf
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 58 deletions.
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install esno scripts/verifyCommit.ts $1
npx --no-install tsx scripts/verifyCommit.ts $1
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
"@umijs/utils": "workspace:*",
"@vercel/ncc": "0.33.3",
"dts-packer": "^0.0.3",
"esno": "^0.14.1",
"expect-playwright": "^0.8.0",
"git-repo-info": "^2.1.1",
"husky": "^7.0.4",
Expand All @@ -82,6 +81,7 @@
"resolve": "^1.22.0",
"rimraf": "^3.0.2",
"ts-node": "^10.7.0",
"tsx": "^3.8.0",
"turbo": "^1.3.1",
"typescript": "^4.7.2",
"uglify-js": "^3.15.4",
Expand Down
97 changes: 42 additions & 55 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/bin/umi-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ assert(
console.log(chalk.cyan(`umi-scripts: ${name}\n`))

const spawn = sync(
'esno',
'tsx',
[scriptsPath, ...argv.slice(1)],
{
env: process.env,
Expand Down

0 comments on commit dbb4bcf

Please sign in to comment.