Skip to content

Commit 795c079

Browse files
committed
fix: path on windows system
1 parent c00a5dc commit 795c079

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

packages/yarn-plugin-ts-project-linker/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"@wroud/ts-project-linker": "workspace:^",
1111
"@yarnpkg/cli": "^4",
1212
"@yarnpkg/core": "^4",
13+
"@yarnpkg/fslib": "^3",
1314
"clipanion": "^4.0.0-rc.4"
1415
},
1516
"devDependencies": {

packages/yarn-plugin-ts-project-linker/src/index.mts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Hooks, Plugin } from "@yarnpkg/core";
22
import { link } from "@wroud/ts-project-linker";
3+
import { npath } from "@yarnpkg/fslib";
34

45
const plugin: Plugin<Hooks> = {
56
hooks: {
@@ -8,7 +9,9 @@ const plugin: Plugin<Hooks> = {
89
{
910
immutable: options.immutable,
1011
},
11-
...project.workspaces.map((workspace) => workspace.cwd),
12+
...project.workspaces.map((workspace) =>
13+
npath.fromPortablePath(workspace.cwd),
14+
),
1215
);
1316
},
1417
},

yarn.lock

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4547,7 +4547,7 @@ __metadata:
45474547
languageName: node
45484548
linkType: hard
45494549

4550-
"@yarnpkg/fslib@npm:^3.0.0, @yarnpkg/fslib@npm:^3.0.1, @yarnpkg/fslib@npm:^3.0.2, @yarnpkg/fslib@npm:^3.1.0, @yarnpkg/fslib@npm:^3.1.1":
4550+
"@yarnpkg/fslib@npm:^3, @yarnpkg/fslib@npm:^3.0.0, @yarnpkg/fslib@npm:^3.0.1, @yarnpkg/fslib@npm:^3.0.2, @yarnpkg/fslib@npm:^3.1.0, @yarnpkg/fslib@npm:^3.1.1":
45514551
version: 3.1.1
45524552
resolution: "@yarnpkg/fslib@npm:3.1.1"
45534553
dependencies:
@@ -12153,6 +12153,7 @@ __metadata:
1215312153
"@yarnpkg/builder": "npm:^4"
1215412154
"@yarnpkg/cli": "npm:^4"
1215512155
"@yarnpkg/core": "npm:^4"
12156+
"@yarnpkg/fslib": "npm:^3"
1215612157
clipanion: "npm:^4.0.0-rc.4"
1215712158
rimraf: "npm:^6"
1215812159
typescript: "npm:^5"

0 commit comments

Comments
 (0)