Closed Yberion closed 1 year ago
CI is running/has finished running commands for commit fc57ba90a80719100aa5e7dd38426d378c95bf55. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.
📂 See all runs for this branch
Sent with 💌 from NxCloud.
Hello,
Related to https://github.com/uiuniversal/ngu-carousel/issues/437
I've spotted some problems that appeared with the migration to nx.
Since you are now using nx and
@nrwl/angular:package
, when you build the lib, it will add all "used" detected dependencies in the builtpackage.json
.Resulting to something similar to this in
package.json
(and fixed version numbers):There is unused deps and fixed versions.
If we want to prevent nx from adding all detected deps automatically, we need to setup
"updateBuildableProjectDepsInPackageJson": false
in theproject.json
of the lib.However, since it added all used deps in the built version, we can notice that there is some missing
peerDependencies
in non-builtpackage.json
.Diving in the code, I also noticed that hammerjs isn't loaded if we don't need it, that's why I choose to put it in
optionalDependencies
.The final deps in the non-built
package.json
:(Not related to the lib, but the repo)
I also detected by running
npm install
thatzone.js
0.12.0
seems not supported with@storybook/angular@6.5.16
resulting to this:I changed the version to
0.11.4
which is compatible withAngular
^15.2.0
and@storybook/angular@6.5.16
.cc @santoshyadavdev