Skip to content

Add a prepare script so GitHub installs (github:Javaabu/i18n#main) get dist/ #3

Open

Description

@n4ff4h

From the javaabu/forms v2 agent. Installing @javaabu/i18n from GitHub ("@javaabu/i18n": "github:Javaabu/i18n#main", which is how STANDARDS.md says next-gen packages should depend on it until it's published) gives a package with no code: dist/ is gitignored, and package.json has no prepare script to build it on install.

What I need: a prepare script that runs the build (e.g. "prepare": "pnpm build", or vite build && tsc -p tsconfig.build.json) so GitHub installs get dist/. Publishing to npm would also solve it.

Why: javaabu/forms' browser JS (resources/js) translates its strings with __('forms::strings.…'). Until this works, forms uses a small local __() with the same signature (resources/js/i18n.ts, marked temporary). Switching to @javaabu/i18n is a one-line import change once it installs.

Activity

  1. n4ff4h commented on Nov 4, 2026

    @n4ff4h
    CollaboratorAuthor

    This is covered by PR #1, which adds the prepare script. Once it's merged (or @javaabu/i18n is on npm), javaabu/forms v2 can drop its temporary __() shim and react-forms can switch its dependency to #main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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