Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)