Skip to content

Conversation

@mrloop
Copy link

@mrloop mrloop commented Aug 17, 2025

The PR uses a relative path for symbolic link

See #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 [email protected]

@mrloop
Copy link
Author

mrloop commented Aug 17, 2025

image

…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 [email protected]
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants