Skip to content

[Request]: Provide consistent exact dependency pins for generated consumer projects #212

Closed

Description

@jimhoyd

Problem or use case

A consumer asked whether generated applications already pin the runtime and installed extensions. The standalone urlcode-template/package.json pins core exactly (currently 0.4.0-alpha.2), but urlcode init copies a starter with no package.json. init --with resolves existing installed extension packages and does not generate a coordinated dependency manifest or lockfile. Its missing-package message suggests an unversioned npm install. The auth initializer writes a minimal package.json without dependencies.

Thus exact application dependency pinning is not consistently provided by the onboarding paths. This does not mean packages automatically update at runtime; reproducibility depends on the consuming application's existing manifest/lockfile and installation process.

Proposed behavior and alternatives

Define a project-level initialization/update flow that records exact core and installed-extension versions, validates compatibility as a set, and generates a lockfile through an explicit install step. Keep route-only initialization available for users who manage their runtime separately. Do not write package-manager concerns into route YAML.

A future upgrade command should choose a tested compatible set, show changes, require explicit alpha selection, and update manifest/lockfile deliberately. Do not claim that command exists today. Cover local tarball/offline development and preserve core's generic extension boundary; never add direct core imports of extension implementations.

Evidence: src/authoring.ts:initProject, src/init-with.ts:loadScaffold/initProjectWith, packages/auth/src/scaffold.ts, and https://github.com/jimhoyd-com/urlcode-template/blob/main/package.json . No runtime behavior was changed during this inspection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions