opral / inlang-paraglide-js

Tree-shakable i18n library build on the inlang ecosystem.
https://inlang.com/m/gerre34r/library-inlang-paraglideJs
42 stars 0 forks source link

Inline `version` at build time #63

Closed LorisSigrist closed 6 months ago

LorisSigrist commented 6 months ago

Context

Paraglide needs it's own package-version in order to add itself to the dependencies. Currently this is done by reading the installed package.json, which is unfortunately easy to break. Either by moving code around in paraglide or because of alternative package managers.

Proposal

Inline the correct package-version at build time