@nx/angular 19.5.2 → 19.5.4

Sign up to get free protection for your applications and to get access to all the features.
package/esm2022/mf/mf.mjs CHANGED
@@ -2,10 +2,13 @@ let resolveRemoteUrl;
2
2
  export function setRemoteUrlResolver(_resolveRemoteUrl) {
3
3
  resolveRemoteUrl = _resolveRemoteUrl;
4
4
  }
5
- let remoteUrlDefinitions;
5
+ let remoteUrlDefinitions = {};
6
6
  export function setRemoteDefinitions(definitions) {
7
7
  remoteUrlDefinitions = definitions;
8
8
  }
9
+ export function setRemoteDefinition(remoteName, remoteUrl) {
10
+ remoteUrlDefinitions[remoteName] = remoteUrl;
11
+ }
9
12
  let remoteModuleMap = new Map();
10
13
  let remoteContainerMap = new Map();
11
14
  export async function loadRemoteModule(remoteName, moduleName) {
@@ -45,4 +48,4 @@ async function loadRemoteContainer(remoteName) {
45
48
  remoteContainerMap.set(remoteName, container);
46
49
  return container;
47
50
  }
48
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWYuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9hbmd1bGFyL21mL21mLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU9BLElBQUksZ0JBQTBDLENBQUM7QUFDL0MsTUFBTSxVQUFVLG9CQUFvQixDQUNsQyxpQkFBMkM7SUFFM0MsZ0JBQWdCLEdBQUcsaUJBQWlCLENBQUM7QUFDdkMsQ0FBQztBQUVELElBQUksb0JBQTRDLENBQUM7QUFDakQsTUFBTSxVQUFVLG9CQUFvQixDQUFDLFdBQW1DO0lBQ3RFLG9CQUFvQixHQUFHLFdBQVcsQ0FBQztBQUNyQyxDQUFDO0FBRUQsSUFBSSxlQUFlLEdBQUcsSUFBSSxHQUFHLEVBQW1CLENBQUM7QUFDakQsSUFBSSxrQkFBa0IsR0FBRyxJQUFJLEdBQUcsRUFBbUIsQ0FBQztBQUNwRCxNQUFNLENBQUMsS0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gcmVtb3RlVXJsLmVuZHNXaXRoKCcvJykgPyAnJyA6ICcvJ1xuICAgIH1yZW1vdGVFbnRyeS5tanNgO1xuICB9XG5cbiAgY29uc3QgY29udGFpbmVyID0gYXdhaXQgbG9hZE1vZHVsZShjb250YWluZXJVcmwpO1xuICBhd2FpdCBjb250YWluZXIuaW5pdChfX3dlYnBhY2tfc2hhcmVfc2NvcGVzX18uZGVmYXVsdCk7XG5cbiAgcmVtb3RlQ29udGFpbmVyTWFwLnNldChyZW1vdGVOYW1lLCBjb250YWluZXIpO1xuICByZXR1cm4gY29udGFpbmVyO1xufVxuIl19
@@ -2,10 +2,13 @@ let resolveRemoteUrl;
2
2
  function setRemoteUrlResolver(_resolveRemoteUrl) {
3
3
  resolveRemoteUrl = _resolveRemoteUrl;
4
4
  }
5
- let remoteUrlDefinitions;
5
+ let remoteUrlDefinitions = {};
6
6
  function setRemoteDefinitions(definitions) {
7
7
  remoteUrlDefinitions = definitions;
8
8
  }
9
+ function setRemoteDefinition(remoteName, remoteUrl) {
10
+ remoteUrlDefinitions[remoteName] = remoteUrl;
11
+ }
9
12
  let remoteModuleMap = new Map();
10
13
  let remoteContainerMap = new Map();
11
14
  async function loadRemoteModule(remoteName, moduleName) {
@@ -1 +1 @@
1
- {"version":3,"file":"nx-angular-mf.mjs","sources":["../../../../packages/angular/mf/mf.ts","../../../../packages/angular/mf/nx-angular-mf.ts"],"sourcesContent":["export type ResolveRemoteUrlFunction = (\n remoteName: string\n) => string | Promise<string>;\n\ndeclare const __webpack_init_sharing__: (scope: 'default') => Promise<void>;\ndeclare const __webpack_share_scopes__: { default: unknown };\n\nlet resolveRemoteUrl: ResolveRemoteUrlFunction;\nexport function setRemoteUrlResolver(\n _resolveRemoteUrl: ResolveRemoteUrlFunction\n) {\n resolveRemoteUrl = _resolveRemoteUrl;\n}\n\nlet remoteUrlDefinitions: Record<string, string>;\nexport function setRemoteDefinitions(definitions: Record<string, string>) {\n remoteUrlDefinitions = definitions;\n}\n\nlet remoteModuleMap = new Map<string, unknown>();\nlet remoteContainerMap = new Map<string, unknown>();\nexport async function loadRemoteModule(remoteName: string, moduleName: string) {\n const remoteModuleKey = `${remoteName}:${moduleName}`;\n if (remoteModuleMap.has(remoteModuleKey)) {\n return remoteModuleMap.get(remoteModuleKey);\n }\n\n const container = remoteContainerMap.has(remoteName)\n ? remoteContainerMap.get(remoteName)\n : await loadRemoteContainer(remoteName);\n\n const factory = await container.get(moduleName);\n const Module = factory();\n\n remoteModuleMap.set(remoteModuleKey, Module);\n\n return Module;\n}\n\nfunction loadModule(url: string) {\n return import(/* webpackIgnore:true */ url);\n}\n\nlet initialSharingScopeCreated = false;\nasync function loadRemoteContainer(remoteName: string) {\n if (!resolveRemoteUrl && !remoteUrlDefinitions) {\n throw new Error(\n 'Call setRemoteDefinitions or setRemoteUrlResolver to allow Dynamic Federation to find the remote apps correctly.'\n );\n }\n\n if (!initialSharingScopeCreated) {\n initialSharingScopeCreated = true;\n await __webpack_init_sharing__('default');\n }\n\n const remoteUrl = remoteUrlDefinitions\n ? remoteUrlDefinitions[remoteName]\n : await resolveRemoteUrl(remoteName);\n\n let containerUrl = remoteUrl;\n if (!remoteUrl.endsWith('.mjs') && !remoteUrl.endsWith('.js')) {\n containerUrl = `${remoteUrl}${\n remoteUrl.endsWith('/') ? '' : '/'\n }remoteEntry.mjs`;\n }\n\n const container = await loadModule(containerUrl);\n await container.init(__webpack_share_scopes__.default);\n\n remoteContainerMap.set(remoteName, container);\n return container;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAOA,IAAI,gBAA0C,CAAC;AACzC,SAAU,oBAAoB,CAClC,iBAA2C,EAAA;IAE3C,gBAAgB,GAAG,iBAAiB,CAAC;AACvC,CAAC;AAED,IAAI,oBAA4C,CAAC;AAC3C,SAAU,oBAAoB,CAAC,WAAmC,EAAA;IACtE,oBAAoB,GAAG,WAAW,CAAC;AACrC,CAAC;AAED,IAAI,eAAe,GA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AAClC,UAAE,MAAM,gBAAgB,CAAC,UAAU,CAAC,CAAC;IAEvC,IAAI,YAAY,GAAG,SAAS,CAAC;AAC7B,IAAA,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AAC7D,QAAA,YAAY,GAAG,CAAG,EAAA,SAAS,GACzB,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,GACjC,iBAAiB,CAAC;KACnB;AAED,IAAA,MAAM,SAAS,GAAG,MAAM,UAAU,CAAC,YAAY,CAAC,CAAC;IACjD,MAAM,SAAS,CAAC,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;AAEvD,IAAA,kBAAkB,CAAC,GAAG,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;AAC9C,IAAA,OAAO,SAAS,CAAC;AACnB;;ACxEA;;AAEG;;;;"}
1
+ {"version":3,"file":"nx-angular-mf.mjs","sources":["../../../../packages/angular/mf/mf.ts","../../../../packages/angular/mf/nx-angular-mf.ts"],"sourcesContent":["export type ResolveRemoteUrlFunction = (\n remoteName: string\n) => string | Promise<string>;\n\ndeclare const __webpack_init_sharing__: (scope: 'default') => Promise<void>;\ndeclare const __webpack_share_scopes__: { default: unknown };\n\nlet resolveRemoteUrl: ResolveRemoteUrlFunction;\nexport function setRemoteUrlResolver(\n _resolveRemoteUrl: ResolveRemoteUrlFunction\n) {\n resolveRemoteUrl = _resolveRemoteUrl;\n}\n\nlet remoteUrlDefinitions: Record<string, string> = {};\nexport function setRemoteDefinitions(definitions: Record<string, string>) {\n remoteUrlDefinitions = definitions;\n}\n\nexport function setRemoteDefinition(remoteName: string, remoteUrl: string) {\n remoteUrlDefinitions[remoteName] = remoteUrl;\n}\n\nlet remoteModuleMap = new Map<string, unknown>();\nlet remoteContainerMap = new Map<string, unknown>();\nexport async function loadRemoteModule(remoteName: string, moduleName: string) {\n const remoteModuleKey = `${remoteName}:${moduleName}`;\n if (remoteModuleMap.has(remoteModuleKey)) {\n return remoteModuleMap.get(remoteModuleKey);\n }\n\n const container = remoteContainerMap.has(remoteName)\n ? remoteContainerMap.get(remoteName)\n : await loadRemoteContainer(remoteName);\n\n const factory = await container.get(moduleName);\n const Module = factory();\n\n remoteModuleMap.set(remoteModuleKey, Module);\n\n return Module;\n}\n\nfunction loadModule(url: string) {\n return import(/* webpackIgnore:true */ url);\n}\n\nlet initialSharingScopeCreated = false;\nasync function loadRemoteContainer(remoteName: string) {\n if (!resolveRemoteUrl && !remoteUrlDefinitions) {\n throw new Error(\n 'Call setRemoteDefinitions or setRemoteUrlResolver to allow Dynamic Federation to find the remote apps correctly.'\n );\n }\n\n if (!initialSharingScopeCreated) {\n initialSharingScopeCreated = true;\n await __webpack_init_sharing__('default');\n }\n\n const remoteUrl = remoteUrlDefinitions\n ? remoteUrlDefinitions[remoteName]\n : await resolveRemoteUrl(remoteName);\n\n let containerUrl = remoteUrl;\n if (!remoteUrl.endsWith('.mjs') && !remoteUrl.endsWith('.js')) {\n containerUrl = `${remoteUrl}${\n remoteUrl.endsWith('/') ? '' : '/'\n }remoteEntry.mjs`;\n }\n\n const container = await loadModule(containerUrl);\n await container.init(__webpack_share_scopes__.default);\n\n remoteContainerMap.set(remoteName, container);\n return container;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAOA,IAAI,gBAA0C,CAAC;AACzC,SAAU,oBAAoB,CAClC,iBAA2C,EAAA;IAE3C,gBAAgB,GAAG,iBAAiB,CAAC;AACvC,CAAC;AAED,IAAI,oBAAoB,GAA2B,EAAE,CAAC;AAChD,SAAU,oBAAoB,CAAC,WAAmC,EAAA;IACtE,oBAAoB,GAAG,WAAW,CAAC;AACrC,CAAC;AAEe,SAAA,mBAAmB,CAAC,UAAkB,EAAE,SAAiB,EAAA;AACvE,IAAA,oBAAoB,CAAC,UAAU,CAAC,GAAG,SAAS,CA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pC,UAAE,oBAAoB,CAAC,UAAU,CAAC;AAClC,UAAE,MAAM,gBAAgB,CAAC,UAAU,CAAC,CAAC;IAEvC,IAAI,YAAY,GAAG,SAAS,CAAC;AAC7B,IAAA,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AAC7D,QAAA,YAAY,GAAG,CAAG,EAAA,SAAS,GACzB,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,GACjC,iBAAiB,CAAC;KACnB;AAED,IAAA,MAAM,SAAS,GAAG,MAAM,UAAU,CAAC,YAAY,CAAC,CAAC;IACjD,MAAM,SAAS,CAAC,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;AAEvD,IAAA,kBAAkB,CAAC,GAAG,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;AAC9C,IAAA,OAAO,SAAS,CAAC;AACnB;;AC5EA;;AAEG;;;;"}
package/mf/mf.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export type ResolveRemoteUrlFunction = (remoteName: string) => string | Promise<string>;
2
2
  export declare function setRemoteUrlResolver(_resolveRemoteUrl: ResolveRemoteUrlFunction): void;
3
3
  export declare function setRemoteDefinitions(definitions: Record<string, string>): void;
4
+ export declare function setRemoteDefinition(remoteName: string, remoteUrl: string): void;
4
5
  export declare function loadRemoteModule(remoteName: string, moduleName: string): Promise<any>;
package/migrations.json CHANGED
@@ -2012,6 +2012,22 @@
2012
2012
  "alwaysAddToPackageJson": false
2013
2013
  }
2014
2014
  }
2015
+ },
2016
+ "19.5.4-ngrx": {
2017
+ "version": "19.5.4-beta.0",
2018
+ "requires": {
2019
+ "@angular/core": "^18.0.0"
2020
+ },
2021
+ "packages": {
2022
+ "@ngrx/store": {
2023
+ "version": "^18.0.1",
2024
+ "alwaysAddToPackageJson": false
2025
+ },
2026
+ "@ngrx/operators": {
2027
+ "version": "^18.0.1",
2028
+ "alwaysAddToPackageJson": false
2029
+ }
2030
+ }
2015
2031
  }
2016
2032
  }
