Skip to content

Commit

Permalink
fix(core): add globPatternforDependencies support nx:run-commands wi… (
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorPontinen authored Nov 9, 2022
1 parent 37c8483 commit 32bec2a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/workspace/src/utilities/generate-globs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,16 @@ export function createGlobPatternsForDependencies(

const dirsToUse = [];
const recursiveScanDirs = (dirPath) => {
const children = readdirSync(dirPath);
const children = readdirSync(resolve(workspaceRoot, dirPath));
for (const child of children) {
const childPath = join(dirPath, child);
if (ig?.ignores(childPath) || !lstatSync(childPath).isDirectory()) {
if (
ig?.ignores(childPath) ||
!lstatSync(resolve(workspaceRoot, childPath)).isDirectory()
) {
continue;
}
if (existsSync(join(childPath, 'ng-package.json'))) {
if (existsSync(join(workspaceRoot, childPath, 'ng-package.json'))) {
dirsToUse.push(childPath);
} else {
recursiveScanDirs(childPath);
Expand Down

1 comment on commit 32bec2a

@vercel
Copy link

@vercel vercel bot commented on 32bec2a Nov 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx-five.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx.dev

Please sign in to comment.