Reverts the earlier unscoping: an unscoped package on a Gitea npm registry has no `.npmrc` mapping a consumer can use other than pinning the exact tarball URL, since Gitea's registry doesn't proxy npmjs.org and only scoped packages support the standard `@scope:registry=` config. Scoping restores that: consumers add one `@valknar:registry=` line and depend on a normal semver range. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012hQoM3jJT1Lx7CMTciMzvD
This commit is contained in:
@@ -107,7 +107,7 @@ source emsdk/emsdk_env.sh
|
||||
## npm usage
|
||||
|
||||
```ts
|
||||
import { loadPinball, attachTouchControls } from 'vpinball-wasm';
|
||||
import { loadPinball, attachTouchControls } from '@valknar/vpinball-wasm';
|
||||
|
||||
const canvas = document.querySelector('canvas');
|
||||
const pinball = await loadPinball({
|
||||
@@ -128,7 +128,7 @@ startButton.addEventListener('click', () => {
|
||||
pinball.evalScript('DMDWidth = 128 : DMDHeight = 32');
|
||||
```
|
||||
|
||||
See `examples/basic/index.html` for a complete working page (loading progress, file upload, touch controls, fullscreen). Published as `vpinball-wasm` on this project's Gitea npm registry — see `package.json`.
|
||||
See `examples/basic/index.html` for a complete working page (loading progress, file upload, touch controls, fullscreen). Published as `@valknar/vpinball-wasm` on this project's Gitea npm registry — see `package.json`.
|
||||
|
||||
## Known limitations
|
||||
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vpinball-wasm",
|
||||
"version": "0.1.0",
|
||||
"name": "@valknar/vpinball-wasm",
|
||||
"version": "0.2.0",
|
||||
"description": "Visual Pinball's engine compiled to WebAssembly - real .vpx tables, real VBScript, WebGL2 rendering, in the browser",
|
||||
"license": "SEE LICENSE IN LICENSE",
|
||||
"type": "module",
|
||||
|
||||
Reference in New Issue
Block a user