Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rspack-contrib/install-rspack
Overrides Rspack with latest/beta/nightly/canary version
https://github.com/rspack-contrib/install-rspack
canary cli rspack script update
Last synced: 16 days 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 (6 months ago)
- Default Branch: main
- Last Pushed: 2024-11-04T12:12:47.000Z (about 2 months ago)
- Last Synced: 2024-12-04T12:46:40.012Z (22 days ago)
- Topics: canary, cli, rspack, script, update
- Language: JavaScript
- Homepage:
- Size: 42 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- 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 0.7.5-canary-d614005-20240625082730
``````json
// package.json
{
"pnpm": {
"overrides": {
"@rspack/binding": "npm:@rspack/[email protected]",
"@rspack/core": "npm:@rspack/[email protected]",
"@rspack/cli": "npm:@rspack/[email protected]",
"@rspack/dev-server": "npm:@rspack/[email protected]",
"@rspack/plugin-minify": "npm:@rspack/[email protected]",
"@rspack/plugin-preact-refresh": "npm:@rspack/[email protected]",
"@rspack/plugin-react-refresh": "npm:@rspack/[email protected]"
},
"peerDependencyRules": {
"allowAny": ["@rspack/*"]
}
}
}
```It's also possible to install a specific version:
```sh
npx install-rspack --version 0.7.5
```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 0.7.5-canary-d614005-20240625082730 --path ./foo/app/package.json
```### CI mode
Skip all interactive actions
```sh
CI=true npx install-rspack --version 0.7.5-canary-d614005-20240625082730
# or
CI=true npx install-rspack --version 0.7.5-canary-d614005-20240625082730 --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)