@nrwl/nx-plugin:plugin generator includes .ts files in dist
See original GitHub issueCurrent Behavior
@nrwl/nx-plugin:plugin
generator defines build executor (@nrwl/js:tsc
) which still includes .ts files in build dist.
Expected Behavior
“.ts” should not be included in build output
Steps to Reproduce
- initialise new workspace:
yarn create nx-workspace my-org --preset=core --no-nx-cloud
- install “@nrwl/nx-plugin”:
yarn add -W -D @nrwl/nx-plugin
- generate a new plugin:
nx g @nrwl/nx-plugin:plugin my-plugin
- build plugin:
nx build my-plugin
- check dist files
This issue seems to be related to the replacement of @nrwl/node:package
to @nrwl/js:tsc
executor.
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 yarn : 1.22.17
nx : 13.8.7 @nrwl/angular : undefined @nrwl/cli : 13.8.7 @nrwl/cypress : 13.8.7 @nrwl/detox : undefined @nrwl/devkit : 13.8.7 @nrwl/eslint-plugin-nx : 13.8.7 @nrwl/express : undefined @nrwl/jest : 13.8.7 @nrwl/js : 13.8.7 @nrwl/linter : 13.8.7 @nrwl/nest : undefined @nrwl/next : undefined @nrwl/node : 13.8.7 @nrwl/nx-cloud : undefined @nrwl/react : 13.8.7 @nrwl/react-native : undefined @nrwl/schematics : undefined @nrwl/storybook : 13.8.7 @nrwl/tao : 13.8.7 @nrwl/web : 13.8.7 @nrwl/workspace : 13.8.7 typescript : 4.4.4 rxjs : 6.6.7
Community plugins: @nrwl/nx-plugin: 13.8.7
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
nrwl/nx-plugin
Nx plugins are npm packages that contain generators and executors to extend a Nx workspace. Generators are blueprints to create new files from...
Read more >Documentation Generator - npm - Socket.dev
Create api documentation for TypeScript projects. ... The Nx Plugin for Storybook contains executors and generators for allowing ... vue-styleguidist-bot.
Read more >Create own default plugin to NX workspace
I love working with Nrwl Nx. It has increased my productivity and ... To be able to run generators from your own plugin...
Read more >Using TypeScript project references in NX | by Jake Ginnivan
Above is the main project, which contains a migration generator to do a ... .js + .d.ts files) rather than the source (ie,...
Read more >nrwl-nx/community - Gitter
File > Settings > Editor > Code Style > TypeScript > Import. Maybe it helps to change the settings for e.g. Use path...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@michaelcamper @boeto after some research the problem seems to be a regression of
fast-glob
, @AgentEnder found that 👍🏻A workaround in the meanwhile, if you’re using
yarn
, is to add the following to your package.json:Thanks again @gioragutt! We found it together. We’ll work on pinning the version for
fast-glob
in nx, until that goes through the npm overrides or yarn resolutions mechanisms should unblock yall. See here for the npm solution https://docs.npmjs.com/cli/v8/configuring-npm/package-json#overrides