@o3r/schematics 10.0.0-prerelease.94 → 10.0.0-prerelease.95

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/schematics",
3
- "version": "10.0.0-prerelease.94",
3
+ "version": "10.0.0-prerelease.95",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -30,7 +30,7 @@
30
30
  "@angular-devkit/core": "~17.2.0",
31
31
  "@angular-devkit/schematics": "~17.2.0",
32
32
  "@angular/cli": "~17.2.0",
33
- "@o3r/telemetry": "^10.0.0-prerelease.94",
33
+ "@o3r/telemetry": "^10.0.0-prerelease.95",
34
34
  "@schematics/angular": "~17.2.0",
35
35
  "eslint": "^8.42.0",
36
36
  "rxjs": "^7.8.1",
@@ -78,9 +78,9 @@
78
78
  "@nx/eslint-plugin": "~18.0.2",
79
79
  "@nx/jest": "~18.0.2",
80
80
  "@nx/js": "~18.0.2",
81
- "@o3r/build-helpers": "^10.0.0-prerelease.94",
82
- "@o3r/eslint-plugin": "^10.0.0-prerelease.94",
83
- "@o3r/telemetry": "^10.0.0-prerelease.94",
81
+ "@o3r/build-helpers": "^10.0.0-prerelease.95",
82
+ "@o3r/eslint-plugin": "^10.0.0-prerelease.95",
83
+ "@o3r/telemetry": "^10.0.0-prerelease.95",
84
84
  "@schematics/angular": "~17.2.0",
85
85
  "@stylistic/eslint-plugin-ts": "^1.5.4",
86
86
  "@types/jest": "~29.5.2",
