question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@nrwl/node generatePackageJson generated package.json should include tslib as dependency

See original GitHub issue

Current Behavior

generating a @nrwl/node:app generates a typescript project, add generatePackageJson to the project.json and build will then create a package.json, however you cannot actually run the built app because tslib is required and not included as a dependency.

Expected Behavior

package.json should included all dependencies, including tslib

Steps to Reproduce

This issue may not be prioritized if details are not provided to help us reproduce the issue.

Failure Logs

Environment

Node : 16.13.0 OS : darwin arm64 npm : 8.1.4

nx : 13.7.1 @nrwl/angular : undefined @nrwl/cli : 13.7.1 @nrwl/cypress : 13.7.1 @nrwl/detox : undefined @nrwl/devkit : 13.7.1 @nrwl/eslint-plugin-nx : 13.7.1 @nrwl/express : 13.8.3 @nrwl/jest : 13.7.1 @nrwl/js : 13.7.1 @nrwl/linter : 13.7.1 @nrwl/nest : undefined @nrwl/next : undefined @nrwl/node : 13.8.3 @nrwl/nx-cloud : undefined @nrwl/react : 13.7.1 @nrwl/react-native : undefined @nrwl/schematics : undefined @nrwl/storybook : 13.7.1 @nrwl/tao : 13.7.1 @nrwl/web : 13.7.1 @nrwl/workspace : 13.7.1 typescript : 4.5.5 rxjs : 6.6.7

Community plugins: @otterdev/nx-cdk: 0.0.11 @otterdev/nx-cdk: 0.0.11

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
AgentEndercommented, Aug 11, 2022

Ah, yes. My bad… It should be included in the next release.

I’m going to close this, since it should have been linked to that PR.

Fixed by #11419

0reactions
jkossiscommented, Aug 11, 2022

@AgentEnder ran nx migrate latest, though it didn’t yield anything new.

Checking out that code you linked, it looks like it was merged 3 hours ago … safe to assume it hasn’t been released yet?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Generate package.json on nx build / deployment
This will generate you package.json with the necessary dependencies for your app. Here example: "node-api": { "root": "apps/node ...
Read more >
tslib direct dependency migration - Angular
If you have any libraries within your workspace, this migration will convert tslib peer dependencies to direct dependencies for the libraries. TypeScript uses ......
Read more >
@joelcode/gcp-function NPM | npm.io
The 'build' option bundle all your internal dependencies in main.js & create a new package.json with your external dependencies (version number from root/ ......
Read more >
Nx and Node Microservices
json based on dependencies an application is using. To enable this, we need to modify the workspace.json file and enable package.json generation ...
Read more >
@nrwl/node: Versions | Openbase
Full version history for @nrwl/node including change logs. ... core: generated package json should not include implicit deps (#13402) (07584fd) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found