Skip to content

Commit

Permalink
chore(repo): add nx-ignore comment in nrwl/js
Browse files Browse the repository at this point in the history
We call `require('@nrwl/vite')` inside @nrwl/js. This creates a circular dep between vite + js. It was not picked up prior to the new beta, as there was a bug in the typescript import scanner preventing it from being read. See nrwl#13921
  • Loading branch information
AgentEnder committed Jan 4, 2023
1 parent 46b9687 commit e6d2e42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/js/src/generators/library/library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export async function projectGenerator(

if (options.bundler === 'vite') {
await ensurePackage(tree, '@nrwl/vite', nxVersion);
// nx-ignore-next-line
const { viteConfigurationGenerator } = require('@nrwl/vite');
const viteTask = await viteConfigurationGenerator(tree, {
project: options.name,
Expand Down

0 comments on commit e6d2e42

Please sign in to comment.