Commit 7dc56c5
committed
fix: installation via volta broken due to symbolic links pointing to tmp file
The PR uses a relative path for symbolic link
See anomalyco#197
Fix verified locally by running local npm registry:
```
cat > ./verdaccio.local.yaml <<'YAML'
max_body_size: 200mb
storage: ./storage
uplinks:
npmjs:
url: https://registry.npmjs.org/
packages:
"@*/*":
access: $all
publish: $all
proxy: npmjs
"**":
access: $all
publish: $all
proxy: npmjs
YAML
npx verdaccio@latest --listen 4873 --config ./verdaccio.local.yaml
```
And publishing opencode to that:
```
OPENCODE_VERSION="1.0.0-local" OPENCODE_DRY="false" bun run script/publish.ts
```
The `packages/opencode/script/publish.ts` was updated to publish to local registry by appending
`--registry http://localhost:4873` to the `bun publish` commands.
Volta was then used to install from the local registry:
```
NPM_CONFIG_REGISTRY=http://localhost:4873 npm_config_registry=http://localhost:4873 volta install opencode-ai@1.0.0-local
```1 parent a45fa7a commit 7dc56c5
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
0 commit comments