Skip to content

Commit a6fdc01

Browse files
committed
use workspace protocol, less burden
1 parent ddd18af commit a6fdc01

File tree

3 files changed

+15
-27
lines changed

3 files changed

+15
-27
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@
7575
"#lib/minisocket": "./lib/minisocket.js"
7676
},
7777
"optionalDependencies": {
78-
"@rescript/darwin-arm64": "12.0.0-alpha.13",
79-
"@rescript/darwin-x64": "12.0.0-alpha.13",
80-
"@rescript/linux-arm64": "12.0.0-alpha.13",
81-
"@rescript/linux-x64": "12.0.0-alpha.13",
82-
"@rescript/win32-x64": "12.0.0-alpha.13"
78+
"@rescript/darwin-arm64": "workspace:packages/@rescript/darwin-arm64",
79+
"@rescript/darwin-x64": "workspace:packages/@rescript/darwin-x64",
80+
"@rescript/linux-arm64": "workspace:packages/@rescript/linux-arm64",
81+
"@rescript/linux-x64": "workspace:packages/@rescript/linux-x64",
82+
"@rescript/win32-x64": "workspace:packages/@rescript/win32-x64"
8383
},
8484
"devDependencies": {
8585
"@biomejs/biome": "1.9.4",

scripts/setVersion.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,6 @@ setVersion("./packages/@rescript/darwin-x64/package.json", version);
2828
setVersion("./packages/@rescript/darwin-arm64/package.json", version);
2929
setVersion("./packages/@rescript/win32-x64/package.json", version);
3030

31-
packageSpec.optionalDependencies["@rescript/linux-x64"] = version;
32-
packageSpec.optionalDependencies["@rescript/linux-arm64"] = version;
33-
packageSpec.optionalDependencies["@rescript/darwin-x64"] = version;
34-
packageSpec.optionalDependencies["@rescript/darwin-arm64"] = version;
35-
packageSpec.optionalDependencies["@rescript/win32-x64"] = version;
36-
37-
fs.writeFileSync(
38-
"./package.json",
39-
JSON.stringify(packageSpec, null, 2) + "\n",
40-
"utf8",
41-
);
42-
4331
fs.writeFileSync(
4432
"./compiler/common/bs_version.ml",
4533
`(* Copyright (C) 2015-2016 Bloomberg Finance L.P.

yarn.lock

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -388,25 +388,25 @@ __metadata:
388388
languageName: node
389389
linkType: hard
390390

391-
"@rescript/darwin-arm64@npm:12.0.0-alpha.13, @rescript/darwin-arm64@workspace:packages/@rescript/darwin-arm64":
391+
"@rescript/darwin-arm64@workspace:packages/@rescript/darwin-arm64":
392392
version: 0.0.0-use.local
393393
resolution: "@rescript/darwin-arm64@workspace:packages/@rescript/darwin-arm64"
394394
languageName: unknown
395395
linkType: soft
396396

397-
"@rescript/darwin-x64@npm:12.0.0-alpha.13, @rescript/darwin-x64@workspace:packages/@rescript/darwin-x64":
397+
"@rescript/darwin-x64@workspace:packages/@rescript/darwin-x64":
398398
version: 0.0.0-use.local
399399
resolution: "@rescript/darwin-x64@workspace:packages/@rescript/darwin-x64"
400400
languageName: unknown
401401
linkType: soft
402402

403-
"@rescript/linux-arm64@npm:12.0.0-alpha.13, @rescript/linux-arm64@workspace:packages/@rescript/linux-arm64":
403+
"@rescript/linux-arm64@workspace:packages/@rescript/linux-arm64":
404404
version: 0.0.0-use.local
405405
resolution: "@rescript/linux-arm64@workspace:packages/@rescript/linux-arm64"
406406
languageName: unknown
407407
linkType: soft
408408

409-
"@rescript/linux-x64@npm:12.0.0-alpha.13, @rescript/linux-x64@workspace:packages/@rescript/linux-x64":
409+
"@rescript/linux-x64@workspace:packages/@rescript/linux-x64":
410410
version: 0.0.0-use.local
411411
resolution: "@rescript/linux-x64@workspace:packages/@rescript/linux-x64"
412412
languageName: unknown
@@ -452,7 +452,7 @@ __metadata:
452452
languageName: unknown
453453
linkType: soft
454454

455-
"@rescript/win32-x64@npm:12.0.0-alpha.13, @rescript/win32-x64@workspace:packages/@rescript/win32-x64":
455+
"@rescript/win32-x64@workspace:packages/@rescript/win32-x64":
456456
version: 0.0.0-use.local
457457
resolution: "@rescript/win32-x64@workspace:packages/@rescript/win32-x64"
458458
languageName: unknown
@@ -2475,11 +2475,11 @@ __metadata:
24752475
resolution: "rescript@workspace:."
24762476
dependencies:
24772477
"@biomejs/biome": "npm:1.9.4"
2478-
"@rescript/darwin-arm64": "npm:12.0.0-alpha.13"
2479-
"@rescript/darwin-x64": "npm:12.0.0-alpha.13"
2480-
"@rescript/linux-arm64": "npm:12.0.0-alpha.13"
2481-
"@rescript/linux-x64": "npm:12.0.0-alpha.13"
2482-
"@rescript/win32-x64": "npm:12.0.0-alpha.13"
2478+
"@rescript/darwin-arm64": "workspace:packages/@rescript/darwin-arm64"
2479+
"@rescript/darwin-x64": "workspace:packages/@rescript/darwin-x64"
2480+
"@rescript/linux-arm64": "workspace:packages/@rescript/linux-arm64"
2481+
"@rescript/linux-x64": "workspace:packages/@rescript/linux-x64"
2482+
"@rescript/win32-x64": "workspace:packages/@rescript/win32-x64"
24832483
"@types/node": "npm:^20.14.9"
24842484
"@types/semver": "npm:^7.5.8"
24852485
mocha: "npm:10.8.2"

0 commit comments

Comments
 (0)