From e3d6e20e975a1d7eed54efd06e58a18e7c044610 Mon Sep 17 00:00:00 2001 From: Adam DeHaven Date: Wed, 24 Jan 2024 15:53:36 -0500 Subject: [PATCH] fix: use tsx instead of ts-node --- package.json | 7 +++---- scripts/tsconfig.json | 4 ---- yarn.lock | 19 ------------------- 3 files changed, 3 insertions(+), 27 deletions(-) diff --git a/package.json b/package.json index 4c2df073..88862194 100644 --- a/package.json +++ b/package.json @@ -28,8 +28,8 @@ "build": "yarn delete:generated && yarn stylelint && yarn lint && yarn build:components", "build:components": "yarn generate && yarn typecheck && vite build && rimraf ./dist/style.css && vue-tsc -p './tsconfig.build.json' --emitDeclarationOnly && tsc-alias -p './tsconfig.build.json'", "build:visualize": "yarn generate && cross-env BUILD_VISUALIZER=true vite build -m production", - "generate": "yarn delete:generated && ts-node -P './scripts/tsconfig.json' './scripts/generate.ts' && yarn fix:generated", - "update-component-list": "ts-node -P './scripts/tsconfig.json' './scripts/component-list.ts' && yarn fix:generated", + "generate": "yarn delete:generated && npx --yes tsx --tsconfig './scripts/tsconfig.json' './scripts/generate.ts' && yarn fix:generated", + "update-component-list": "npx --yes tsx --tsconfig './scripts/tsconfig.json' './scripts/component-list.ts' && yarn fix:generated", "delete:generated": "rimraf './src/components' && rimraf './dist'", "build:sandbox": "yarn generate && yarn typecheck && cross-env USE_SANDBOX=true vite build", "preview:sandbox": "cross-env USE_SANDBOX=true vite preview", @@ -90,7 +90,6 @@ "stylelint-config-recommended-scss": "^14.0.0", "stylelint-config-recommended-vue": "^1.5.0", "stylelint-order": "^6.0.4", - "ts-node": "^10.9.2", "tsc-alias": "^1.8.8", "typescript": "^5.3.3", "vite": "^5.0.11", @@ -154,7 +153,7 @@ "node": ">=18.17.0" }, "volta": { - "node": "18.18.2", + "node": "20.11.0", "yarn": "1.22.21" }, "config": { diff --git a/scripts/tsconfig.json b/scripts/tsconfig.json index d9644e93..4fc82e15 100644 --- a/scripts/tsconfig.json +++ b/scripts/tsconfig.json @@ -13,10 +13,6 @@ "moduleResolution": "node", "sourceMap": true }, - "ts-node": { - "esm": true, - "experimentalSpecifierResolution": "node" - }, "include": [ "/**/*.ts" ] diff --git a/yarn.lock b/yarn.lock index c6d0b430..6f7f2ef7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7582,25 +7582,6 @@ ts-node@^10.8.1: v8-compile-cache-lib "^3.0.1" yn "3.1.1" -ts-node@^10.9.2: - version "10.9.2" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.2.tgz#70f021c9e185bccdca820e26dc413805c101c71f" - integrity sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ== - dependencies: - "@cspotcode/source-map-support" "^0.8.0" - "@tsconfig/node10" "^1.0.7" - "@tsconfig/node12" "^1.0.7" - "@tsconfig/node14" "^1.0.0" - "@tsconfig/node16" "^1.0.2" - acorn "^8.4.1" - acorn-walk "^8.1.1" - arg "^4.1.0" - create-require "^1.1.0" - diff "^4.0.1" - make-error "^1.1.1" - v8-compile-cache-lib "^3.0.1" - yn "3.1.1" - tsc-alias@^1.8.8: version "1.8.8" resolved "https://registry.yarnpkg.com/tsc-alias/-/tsc-alias-1.8.8.tgz#48696af442b7656dd7905e37ae0bc332d80be3fe"