Upgrading versions
The application's package.json and package-lock.json select the framework,
tools, linter and compiler. Their versions are independent. Restore a reviewed
application commit and run npm ci to reproduce its toolchain.
Migrate an older application first
If the app uses Git or Keygen framework downloads, shared or embedded source modes, or an old SDK directory, follow Framework installation with npm. Preserve local framework edits before migration and stop using retired install scripts.
For an old compiler installation, add @tantawowa/hsc as an npm development
dependency. Remove compiler-key secrets and activation commands from setup and
CI. hosanna.json is optional legacy configuration; its fields do not select an npm application's compiler version.
Upgrade npm packages
Choose the releases to adopt, then save exact versions in the application. For example, these commands select framework 2.0.3, Tools 5.1.1 and compiler 1.54.1, and resolve the current linter release:
npm install --save-dev --save-exact @tantawowa/hosanna-ui@2.0.3 @tantawowa/hosanna-tools@5.1.1 @tantawowa/hosanna-eslint-plugin@latest @tantawowa/hsc@1.54.1
npx hst sdk:install
npx hst doctor
npm ls @tantawowa/hosanna-ui @tantawowa/hosanna-tools @tantawowa/hosanna-eslint-plugin @tantawowa/hsc
Review release notes before adopting newer versions. --save-exact records the
resolved version even when the install request uses @latest. Apps using
Vitest must satisfy Tools 5's peer range, >=3.2.0 <5.
Run the application's generation, lint, tests, browser build and Roku build.
Remove development-only file: overrides before releasing an application.
Commit the manifest, lockfile and any reviewed migration changes together.
A fresh checkout should work with:
npm ci
npm run setup
npx hst doctor
Use npx hst sdk:install if the application does not define a setup script.
Upgrade only the compiler
Changing the framework or Tools version does not change the compiler dependency. Select it explicitly through npm:
npm install --save-dev --save-exact @tantawowa/hsc@1.54.1
npx hsc --version
npx hst compiler:status
With Tools 5.1.1 or newer, npx hst compiler:install 1.54.1 also saves the selected
compiler dependency and updates the lockfile. npx hst compiler:install without
a version, or npx hst doctor --fix, repairs the selected installation rather
than upgrading it.
Validate Roku output before committing a compiler upgrade. See Compiler and tool setup for host support and migration from a legacy compiler pin.
Reproduce or roll back a release
Restore the reviewed application commit containing package.json and
package-lock.json, then run npm ci and the application's setup script.
The lockfile restores the compiler along with the other packages. Keep generated
SDK links, local backups and installed dependencies out of Git.