Skip to content

Commit 0b0a21f

Browse files
authored
chore: use tsx directly instead of indirect esno (#8773)
1 parent e9c3646 commit 0b0a21f

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
],
1515
"scripts": {
1616
"preinstall": "npx only-allow pnpm",
17+
"postinstall": "simple-git-hooks",
1718
"format": "prettier --write --cache .",
1819
"lint": "eslint --cache packages/*/{src,types,__tests__}/** playground/**/__tests__/**/*.ts scripts/**",
1920
"typecheck": "tsc -p scripts --noEmit && tsc -p playground --noEmit",
@@ -30,8 +31,8 @@
3031
"docs-serve": "vitepress serve docs",
3132
"build": "pnpm -r --filter=./packages/* run build",
3233
"dev": "pnpm -r --parallel --filter=./packages/* run dev",
33-
"release": "esno scripts/release.ts",
34-
"ci-publish": "esno scripts/publishCI.ts",
34+
"release": "tsx scripts/release.ts",
35+
"ci-publish": "tsx scripts/publishCI.ts",
3536
"ci-docs": "run-s build docs-build"
3637
},
3738
"devDependencies": {
@@ -67,7 +68,6 @@
6768
"eslint-define-config": "^1.5.1",
6869
"eslint-plugin-import": "^2.26.0",
6970
"eslint-plugin-node": "^11.1.0",
70-
"esno": "^0.16.3",
7171
"execa": "^6.1.0",
7272
"fs-extra": "^10.1.0",
7373
"kill-port": "^1.6.1",
@@ -86,6 +86,7 @@
8686
"simple-git-hooks": "^2.8.0",
8787
"sirv": "^2.0.2",
8888
"tslib": "^2.4.0",
89+
"tsx": "^3.6.0",
8990
"typescript": "^4.6.4",
9091
"unbuild": "^0.7.4",
9192
"vite": "workspace:*",
@@ -95,7 +96,7 @@
9596
},
9697
"simple-git-hooks": {
9798
"pre-commit": "pnpm exec lint-staged --concurrent false",
98-
"commit-msg": "pnpm exec esno scripts/verifyCommit.ts $1"
99+
"commit-msg": "pnpm exec tsx scripts/verifyCommit.ts $1"
99100
},
100101
"lint-staged": {
101102
"*": [

packages/plugin-vue-jsx/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"scripts": {
2020
"dev": "unbuild --stub",
2121
"build": "unbuild && pnpm run patch-cjs",
22-
"patch-cjs": "esno ../../scripts/patchCJS.ts",
22+
"patch-cjs": "tsx ../../scripts/patchCJS.ts",
2323
"prepublishOnly": "npm run build"
2424
},
2525
"engines": {

packages/plugin-vue/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"scripts": {
2020
"dev": "unbuild --stub",
2121
"build": "unbuild && pnpm run patch-cjs",
22-
"patch-cjs": "esno ../../scripts/patchCJS.ts",
22+
"patch-cjs": "tsx ../../scripts/patchCJS.ts",
2323
"prepublishOnly": "npm run build"
2424
},
2525
"engines": {

0 commit comments

Comments
 (0)