2017
2033
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/angular",
3
- "version": "19.5.2",
3
+ "version": "19.5.4",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Angular contains executors, generators, and utilities for managing Angular applications and libraries within an Nx workspace. It provides: \n\n- Integration with libraries such as Storybook, Jest, ESLint, Tailwind CSS, Playwright and Cypress. \n\n- Generators to help scaffold code quickly (like: Micro Frontends, Libraries, both internal to your codebase and publishable to npm) \n\n- Single Component Application Modules (SCAMs) \n\n- NgRx helpers. \n\n- Utilities for automatic workspace refactoring.",
6
6
  "repository": {
@@ -72,7 +72,6 @@
72
72
  "@typescript-eslint/type-utils": "^7.16.0",
73
73
  "chalk": "^4.1.0",
74
74
  "find-cache-dir": "^3.3.2",
75
- "ignore": "^5.0.4",
76
75
  "magic-string": "~0.30.2",
77
76
  "minimatch": "9.0.3",
78
77
  "semver": "^7.5.3",
@@ -80,28 +79,22 @@
80
79
  "webpack-merge": "^5.8.0",
81
80
  "webpack": "^5.88.0",
82
81
  "@module-federation/enhanced": "~0.2.3",
83
- "@nx/devkit": "19.5.2",
84
- "@nx/js": "19.5.2",
85
- "@nx/eslint": "19.5.2",
86
- "@nx/webpack": "19.5.2",
87
- "@nx/web": "19.5.2",
88
- "@nx/workspace": "19.5.2",
82
+ "@nx/devkit": "19.5.4",
83
+ "@nx/js": "19.5.4",
84
+ "@nx/eslint": "19.5.4",
85
+ "@nx/webpack": "19.5.4",
86
+ "@nx/web": "19.5.4",
87
+ "@nx/workspace": "19.5.4",
89
88
  "piscina": "^4.4.0",
90
- "@nrwl/angular": "19.5.2"
89
+ "@nrwl/angular": "19.5.4"
91
90
  },
