Skip to content

Commit 5b84208

Browse files
committed
Update workspace definitions to make them bun compatible
1 parent f09148a commit 5b84208

2 files changed

Lines changed: 21 additions & 22 deletions

File tree

package.json

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,13 @@
7676
"#cli/*": "./cli/common/*.js",
7777
"#dev/*": "./lib_dev/*.js"
7878
},
79-
"dependencies": {
80-
"@rescript/runtime": "workspace:packages/@rescript/runtime"
81-
},
8279
"optionalDependencies": {
83-
"@rescript/darwin-arm64": "workspace:packages/@rescript/darwin-arm64",
84-
"@rescript/darwin-x64": "workspace:packages/@rescript/darwin-x64",
85-
"@rescript/linux-arm64": "workspace:packages/@rescript/linux-arm64",
86-
"@rescript/linux-x64": "workspace:packages/@rescript/linux-x64",
87-
"@rescript/win32-x64": "workspace:packages/@rescript/win32-x64"
80+
"@rescript/darwin-arm64": "workspace:*",
81+
"@rescript/darwin-x64": "workspace:*",
82+
"@rescript/linux-arm64": "workspace:*",
83+
"@rescript/linux-x64": "workspace:*",
84+
"@rescript/runtime": "workspace:*",
85+
"@rescript/win32-x64": "workspace:*"
8886
},
8987
"devDependencies": {
9088
"@biomejs/biome": "2.4.10",
@@ -97,8 +95,7 @@
9795
"typescript": "6.0.3"
9896
},
9997
"workspaces": [
100-
"packages/playground",
101-
"packages/@rescript/*",
98+
"packages/**",
10299
"tests/dependencies/**",
103100
"tests/analysis_tests/**",
104101
"tests/docstring_tests",

yarn.lock

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -422,25 +422,25 @@ __metadata:
422422
languageName: node
423423
linkType: hard
424424

425-
"@rescript/darwin-arm64@workspace:packages/@rescript/darwin-arm64":
425+
"@rescript/darwin-arm64@workspace:*, @rescript/darwin-arm64@workspace:packages/@rescript/darwin-arm64":
426426
version: 0.0.0-use.local
427427
resolution: "@rescript/darwin-arm64@workspace:packages/@rescript/darwin-arm64"
428428
languageName: unknown
429429
linkType: soft
430430

431-
"@rescript/darwin-x64@workspace:packages/@rescript/darwin-x64":
431+
"@rescript/darwin-x64@workspace:*, @rescript/darwin-x64@workspace:packages/@rescript/darwin-x64":
432432
version: 0.0.0-use.local
433433
resolution: "@rescript/darwin-x64@workspace:packages/@rescript/darwin-x64"
434434
languageName: unknown
435435
linkType: soft
436436

437-
"@rescript/linux-arm64@workspace:packages/@rescript/linux-arm64":
437+
"@rescript/linux-arm64@workspace:*, @rescript/linux-arm64@workspace:packages/@rescript/linux-arm64":
438438
version: 0.0.0-use.local
439439
resolution: "@rescript/linux-arm64@workspace:packages/@rescript/linux-arm64"
440440
languageName: unknown
441441
linkType: soft
442442

443-
"@rescript/linux-x64@workspace:packages/@rescript/linux-x64":
443+
"@rescript/linux-x64@workspace:*, @rescript/linux-x64@workspace:packages/@rescript/linux-x64":
444444
version: 0.0.0-use.local
445445
resolution: "@rescript/linux-x64@workspace:packages/@rescript/linux-x64"
446446
languageName: unknown
@@ -492,15 +492,15 @@ __metadata:
492492
languageName: unknown
493493
linkType: soft
494494

495-
"@rescript/runtime@workspace:packages/@rescript/runtime":
495+
"@rescript/runtime@workspace:*, @rescript/runtime@workspace:packages/@rescript/runtime":
496496
version: 0.0.0-use.local
497497
resolution: "@rescript/runtime@workspace:packages/@rescript/runtime"
498498
dependencies:
499499
rescript: "workspace:^"
500500
languageName: unknown
501501
linkType: soft
502502

503-
"@rescript/win32-x64@workspace:packages/@rescript/win32-x64":
503+
"@rescript/win32-x64@workspace:*, @rescript/win32-x64@workspace:packages/@rescript/win32-x64":
504504
version: 0.0.0-use.local
505505
resolution: "@rescript/win32-x64@workspace:packages/@rescript/win32-x64"
506506
languageName: unknown
@@ -2431,12 +2431,12 @@ __metadata:
24312431
resolution: "rescript@workspace:."
24322432
dependencies:
24332433
"@biomejs/biome": "npm:2.4.10"
2434-
"@rescript/darwin-arm64": "workspace:packages/@rescript/darwin-arm64"
2435-
"@rescript/darwin-x64": "workspace:packages/@rescript/darwin-x64"
2436-
"@rescript/linux-arm64": "workspace:packages/@rescript/linux-arm64"
2437-
"@rescript/linux-x64": "workspace:packages/@rescript/linux-x64"
2438-
"@rescript/runtime": "workspace:packages/@rescript/runtime"
2439-
"@rescript/win32-x64": "workspace:packages/@rescript/win32-x64"
2434+
"@rescript/darwin-arm64": "workspace:*"
2435+
"@rescript/darwin-x64": "workspace:*"
2436+
"@rescript/linux-arm64": "workspace:*"
2437+
"@rescript/linux-x64": "workspace:*"
2438+
"@rescript/runtime": "workspace:*"
2439+
"@rescript/win32-x64": "workspace:*"
24402440
"@types/node": "npm:^25.0.3"
24412441
"@types/semver": "npm:^7.7.0"
24422442
"@yarnpkg/types": "npm:^4.0.1"
@@ -2453,6 +2453,8 @@ __metadata:
24532453
optional: true
24542454
"@rescript/linux-x64":
24552455
optional: true
2456+
"@rescript/runtime":
2457+
optional: true
24562458
"@rescript/win32-x64":
24572459
optional: true
24582460
bin:

0 commit comments

Comments
 (0)