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

Run paraglide compiler after paraglide init #57

Closed LorisSigrist closed 6 months ago

LorisSigrist commented 6 months ago

Context/Problem

Currently none of the paraglide files are present after paraglide-js init. This may cause confusion for newer users, since the files they're supposed to be importing from don't exist.

Proposal

Run the paraglide compiler at the end of paraglide-js init to make sure the files are present.

The main caveat here is that we can't be sure that the files will be in the desired outdir, unless we also configure that during init. The question then is, where do we store it?

Idea: We could ask for the outdir before adding the commands to package.json! That's a separate issue though