Skip to content

Commit

Permalink
chore(watch): move nx import to global scope
Browse files Browse the repository at this point in the history
  • Loading branch information
fahslaj committed Jan 3, 2023
1 parent fa72908 commit 7e0f285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lerna/commands/watch/index.js
Expand Up @@ -6,11 +6,11 @@ const { Command } = require("@lerna/command");
const { getFilteredPackages } = require("@lerna/filter-options");
const { ValidationError } = require("@lerna/validation-error");
const { watch } = require("nx/src/command-line/watch");
const { readNxJson } = require("nx/src/config/configuration");

module.exports = factory;

const getNxProjectNamesFromLernaPackageNames = (packageNames) => {
const { readNxJson } = require("nx/src/config/configuration");
const nxJson = readNxJson();
const nxConfiguredNpmScope = nxJson.npmScope;

Expand Down

0 comments on commit 7e0f285

Please sign in to comment.