92
91
  "peerDependencies": {
93
92
  "@angular-devkit/build-angular": ">= 16.0.0 < 19.0.0",
94
93
  "@angular-devkit/core": ">= 16.0.0 < 19.0.0",
95
94
  "@angular-devkit/schematics": ">= 16.0.0 < 19.0.0",
96
95
  "@schematics/angular": ">= 16.0.0 < 19.0.0",
97
- "esbuild": "^0.19.2",
98
96
  "rxjs": "^6.5.3 || ^7.5.0"
99
97
  },
100
- "peerDependenciesMeta": {
101
- "esbuild": {
102
- "optional": true
103
- }
104
- },
105
98
  "publishConfig": {
106
99
  "access": "public"
107
100
  },
@@ -14,7 +14,7 @@ async function buildStaticRemotes(staticRemotesConfig, nxBin, context, options)
14
14
  for (const app of staticRemotesConfig.remotes) {
15
15
  mappedLocationOfRemotes[app] = `http${options.ssl ? 's' : ''}://${options.host}:${options.staticRemotesPort}/${staticRemotesConfig.config[app].urlSegment}`;
16
16
  }
17
- await new Promise((res) => {
17
+ await new Promise((res, rej) => {
18
18
  devkit_1.logger.info(`NX Building ${staticRemotesConfig.remotes.length} static remotes...`);
19
19
  const staticProcess = (0, node_child_process_1.fork)(nxBin, [
20
20
  'run-many',
@@ -35,6 +35,11 @@ async function buildStaticRemotes(staticRemotesConfig, nxBin, context, options)
35
35
  const ANSII_CODE_REGEX = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;
36
36
  const stdoutString = data.toString().replace(ANSII_CODE_REGEX, '');
37
37
  stdoutStream.write(stdoutString);
38
+ // in addition to writing into the stdout stream, also show error directly in console
39
+ // so the error is easily discoverable. 'ERROR in' is the key word to search in webpack output.
40
+ if (stdoutString.includes('ERROR in')) {
41
+ devkit_1.logger.log(stdoutString);
42
+ }
38
43
  if (stdoutString.includes('Successfully ran target build')) {
39
44
  staticProcess.stdout.removeAllListeners('data');
40
45
  devkit_1.logger.info(`NX Built ${staticRemotesConfig.remotes.length} static remotes`);
@@ -47,9 +52,11 @@ async function buildStaticRemotes(staticRemotesConfig, nxBin, context, options)
47
52
  staticProcess.stdout.removeAllListeners('data');
48
53
  staticProcess.stderr.removeAllListeners('data');
49
54
  if (code !== 0) {
50
- throw new Error(`Remote failed to start. A complete log can be found in: ${remoteBuildLogFile}`);
55
+ rej(`Remote failed to start. A complete log can be found in: ${remoteBuildLogFile}`);
56
+ }
57
+ else {
58
+ res();
51
59
  }
52
- res();
53
60
  });
54
61
  process.on('SIGTERM', () => staticProcess.kill('SIGTERM'));
55
62
  process.on('exit', () => staticProcess.kill('SIGTERM'));
@@ -7,7 +7,6 @@ const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescri
7
7
  const path_1 = require("path");
8
8
  const ast_utils_1 = require("../../../utils/nx-devkit/ast-utils");
9
9
  const module_info_1 = require("./module-info");
10
- const tree_utilities_1 = require("./tree-utilities");
11
10
  let tsModule;
12
11
  let tsquery;
13
12
  function getComponentsInfo(tree, entryPoint, moduleFilePaths, projectName) {
@@ -133,7 +132,10 @@ function getComponentInfo(tree, entryPoint, sourceFile, imports, moduleFilePath,
133
132
  function getComponentInfoFromDir(tree, entryPoint, dir, componentName, moduleFolderPath) {
134
133
  let path = null;
135
134
  let componentFileName = null;
136
- const componentImportPathChildren = (0, tree_utilities_1.getAllFilesRecursivelyFromDir)(tree, dir);
135
+ const componentImportPathChildren = [];
136
+ (0, devkit_1.visitNotIgnoredFiles)(tree, dir, (filePath) => {
137
+ componentImportPathChildren.push(filePath);
138
+ });
137
139
  for (const candidateFile of componentImportPathChildren) {
138
140
  if (candidateFile.endsWith('.ts')) {
139
141
  const content = tree.read(candidateFile, 'utf-8');
@@ -2,7 +2,7 @@ export declare const nxVersion: any;
2
2
  export declare const angularVersion = "~18.1.0";
3
3
  export declare const angularDevkitVersion = "~18.1.0";
4
4
  export declare const ngPackagrVersion = "~18.1.0";
5
- export declare const ngrxVersion = "^18.0.0";
5
+ export declare const ngrxVersion = "^18.0.1";
6
6
  export declare const rxjsVersion = "~7.8.0";
7
7
  export declare const zoneJsVersion = "~0.14.3";
8
8
  export declare const angularJsVersion = "1.7.9";
@@ -12,7 +12,7 @@ export declare const typesCorsVersion = "~2.8.5";
12
12
  export declare const expressVersion = "~4.18.2";
13
13
  export declare const typesExpressVersion = "4.17.14";
14
14
  export declare const browserSyncVersion = "^3.0.0";
15
- export declare const moduleFederationNodeVersion = "^2.3.0";
15
+ export declare const moduleFederationNodeVersion = "~2.4.0";
16
16
  export declare const moduleFederationEnhancedVersion = "~0.2.3";
17
17
  export declare const angularEslintVersion = "^18.0.1";
18
18
  export declare const typescriptEslintVersion = "^7.16.0";
@@ -5,7 +5,7 @@ exports.nxVersion = require('../../package.json').version;
5
5
  exports.angularVersion = '~18.1.0';
6
6
  exports.angularDevkitVersion = '~18.1.0';
7
7
  exports.ngPackagrVersion = '~18.1.0';
8
- exports.ngrxVersion = '^18.0.0';
8
+ exports.ngrxVersion = '^18.0.1';
9
9
  exports.rxjsVersion = '~7.8.0';
10
10
  exports.zoneJsVersion = '~0.14.3';
11
11
  exports.angularJsVersion = '1.7.9';
@@ -15,7 +15,7 @@ exports.typesCorsVersion = '~2.8.5';
15
15
  exports.expressVersion = '~4.18.2';
16
16
  exports.typesExpressVersion = '4.17.14';
17
17
  exports.browserSyncVersion = '^3.0.0';
18
- exports.moduleFederationNodeVersion = '^2.3.0';
18
+ exports.moduleFederationNodeVersion = '~2.4.0';
19
19
  exports.moduleFederationEnhancedVersion = '~0.2.3';
20
20
  exports.angularEslintVersion = '^18.0.1';
21
21
  exports.typescriptEslintVersion = '^7.16.0';
@@ -1,2 +0,0 @@
1
- import type { Tree } from '@nx/devkit';
2
- export declare function getAllFilesRecursivelyFromDir(tree: Tree, dir: string): string[];
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getAllFilesRecursivelyFromDir = getAllFilesRecursivelyFromDir;
4
- const tslib_1 = require("tslib");
5
- const devkit_1 = require("@nx/devkit");
6
- const ignore_1 = tslib_1.__importDefault(require("ignore"));
7
- function getAllFilesRecursivelyFromDir(tree, dir) {
8
- if (isPathIgnored(tree, dir)) {
9
- return [];
10
- }
11
- const files = [];
12
- const children = tree.children(dir);
13
- children.forEach((child) => {
14
- const childPath = (0, devkit_1.joinPathFragments)(dir, child);
15
- if (tree.isFile(childPath)) {
16
- files.push(childPath);
17
- }
18
- else {
19
- files.push(...getAllFilesRecursivelyFromDir(tree, childPath));
20
- }
21
- });
22
- return files;
23
- }
24
- function isPathIgnored(tree, path) {
25
- let ig;
26
- if (tree.exists('.gitignore')) {
27
- ig = (0, ignore_1.default)();
28
- ig.add(tree.read('.gitignore', 'utf-8'));
29
- }
30
- return path !== '' && ig?.ignores(path);
31
- }