@@ -1 +1 @@
1
- {"version":3,"file":"update-ts-imports.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/update-imports/update-ts-imports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAElD,OAAO,EAAsE,cAAc,EAAuB,MAAM,qBAAqB,CAAC;AAE9I;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,UAAU,GAAE,cAAmB,EAAE,eAAe,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,EAAE,QAAQ,UAAQ,GAAG,IAAI,CA2BnI"}
1
+ {"version":3,"file":"update-ts-imports.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/update-imports/update-ts-imports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAElD,OAAO,EAAsE,cAAc,EAAuB,MAAM,qBAAqB,CAAC;AAE9I;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,UAAU,GAAE,cAAmB,EAAE,eAAe,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,EAAE,QAAQ,UAAQ,GAAG,IAAI,CA4BnI"}
@@ -13,12 +13,13 @@ function updateImports(mapImports = {}, renamedPackages = {}, fromRoot = false)
13
13
  return (tree, context) => {
14
14
  const files = fromRoot ? (0, index_1.getFilesWithExtensionFromTree)(tree, 'ts') : (0, index_1.getSourceFilesFromWorkspaceProjects)(tree);
15
15
  // exact match on import path
16
- const importsRegexp = new RegExp(`^(${[...Object.keys(mapImports)].join('|')})$`);
16
+ const escapeRegExp = (str) => str.replace(/[-[\]/{}()*+?.\\^$|]/g, '\\$&');
17
+ const importsRegexp = new RegExp(`^(${Object.keys(mapImports).map(escapeRegExp).join('|')})$`);
17
18
  // match the import path starting with the package to be renamed
18
- const renamePackagesRegexp = new RegExp(`^(${[...Object.keys(renamedPackages)].join('|')})`);
19
+ const renamePackagesRegexp = new RegExp(`^(${Object.keys(renamedPackages).map(escapeRegExp).join('|')})`);
19
20
  let nbOfUnResolvedImports = 0;
20
21
  files.forEach((file) => {
21
- const sourceFile = ts.createSourceFile(file, tree.read(file).toString(), ts.ScriptTarget.ES2015, true);
22
+ const sourceFile = ts.createSourceFile(file, tree.readText(file), ts.ScriptTarget.ES2015, true);
22
23
  nbOfUnResolvedImports += (0, index_1.updateImportsInFile)(context.logger, tree, sourceFile, importsRegexp, renamePackagesRegexp, mapImports, renamedPackages);
23
24
  });
24
25
  if (nbOfUnResolvedImports > 0) {
@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,CAAC,QAAQ,CAAC,IAAI,CAAC,EACnB,EAAE,CAAC,YAAY,CAAC,MAAM,EACtB,IAAI,CACL,CAAC;YACF,qBAAqB,IAAI,IAAA,2BAAmB,EAAC,OAAO,CAAC,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,oBAAoB,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC;QACnJ,CAAC,CAAC,CAAC;QAEH,IAAI,qBAAqB,GAAG,CAAC,EAAE;YAC7B,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,mDAAmD,qBAAqB,yEAAyE,CAAC,CAAC;SACxK;QAED,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC;AA5BD,sCA4BC"}
@@ -1 +1 @@
1
- {"version":3,"file":"update-imports.d.ts","sourceRoot":"","sources":["../../../src/utility/update-imports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAavD,0DAA0D;AAC1D,MAAM,WAAW,cAAc;IAC7B,CAAC,WAAW,EAAE,MAAM,GAAG;QAAE,CAAC,UAAU,EAAE,MAAM,GAAG;YAAE,UAAU,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAC;CAC5F;AAGD;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,OAAO,CAAC,SAAS,EACzB,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,EAAE,CAAC,UAAU,EACzB,aAAa,EAAE,MAAM,EACrB,oBAAoB,EAAE,MAAM,EAC5B,UAAU,GAAE,cAAmB,EAC/B,eAAe,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,UAkF7C"}
1
+ {"version":3,"file":"update-imports.d.ts","sourceRoot":"","sources":["../../../src/utility/update-imports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAavD,0DAA0D;AAC1D,MAAM,WAAW,cAAc;IAC7B,CAAC,WAAW,EAAE,MAAM,GAAG;QAAE,CAAC,UAAU,EAAE,MAAM,GAAG;YAAE,UAAU,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAC;CAC5F;AAGD;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,OAAO,CAAC,SAAS,EACzB,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,EAAE,CAAC,UAAU,EACzB,aAAa,EAAE,MAAM,EACrB,oBAAoB,EAAE,MAAM,EAC5B,UAAU,GAAE,cAAmB,EAC/B,eAAe,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,UAkG7C"}
@@ -22,7 +22,7 @@ function updateImportsInFile(logger, tree, sourceFile, importsRegexp, renamePack
22
22
  const imp = nodeImp;
23
23
  const importFrom = imp.moduleSpecifier.getText().replace(/['"]/g, '');
24
24
  const renamePackageMatch = importFrom.match(renamePackagesRegexp);
25
- const otterPackage = renamePackageMatch ? renamePackageMatch[0] : importFrom.match(importsRegexp)?.[0];
25
+ const otterPackage = renamePackageMatch?.[0] || importFrom.match(importsRegexp)?.[0];
26
26
  // If the import matched an Otter package
27
27
  if (otterPackage) {
28
28
  if (!oldImportedSymbolsPerPackage[otterPackage]) {
@@ -48,7 +48,7 @@ function updateImportsInFile(logger, tree, sourceFile, importsRegexp, renamePack
48
48
  const resolvedImports = Object.entries(oldImportedSymbolsPerPackage).reduce((acc, [oldPackageName, importsFromOldPackage]) => {
49
49
  importsFromOldPackage.forEach((importSymbol) => {
50
50
  let newPackageNameImport;
51
- if (Object.keys(renamedPackages).indexOf(oldPackageName) > 0) {
51
+ if (renamedPackages[oldPackageName]) {
52
52
  newPackageNameImport = importSymbol.location.replace(oldPackageName, renamedPackages[oldPackageName]);
53
53
  }
54
54
  else {
@@ -66,14 +66,24 @@ function updateImportsInFile(logger, tree, sourceFile, importsRegexp, renamePack
66
66
  });
67
67
  return acc;
68
68
  }, {});
69
+ let fileContent = tree.readText(sourceFile.fileName);
70
+ const escapeRegExp = (str) => str.replace(/[-[\]/{}()*+?.\\^$|]/g, '\\$&');
69
71
  // Remove captured imports
70
- const fileWithoutImports = tree.read(sourceFile.fileName).toString()
71
- .replace(new RegExp(`(${importNodes.map((node) => node.getText()).join('|')})[\\n\\r]*`, 'g'), '');
72
+ fileContent = fileContent.replace(new RegExp(`(${importNodes.map((node) => escapeRegExp(node.getText())).join('|')})[\\n\\r]*`, 'g'), '');
73
+ // Replace imported values
74
+ const valuesToReplace = Object.fromEntries(Object.values(mapImports).flatMap((mapImport) => Object.entries(mapImport)
75
+ .filter(([_, value]) => value.newValue)
76
+ .map(([key, value]) => [key, value.newValue])));
77
+ if (Object.keys(valuesToReplace).length) {
78
+ const matcher = new RegExp(Object.keys(valuesToReplace).map((oldValue) => `\\b${escapeRegExp(oldValue)}\\b`).join('|'), 'g');
79
+ const replacer = (match) => valuesToReplace[match];
80
+ fileContent = fileContent.replace(matcher, replacer);
81
+ }
72
82
  // Add the computed imports at the top of the file
73
- const fileWithNewImports = Object.entries(resolvedImports)
83
+ fileContent = Object.entries(resolvedImports)
74
84
  .map(([importFrom, imports]) => `import {${imports.join(', ')}} from '${importFrom}';`)
75
- .join('\n') + '\n' + fileWithoutImports;
76
- tree.overwrite(sourceFile.fileName, fileWithNewImports);
85
+ .join('\n') + '\n' + fileContent;
86
+ tree.overwrite(sourceFile.fileName, fileContent);
77
87
  // Log details about imports for which we could not find an associated sub-entry
78
88
  if (unResolvedImports.length > 0) {
79
89
  logger.warn(`Some imports in file ${sourceFile.fileName} could not be resolved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CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC;KACtJ;IAED,OAAO,iBAAiB,CAAC,MAAM,CAAC;AAClC,CAAC;AAzGD,kDAyGC"}
@@ -46,7 +46,7 @@ const updatePipes = (pipeReplacementInfo) => (tree, context) => {
46
46
  const matchers = Array.from(file.content.toString().matchAll(pipeRegex)).filter((matcher) => !!pipeReplacementInfo[matcher[1]]);
47
47
  if (matchers.length) {
48
48
  const directory = (0, node_path_1.dirname)(file.path);
49
- const baseFileName = (0, node_path_1.basename)(file.path, '.template.html');
49
+ const baseFileName = (0, node_path_1.basename)((0, node_path_1.basename)(file.path, '.html'), '.template');
50
50
  const componentFile = (0, node_path_1.join)(directory, `${baseFileName}.component.ts`);
51
51
  const moduleFile = (0, node_path_1.join)(directory, `${baseFileName}.module.ts`);
52
52
  let standalone = false;
@@ -1 +1 @@
1
- {"version":3,"file":"update-pipes.js","sourceRoot":"","sources":["../../../src/utility/update-pipes.ts"],"names":[],"mappings":";;;AACA,yCAAoD;AACpD,iCAAiC;AACjC,+BAA6D;AAC7D,2CAA2G;AAC3G,uCAA4C;AAK5C,MAAM,YAAY,GAAG,CACnB,mBAAwC,EACxC,WAA6B,EAC7B,QAA4B,EAC5B,eAAuB,EACvB,YAAoB,EACpB,IAAU,EACV,OAAyB,EACzB,EAAE;IACF,IAAI,EAAE,CAAC,yBAAyB,CAAC,WAAW,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE;QACrE,MAAM,WAAW,GAAG,WAAW,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,EAA8E,EAAE,CAC3J,EAAE,CAAC,oBAAoB,CAAC,IAAI,CAAC;eAClB,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;eAC1B,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,SAAS;eAC5B,EAAE,CAAC,wBAAwB,CAAC,IAAI,CAAC,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