Skip to content

Commit 64ba1fd

Browse files
committed
build(npm): Fix test project hoisting issue
1 parent 7751717 commit 64ba1fd

File tree

2 files changed

+22
-12
lines changed

2 files changed

+22
-12
lines changed

test/package.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"ts-expose-internals": "^4.1.2",
1010
"typescript-three": "npm:typescript@3.6.5",
1111
"typescript-four-seven": "npm:typescript@4.7.4",
12-
"typescript": "latest",
13-
"ts-patch": "link:../node_modules/ts-patch",
1412
"ts-node": "link:../node_modues/ts-node",
13+
"typescript": "latest",
14+
"ts-patch": "latest",
1515
"tsp1": "npm:ts-patch@1.*.*",
1616
"tsp2": "npm:ts-patch@2.*.*",
1717
"@nrwl/cli": "^15.0.0",
@@ -21,7 +21,13 @@
2121
"nx": "^15.0.0",
2222
"strip-ansi": "^6.0.1"
2323
},
24-
"workspaces": [
25-
"projects/*"
26-
]
24+
"workspaces": {
25+
"packages": [
26+
"packages/*"
27+
],
28+
"nohoist": [
29+
"**/semver/*",
30+
"**/ts-patch/*"
31+
]
32+
}
2733
}

test/yarn.lock

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6148,9 +6148,17 @@ ts-node@10.9.1:
61486148
version "0.0.0"
61496149
uid ""
61506150

6151-
"ts-patch@link:../node_modules/ts-patch":
6152-
version "0.0.0"
6153-
uid ""
6151+
ts-patch@latest:
6152+
version "3.1.2"
6153+
resolved "https://registry.yarnpkg.com/ts-patch/-/ts-patch-3.1.2.tgz#9d4832eca34ed0b9eb1f8456cb00c941f50b442b"
6154+
integrity sha512-n58F5AqjUMdp9RAKq+E1YBkmONltPVbt1nN+wrmZXoYZek6QcvaTuqvKMhYhr5BxtC53kD/exxIPA1cP1RQxsA==
6155+
dependencies:
6156+
chalk "^4.1.2"
6157+
global-prefix "^3.0.0"
6158+
minimist "^1.2.8"
6159+
resolve "^1.22.2"
6160+
semver "^7.5.4"
6161+
strip-ansi "^6.0.1"
61546162

61556163
tsconfig-paths-webpack-plugin@4.0.0:
61566164
version "4.0.0"
@@ -6239,10 +6247,6 @@ typed-assert@^1.0.8:
62396247
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.6.5.tgz#dae20114a7b4ff4bd642db9c8c699f2953e8bbdb"
62406248
integrity sha512-BEjlc0Z06ORZKbtcxGrIvvwYs5hAnuo6TKdNFL55frVDlB+na3z5bsLhFaIxmT+dPWgBIjMo6aNnTOgHHmHgiQ==
62416249

6242-
"typescript-transform-paths@link:..":
6243-
version "0.0.0"
6244-
uid ""
6245-
62466250
"typescript-transform-paths@link:../src":
62476251
version "0.0.0"
62486252
uid ""

0 commit comments

Comments
 (0)