Skip to content

Ensure version bump using Yarn constraints #7481

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ jobs:
run: git diff --exit-code lib/js lib/es6

- name: Version Check
run: ./scripts/prebuilt.js
run: yarn constraints

- name: Run tests
run: node scripts/test.js -all
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,8 @@ To build a new version and release it on NPM, follow these steps:
- `npm dist-tag add @rescript/std@<version> <tag>`
1. Create a release entry for the version tag on the [Github Releases page](https://github.com/rescript-lang/rescript-compiler/releases), copying the changes from `CHANGELOG.md`.
1. Create a PR with the following changes to prepare for development of the next version:
- Increment the version number in `package.json` for the next version.
- Run `node scripts/setVersion.js` to take that version number over into other files.
- Increment the `EXPECTED_VERSION` number in `yarn.config.cjs` for the next version.
- Run `yarn constraints --fix` to take that version number over into other files.
- Update `CHANGELOG.md` and add an entry for the next version, e.g., "10.0.0-beta.2 (Unreleased)"
1. Coordinate any forum/blog posts with [@ryyppy](https://github.com/ryyppy).

Expand Down
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,9 @@ reanalyze:

lib-bsb:
./scripts/buildRuntime.sh
./scripts/prebuilt.js

lib:
./scripts/buildRuntimeRewatch.sh
./scripts/prebuilt.js

artifacts: lib
./scripts/npmPack.js --updateArtifactList
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"Language"
],
"license": "SEE LICENSE IN LICENSE",
"homepage": "http://rescript-lang.org",
"bugs": "https://github.com/rescript-lang/rescript-compiler/issues",
"homepage": "https://rescript-lang.org",
"bugs": "https://github.com/rescript-lang/rescript/issues",
"repository": {
"type": "git",
"url": "git+https://github.com/rescript-lang/rescript-compiler.git"
"url": "git+https://github.com/rescript-lang/rescript.git"
},
"author": {
"name": "Hongbo Zhang",
Expand Down Expand Up @@ -84,10 +84,9 @@
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@types/node": "^20.14.9",
"@types/semver": "^7.5.8",
"@yarnpkg/types": "^4.0.1",
"mocha": "10.8.2",
"nyc": "15.0.0",
"semver": "7.6.2",
"typescript": "5.8.2"
},
"workspaces": [
Expand All @@ -98,5 +97,6 @@
"tests/gentype_tests/**",
"tests/tools_tests"
],
"packageManager": "[email protected]"
"packageManager": "[email protected]",
"preferUnplugged": true
}
21 changes: 20 additions & 1 deletion packages/@rescript/darwin-arm64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,29 @@
"version": "12.0.0-alpha.13",
"description": "ReScript binaries for MacOS ARM64",
"type": "module",
"homepage": "https://rescript-lang.org",
"bugs": "https://github.com/rescript-lang/rescript/issues",
"repository": {
"type": "git",
"url": "git+https://github.com/rescript-lang/rescript-compiler.git"
"url": "git+https://github.com/rescript-lang/rescript.git"
},
"author": {
"name": "Hongbo Zhang",
"email": "[email protected]"
},
"maintainers": [
"Christoph Knittel (https://github.com/cknitt)",
"Cristiano Calcagno (https://github.com/cristianoc)",
"Dmitry Zakharov (https://github.com/DZakh)",
"Florian Hammerschmidt (https://github.com/fhammerschmidt)",
"Gabriel Nordeborn (https://github.com/zth)",
"Hyeseong Kim (https://github.com/cometkim)",
"Jaap Frolich (https://github.com/jfrolich)",
"Matthias Le Brun (https://github.com/bloodyowl)",
"Patrick Ecker (https://github.com/ryyppy)",
"Paul Tsnobiladzé (https://github.com/tsnobip)",
"Woonki Moon (https://github.com/mununki)"
],
"publishConfig": {
"access": "public",
"executableFiles": [
Expand Down
21 changes: 20 additions & 1 deletion packages/@rescript/darwin-x64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,29 @@
"version": "12.0.0-alpha.13",
"description": "ReScript binaries for MacOS x86_64",
"type": "module",
"homepage": "https://rescript-lang.org",
"bugs": "https://github.com/rescript-lang/rescript/issues",
"repository": {
"type": "git",
"url": "git+https://github.com/rescript-lang/rescript-compiler.git"
"url": "git+https://github.com/rescript-lang/rescript.git"
},
"author": {
"name": "Hongbo Zhang",
"email": "[email protected]"
},
"maintainers": [
"Christoph Knittel (https://github.com/cknitt)",
"Cristiano Calcagno (https://github.com/cristianoc)",
"Dmitry Zakharov (https://github.com/DZakh)",
"Florian Hammerschmidt (https://github.com/fhammerschmidt)",
"Gabriel Nordeborn (https://github.com/zth)",
"Hyeseong Kim (https://github.com/cometkim)",
"Jaap Frolich (https://github.com/jfrolich)",
"Matthias Le Brun (https://github.com/bloodyowl)",
"Patrick Ecker (https://github.com/ryyppy)",
"Paul Tsnobiladzé (https://github.com/tsnobip)",
"Woonki Moon (https://github.com/mununki)"
],
"publishConfig": {
"access": "public",
"executableFiles": [
Expand Down
21 changes: 20 additions & 1 deletion packages/@rescript/linux-arm64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,29 @@
"version": "12.0.0-alpha.13",
"description": "ReScript binaries for Linux ARM64",
"type": "module",
"homepage": "https://rescript-lang.org",
"bugs": "https://github.com/rescript-lang/rescript/issues",
"repository": {
"type": "git",
"url": "git+https://github.com/rescript-lang/rescript-compiler.git"
"url": "git+https://github.com/rescript-lang/rescript.git"
},
"author": {
"name": "Hongbo Zhang",
"email": "[email protected]"
},
"maintainers": [
"Christoph Knittel (https://github.com/cknitt)",
"Cristiano Calcagno (https://github.com/cristianoc)",
"Dmitry Zakharov (https://github.com/DZakh)",
"Florian Hammerschmidt (https://github.com/fhammerschmidt)",
"Gabriel Nordeborn (https://github.com/zth)",
"Hyeseong Kim (https://github.com/cometkim)",
"Jaap Frolich (https://github.com/jfrolich)",
"Matthias Le Brun (https://github.com/bloodyowl)",
"Patrick Ecker (https://github.com/ryyppy)",
"Paul Tsnobiladzé (https://github.com/tsnobip)",
"Woonki Moon (https://github.com/mununki)"
],
"publishConfig": {
"access": "public",
"executableFiles": [
Expand Down
21 changes: 20 additions & 1 deletion packages/@rescript/linux-x64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,29 @@
"version": "12.0.0-alpha.13",
"description": "ReScript binaries for Linux x86_64",
"type": "module",
"homepage": "https://rescript-lang.org",
"bugs": "https://github.com/rescript-lang/rescript/issues",
"repository": {
"type": "git",
"url": "git+https://github.com/rescript-lang/rescript-compiler.git"
"url": "git+https://github.com/rescript-lang/rescript.git"
},
"author": {
"name": "Hongbo Zhang",
"email": "[email protected]"
},
"maintainers": [
"Christoph Knittel (https://github.com/cknitt)",
"Cristiano Calcagno (https://github.com/cristianoc)",
"Dmitry Zakharov (https://github.com/DZakh)",
"Florian Hammerschmidt (https://github.com/fhammerschmidt)",
"Gabriel Nordeborn (https://github.com/zth)",
"Hyeseong Kim (https://github.com/cometkim)",
"Jaap Frolich (https://github.com/jfrolich)",
"Matthias Le Brun (https://github.com/bloodyowl)",
"Patrick Ecker (https://github.com/ryyppy)",
"Paul Tsnobiladzé (https://github.com/tsnobip)",
"Woonki Moon (https://github.com/mununki)"
],
"publishConfig": {
"access": "public",
"executableFiles": [
Expand Down
21 changes: 20 additions & 1 deletion packages/@rescript/win32-x64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,29 @@
"version": "12.0.0-alpha.13",
"description": "ReScript binaries for Windows x86_64",
"type": "module",
"homepage": "https://rescript-lang.org",
"bugs": "https://github.com/rescript-lang/rescript/issues",
"repository": {
"type": "git",
"url": "git+https://github.com/rescript-lang/rescript-compiler.git"
"url": "git+https://github.com/rescript-lang/rescript.git"
},
"author": {
"name": "Hongbo Zhang",
"email": "[email protected]"
},
"maintainers": [
"Christoph Knittel (https://github.com/cknitt)",
"Cristiano Calcagno (https://github.com/cristianoc)",
"Dmitry Zakharov (https://github.com/DZakh)",
"Florian Hammerschmidt (https://github.com/fhammerschmidt)",
"Gabriel Nordeborn (https://github.com/zth)",
"Hyeseong Kim (https://github.com/cometkim)",
"Jaap Frolich (https://github.com/jfrolich)",
"Matthias Le Brun (https://github.com/bloodyowl)",
"Patrick Ecker (https://github.com/ryyppy)",
"Paul Tsnobiladzé (https://github.com/tsnobip)",
"Woonki Moon (https://github.com/mununki)"
],
"publishConfig": {
"access": "public",
"executableFiles": [
Expand Down
11 changes: 8 additions & 3 deletions packages/std/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
"functional programming"
],
"license": "SEE LICENSE IN LICENSE",
"homepage": "http://rescript-lang.org",
"bugs": "https://github.com/rescript-compiler/issues",
"homepage": "https://rescript-lang.org",
"bugs": "https://github.com/rescript-lang/rescript/issues",
"repository": {
"type": "git",
"url": "git+https://github.com/rescript-lang/rescript.git"
},
"author": {
"name": "Hongbo Zhang",
"email": "[email protected]"
Expand All @@ -28,5 +32,6 @@
],
"files": [
"lib"
]
],
"preferUnplugged": true
}
41 changes: 0 additions & 41 deletions scripts/prebuilt.js

This file was deleted.

61 changes: 0 additions & 61 deletions scripts/setVersion.js

This file was deleted.

2 changes: 1 addition & 1 deletion tests/dependencies/rescript-react/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@rescript/react",
"name": "@tests/rescript-react",
"private": true
}
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"packages/**",
"tests/**/input.js",
".github/workflows/*.js",
"yarn.config.cjs",
"package.json"
],
"exclude": ["*.res.js", "*.res.mjs"]
Expand Down
Loading