nxext / nx-extensions

Nx Extensions for Stencil, Svelte, SolidJS, Preact, Ionic, and Capacitor
MIT License
458 stars 101 forks source link

Svelte: Wrong path when using importPath flag #1034

Open floratmin opened 1 year ago

floratmin commented 1 year ago

When building a library with and not having already a libs folder in nx

nx g @nxext/svelte:library form --directory=libs --importPath=@myapp/form

then either the entry under the compilerOptions paths key should be

{
  "@myapp/form": ["libs/form/src/index.ts"]
}

or the newly generated library should be under the path of libs/libs/form/src/index.ts.