Skip to content

Commit 6f93ee5

Browse files
authored
chore: don't install ts-node on development, just the types (#221)
Reverts the installation workaround introduced in #216. Since we changed the `ts-node` dev dependency to `@types/ts-node`, now it's not resolved by node's `require`
1 parent 7e8e827 commit 6f93ee5

File tree

5 files changed

+25
-29
lines changed

5 files changed

+25
-29
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,12 @@ jobs:
3535
cache: yarn
3636
cache-dependency-path: "**/yarn.lock"
3737

38-
- run: yarn install
38+
- run: yarn install --frozen-lockfiles
3939

4040
- run: yarn build
4141

4242
- name: Install dependencies for testing
43-
run: |
44-
yarn install-ttp
45-
yarn install
43+
run: yarn install --frozen-lockfiles
4644
working-directory: test
4745

4846
- name: Test

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"prettier": "^3.3.3",
6262
"rimraf": "^5.0.10",
6363
"standard-version": "^9.5.0",
64-
"ts-node": "^10.9.2",
64+
"@types/ts-node": "npm:ts-node@^10.9.2",
6565
"ts-patch": "^3.2.1",
6666
"typescript": "^5.5.4"
6767
},

test/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"private": true,
33
"license": "MIT",
44
"scripts": {
5-
"install-ttp": "yarn pack --cwd ../ --filename out.tgz && yarn add -W -D ./out.tgz",
65
"test": "jest",
76
"prepare": "node prepare.js"
87
},
@@ -24,7 +23,7 @@
2423
"typescript": "^5.5.4",
2524
"typescript-four-seven": "npm:[email protected]",
2625
"typescript-three": "npm:[email protected]",
27-
"typescript-transform-paths": "./out.tgz"
26+
"typescript-transform-paths": "file:../"
2827
},
2928
"workspaces": {
3029
"packages": [

test/yarn.lock

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6299,11 +6299,10 @@ typed-assert@^1.0.8:
62996299
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.6.5.tgz#dae20114a7b4ff4bd642db9c8c699f2953e8bbdb"
63006300
integrity sha512-BEjlc0Z06ORZKbtcxGrIvvwYs5hAnuo6TKdNFL55frVDlB+na3z5bsLhFaIxmT+dPWgBIjMo6aNnTOgHHmHgiQ==
63016301

6302-
typescript-transform-paths@./out.tgz:
6302+
"typescript-transform-paths@file:..":
63036303
version "3.4.7"
6304-
resolved "./out.tgz#ddee49191bf821530720756587d5e666e95bec08"
63056304
dependencies:
6306-
minimatch "^3.0.4"
6305+
minimatch "^3.1.2"
63076306

63086307
typescript@^5.5.4:
63096308
version "5.5.4"

yarn.lock

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,25 @@
119119
resolved "https://registry.yarnpkg.com/ts-expose-internals/-/ts-expose-internals-4.9.5.tgz#c30a77d4c95a423e1c79bbabc95f9b9d00f2fbe3"
120120
integrity sha512-+T1UsxhFi+hbVyYwHrOUb9tjyhry1iJoiDwDRjZZTiBREb7oE78kRHSqyFv8gZhwZCFFOGZyI66X2gHUFAt8lA==
121121

122+
"@types/ts-node@npm:ts-node@^10.9.2":
123+
version "10.9.2"
124+
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.2.tgz#70f021c9e185bccdca820e26dc413805c101c71f"
125+
integrity sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==
126+
dependencies:
127+
"@cspotcode/source-map-support" "^0.8.0"
128+
"@tsconfig/node10" "^1.0.7"
129+
"@tsconfig/node12" "^1.0.7"
130+
"@tsconfig/node14" "^1.0.0"
131+
"@tsconfig/node16" "^1.0.2"
132+
acorn "^8.4.1"
133+
acorn-walk "^8.1.1"
134+
arg "^4.1.0"
135+
create-require "^1.1.0"
136+
diff "^4.0.1"
137+
make-error "^1.1.1"
138+
v8-compile-cache-lib "^3.0.1"
139+
yn "3.1.1"
140+
122141
JSONStream@^1.0.4:
123142
version "1.3.5"
124143
resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.5.tgz#3208c1f08d3a4d99261ab64f92302bc15e111ca0"
@@ -1477,25 +1496,6 @@ trim-newlines@^3.0.0:
14771496
resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-3.0.1.tgz#260a5d962d8b752425b32f3a7db0dcacd176c144"
14781497
integrity sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==
14791498

1480-
ts-node@^10.9.2:
1481-
version "10.9.2"
1482-
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.2.tgz#70f021c9e185bccdca820e26dc413805c101c71f"
1483-
integrity sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==
1484-
dependencies:
1485-
"@cspotcode/source-map-support" "^0.8.0"
1486-
"@tsconfig/node10" "^1.0.7"
1487-
"@tsconfig/node12" "^1.0.7"
1488-
"@tsconfig/node14" "^1.0.0"
1489-
"@tsconfig/node16" "^1.0.2"
1490-
acorn "^8.4.1"
1491-
acorn-walk "^8.1.1"
1492-
arg "^4.1.0"
1493-
create-require "^1.1.0"
1494-
diff "^4.0.1"
1495-
make-error "^1.1.1"
1496-
v8-compile-cache-lib "^3.0.1"
1497-
yn "3.1.1"
1498-
14991499
ts-patch@^3.2.1:
15001500
version "3.2.1"
15011501
resolved "https://registry.yarnpkg.com/ts-patch/-/ts-patch-3.2.1.tgz#0c1ecfcb6b6633bf23e533016ffda4d566518628"

0 commit comments

Comments
 (0)