https://github.com/rspack-contrib/install-rspack
Overrides Rspack with latest/beta/nightly/canary version
https://github.com/rspack-contrib/install-rspack
canary cli pnpm rspack script update
Last synced: 8 months ago
JSON representation
Overrides Rspack with latest/beta/nightly/canary version
- Host: GitHub
- URL: https://github.com/rspack-contrib/install-rspack
- Owner: rspack-contrib
- License: mit
- Created: 2024-06-25T13:54:56.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-24T07:19:57.000Z (over 1 year ago)
- Last Synced: 2025-04-14T10:13:50.252Z (about 1 year ago)
- Topics: canary, cli, pnpm, rspack, script, update
- Language: JavaScript
- Homepage:
- Size: 49.8 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# install-rspack
> Install Rspack in your project, with support for canary versions.
## Usage
To install a canary version in your project, run:
```sh
npx install-rspack --version 1.3.13-canary-e56725ae-20250529070819
```
```json
// package.json
{
"pnpm": {
"overrides": {
"@rspack/core": "npm:@rspack-canary/core@1.3.13-canary-e56725ae-20250529070819",
"@rspack/cli": "npm:@rspack-canary/cli@1.3.13-canary-e56725ae-20250529070819"
},
"peerDependencyRules": {
"allowAny": ["@rspack/*"]
}
}
}
```
It's also possible to install a specific version:
```sh
npx install-rspack --version 1.3.13
```
Use npm tag:
```sh
npx install-rspack # default `npx install-rspack --version latest`
npx install-rspack --version canary
npx install-rspack --version nightly
npx install-rspack --version beta
```
Specify the path of a package.json
```sh
npx install-rspack --version 1.3.13-canary-e56725ae-20250529070819 --path ./foo/app/package.json
```
### CI mode
Skip all interactive actions
```sh
CI=true npx install-rspack --version 1.3.13-canary-e56725ae-20250529070819
# or
CI=true npx install-rspack --version 1.3.13-canary-e56725ae-20250529070819 --pm pnpm --path ./foo/app/package.json
```
## Credits
Thanks to:
- [install-vue](https://github.com/sodatea/install-vue)
- [vuejs/core](https://github.com/vuejs/core/pull/7860)