knip
Toolingknip needs no parla build first, so it can run alone
on a clean checkout, when:
src/parla/is in.gitignore: knip skips ignored paths, so imports into them are neither followed nor unresolved.- The app imports it relatively,
./parla/namespaces/checkout.js. An alias needs one line more, below. parla.config.tsis an entry: knip has no Parla plugin, so the config, and what it imports, would be unused.entryreplaces knip’s defaults: keep your own.
{ "entry": ["src/main.tsx!", "parla.config.ts", "x18n.config.ts"]}x18n.config.ts is there only with the x18n plugin, which it imports.
src/parla/ imported through |
Add |
|---|---|
a tsconfig paths alias |
"ignoreDependencies": ["@i18n/.+"] |
a package.json subpath import |
"ignoreUnresolved": ["#i18n/.+"] |
The showcase runs knip in its own workflow, before anything builds.