JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 34
  • Score
    100M100P100Q44740F

Package Exports

  • script-box-mc

Readme

ScriptBoxMC

ScriptAPI addon template generated by scriptup.

Local library structure

  • package/main.ts: local package source
  • src/main.ts: sample usage that imports from ScriptBoxMC

Setup

npm install

Publish

First publish (manual)

  1. Update name and version in package.json (current import alias: ScriptBoxMC).
  2. Build and publish:
npm run build
npm publish --access public

Subsequent publishes (automated via GitHub Actions)

[!TIP] Using npm Trusted Publishers removes the need to manage NPM_TOKEN in GitHub secrets.

  1. On npmjs.com, open your package → SettingsTrusted Publishers.

  2. Add a trusted publisher:

    • GitHub Actions as the provider
    • Organization or user: Enter your GitHub username or organization name
    • Repository: Enter the repository name where the package is located
    • Workflow filename: publish.yml
    • Environment name: Keep empty
  3. Once configured, delete the NPM_TOKEN secret from GitHub repository settings (not needed anymore).

  4. Bump version in package.json, then create a GitHub release → .github/workflows/publish.yml runs automatically.