Skip to content

Commit f018f13

Browse files
authored
chore: use tsx directly instead of indirect esno (#8773)
1 parent 2c2a86b commit f018f13

File tree

7 files changed

+169
-178
lines changed

7 files changed

+169
-178
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-legacy/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-react/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"scripts": {
2424
"dev": "unbuild --stub",
2525
"build": "unbuild && pnpm run patch-cjs",
26-
"patch-cjs": "esno ../../scripts/patchCJS.ts",
26+
"patch-cjs": "tsx ../../scripts/patchCJS.ts",
2727
"prepublishOnly": "npm run build"
2828
},
2929
"engines": {

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": {

packages/vite/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"build-bundle": "rollup --config rollup.config.ts --configPlugin typescript",
4949
"build-types": "run-s build-temp-types patch-types roll-types check-dist-types",
5050
"build-temp-types": "tsc --emitDeclarationOnly --outDir temp/node -p src/node",
51-
"patch-types": "esno scripts/patchTypes.ts",
51+
"patch-types": "tsx scripts/patchTypes.ts",
5252
"roll-types": "api-extractor run && rimraf temp",
5353
"check-dist-types": "tsc --project tsconfig.check.json",
5454
"lint": "eslint --cache --ext .ts src/**",
@@ -90,7 +90,6 @@
9090
"dotenv": "^14.3.2",
9191
"dotenv-expand": "^5.1.0",
9292
"es-module-lexer": "^0.10.5",
93-
"esno": "^0.16.3",
9493
"estree-walker": "^3.0.1",
9594
"etag": "^1.8.1",
9695
"fast-glob": "^3.2.11",

0 commit comments

Comments
 (0)