Skip to main content

npm and Installed Sources

A Hosanna application uses npm for framework source, tools, the compiler and JavaScript dependencies. package.json declares the selected versions and package-lock.json records the resolved dependency graph.

Distribution roles​

DependencyDistribution and role
@tantawowa/hosanna-ui 2Apache-2.0 framework source; sdk:install connects it to the application's source paths
@tantawowa/hosanna-tools 5Project-local hst CLI and testing API
@tantawowa/hosanna-eslint-plugin 2Hosanna-specific lint rules
@tantawowa/hosanna-supported-apis 2Diagnostic and API metadata used by the toolchain
@tantawowa/hscProprietary compiler launcher and matching platform executable, available without a license key
Generated sourceProject output under src-generated/; not a package to install manually

Imports such as @hs-src/... and @hs-generated/... are TypeScript path aliases into installed or generated source. They are not npm package names.

Add the toolchain to an existing application​

Tools 5.1.1 supports npm compiler resolution and doctor repair. For example, install these exact framework, tools and compiler versions:

npm install --save-dev --save-exact @tantawowa/hosanna-ui@2.0.3 @tantawowa/hosanna-tools@5.1.1 @tantawowa/hsc@1.54.1
npx hst sdk:install
npx hst doctor

Installing packages does not create an application host. Use Getting started for a new app or Upgrading for a legacy checkout.

Restore a checkout​

npm ci
npx hst sdk:install
npx hsc --version
npx hst doctor

npm ci restores the locked framework, tools and compiler. Keep npm optional dependencies enabled so it can install the compiler executable for the host OS and CPU. The compiler supports macOS and Linux with glibc, on x64 and arm64.

sdk:install connects node_modules/@tantawowa/hosanna-ui to the application-local hosanna-ui compatibility link and registered src/hosanna-* paths. It does not select another framework version. Commit package.json and the lockfile together.

Package version selection does not require hosanna.json. Legacy settings and overrides may still use that file; application presentation, build environments and run configuration have their own AppConfig, BuildConfig and HST files.

Inspect or repair the active toolchain​

node -p "require('./package.json').engines?.node"
npx hst version
npm ls @tantawowa/hosanna-ui @tantawowa/hosanna-tools @tantawowa/hsc
npx hsc --version
npx hst doctor
npx hst compiler:status

doctor checks the project dependencies and compiler installation. Use npx hst doctor --fix for supported repairs, including restoring the project's selected compiler. Use npm to choose a different version.

The application's .nvmrc, Node engine range and lockfile describe its runtime and dependencies. Apps using Vitest need a version in Tools 5's supported range, >=3.2.0 <5. Run tools through npm scripts or npx so the local installation is used.

The compiler package has its own license and its source repository remains private. See Compiler and tool setup for installation and legacy migration details.

Talk to us