Skip to content

Commit f15eb5a

Browse files
authored
Update migration path: use the spago-legacy package (#1131)
1 parent 954f331 commit f15eb5a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -191,19 +191,17 @@ You'll need to use [spago-legacy] for this.
191191

192192
```bash
193193
# Install spago-legacy
194-
npm install spago@0.21.0
195-
194+
npm install -g spago-legacy
196195
# You can then create a `spago.yaml` file with `migrate`
197-
spago migrate
196+
spago-legacy migrate
198197

199198
# Ready to remove the dhall files and move to the new spago
200-
npm install spago@next
199+
npm install -g spago@next
201200
rm spago.dhall packages.dhall
202201
```
203202

204203
> [!NOTE]\
205-
> Both `spago-legacy` and `spago` use the same NPM package name `spago`. The difference is their version numbers. `spago-legacy` stops at `spago@0.21.0` whereas `spago` is `spago@0.93.X`.
206-
> If `spago-legacy` is installed globally, `spago` can be installed locally via `npm i spago@next` and then used by prefixing `spago` commands with `npx` (e.g. `npx spago build`). Vice versa also works.
204+
> The `spago-legacy` NPM package has exactly the same content as the `spago@0.21.0` release, which is the last one released from the legacy codebase, and the only release to contain the `migrate` command. The new codebase's releases start from `spago@0.93.0`.
207205
208206
Some packages might not be found or have the wrong version, in which case
209207
you'll have to carefully:

0 commit comments

Comments
 (0)