nx-extensions icon indicating copy to clipboard operation
nx-extensions copied to clipboard

Stencil: (Dev) dependencies not included in dist package.json

Open mcvelonl opened this issue 2 years ago • 4 comments

Describe the bug When using nxext to create Stencil library, used packages (e.g popper.js) are not included in the dist version of the package.json.

When testing other buildable/publishable libraries i do see the dependencies included in the package.json. This enables installation of the dependencies the ui library need once installed on another computer (via npm registry)

To Reproduce Steps to reproduce the behavior:

  • Install new NX environment
  • Install nxext/stencil
  • Generate publishable/buildable Stencil library
  • run build command

Expected behavior To have dependencies included in the dist package.json

mcvelonl avatar Dec 29 '22 14:12 mcvelonl

Totally unusable. Nothing works with nx (v14 and v15). For me even the build process didn't go well.

It's still maintained this library?

b3nab avatar Jan 30 '23 18:01 b3nab

@b3nab, thanks for the really helpful description of your problem. That helps a lot to find it

DominikPieper avatar Jan 31 '23 08:01 DominikPieper

The stencil builder does not resolve {projectRoot} symbol before trying to load the stencil config.

Tallyb avatar Jan 31 '23 15:01 Tallyb

Basically, if you follow this tutorial https://ionic.io/blog/building-react-and-angular-component-libraries-with-stencil-and-nx nothing will work and the generated files are so far to start working straight.

b3nab avatar Feb 14 '23 08:02 b3nab