Skip to content

Commit 5d04aa3

Browse files
author
Daniel Del Core
committed
Removes ts-node for tsx, updates scripts
1 parent 557df8d commit 5d04aa3

File tree

8 files changed

+194
-105
lines changed

8 files changed

+194
-105
lines changed

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"license": "MIT",
88
"private": true,
99
"scripts": {
10-
"predocs:start": "ts-node scripts/docs",
10+
"predocs:start": "tsx scripts/docs.ts",
1111
"docs:start": "cd website && yarn start",
1212
"postinstall": "yarn monorepo:fix && yarn monorepo:check",
1313
"build": "yarn build:pkgs && yarn build:community",
@@ -25,14 +25,14 @@
2525
"types:check": "tsc --noEmit --skipLibCheck",
2626
"monorepo:check": "manypkg check",
2727
"monorepo:fix": "manypkg fix",
28-
"cli:start": "ts-node packages/cli/bin/hypermod-cli.js",
29-
"cli:validate": "ts-node packages/cli/bin/hypermod-cli.js validate",
30-
"cli:init": "ts-node packages/cli/bin/hypermod-cli.js init",
31-
"cli:list": "ts-node packages/cli/bin/hypermod-cli.js list",
32-
"community:init": "ts-node scripts/initialize.ts",
33-
"community:init:preset": "ts-node scripts/initialize-preset.ts",
34-
"community:validate": "ts-node scripts/validate.ts ./community",
35-
"worker:sync": "ts-node scripts/sync.ts",
28+
"cli:start": "tsx packages/cli/bin/hypermod-cli.js",
29+
"cli:validate": "tsx packages/cli/bin/hypermod-cli.js validate",
30+
"cli:init": "tsx packages/cli/bin/hypermod-cli.js init",
31+
"cli:list": "tsx packages/cli/bin/hypermod-cli.js list",
32+
"community:init": "tsx scripts/initialize.ts",
33+
"community:init:preset": "tsx scripts/initialize-preset.ts",
34+
"community:validate": "tsx scripts/validate.ts ./community",
35+
"worker:sync": "tsx scripts/sync.ts",
3636
"prerelease": "yarn build && yarn validate && yarn test",
3737
"release": "yarn changeset publish"
3838
},
@@ -71,8 +71,8 @@
7171
"ts-jest": "^29.2.5",
7272
"ts-jest-mock-import-meta": "^1.2.0",
7373
"ts-loader": "^6.2.1",
74-
"ts-node": "^10.9.1",
7574
"tslib": "^2.2.0",
75+
"tsx": "^4.19.1",
7676
"typescript": "^5.2.2"
7777
},
7878
"resolutions": {

packages/cli-alias/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "@codeshift/cli",
3+
"type": "module",
34
"version": "0.24.0",
45
"source": "src/index.ts",
56
"main": "dist/index.js",
@@ -12,11 +13,11 @@
1213
},
1314
"scripts": {
1415
"start": "./bin/codeshift-cli.js",
15-
"start:dev": "ts-node src/index.ts"
16+
"start:dev": "tsx src/index.ts"
1617
},
1718
"dependencies": {
1819
"@hypermod/cli": "^0.24.0",
19-
"ts-node": "^10.9.1"
20+
"tsx": "^4.19.1"
2021
},
2122
"engines": {
2223
"node": ">=20.17"

packages/cli/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "@hypermod/cli",
3+
"type": "module",
34
"version": "0.24.0",
45
"source": "src/index.ts",
56
"main": "dist/index.js",
@@ -14,7 +15,7 @@
1415
},
1516
"scripts": {
1617
"start": "./bin/hypermod-cli.js",
17-
"start:dev": "ts-node src/index.ts"
18+
"start:dev": "tsx src/index.ts"
1819
},
1920
"dependencies": {
2021
"@antfu/install-pkg": "^0.1.1",
@@ -33,7 +34,7 @@
3334
"lodash": "^4.17.21",
3435
"ora": "^5.4.1",
3536
"semver": "^7.3.5",
36-
"ts-node": "^10.9.1"
37+
"tsx": "^4.19.1"
3738
},
3839
"engines": {
3940
"node": ">=20.17"

packages/core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "@hypermod/core",
3+
"type": "module",
34
"version": "0.4.0",
45
"source": "src/index.ts",
56
"main": "dist/index.js",

packages/fetcher/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "@hypermod/fetcher",
3+
"type": "module",
34
"version": "0.10.0",
45
"source": "src/index.ts",
56
"main": "dist/index.js",

packages/initializer/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "@hypermod/initializer",
3+
"type": "module",
34
"version": "0.6.0",
45
"source": "src/index.ts",
56
"main": "dist/index.js",

packages/validator/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "@hypermod/validator",
3+
"type": "module",
34
"version": "0.7.0",
45
"source": "src/index.ts",
56
"main": "dist/index.js",

0 commit comments

Comments
 (0)