@o3r/schematics 11.6.0-prerelease.5 → 11.6.0-prerelease.50

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. package/cli/environment.js +1 -0
  2. package/package.json +39 -29
  3. package/schematics/ng-add/index.d.ts.map +1 -1
  4. package/schematics/ng-add/index.js +2 -2
  5. package/schematics/ng-add/schema.d.ts.map +1 -1
  6. package/src/interfaces/angular-workspace.d.ts.map +1 -1
  7. package/src/interfaces/index.d.ts +1 -1
  8. package/src/interfaces/index.d.ts.map +1 -1
  9. package/src/interfaces/index.js +1 -1
  10. package/src/interfaces/index.js.map +1 -1
  11. package/src/interfaces/rule-factories.d.ts.map +1 -1
  12. package/src/interfaces/schematic-option.d.ts.map +1 -1
  13. package/src/modules/index.d.ts +1 -1
  14. package/src/modules/index.d.ts.map +1 -1
  15. package/src/modules/index.js +1 -1
  16. package/src/modules/index.js.map +1 -1
  17. package/src/modules/modules.constants.d.ts.map +1 -1
  18. package/src/modules/modules.constants.js.map +1 -1
  19. package/src/modules/modules.display.rule.d.ts.map +1 -1
  20. package/src/modules/modules.display.rule.js +1 -2
  21. package/src/modules/modules.display.rule.js.map +1 -1
  22. package/src/modules/modules.helpers.d.ts +1 -1
  23. package/src/modules/modules.helpers.d.ts.map +1 -1
  24. package/src/modules/modules.helpers.js +5 -6
  25. package/src/modules/modules.helpers.js.map +1 -1
  26. package/src/public_api.d.ts +1 -1
  27. package/src/public_api.d.ts.map +1 -1
  28. package/src/public_api.js +1 -1
  29. package/src/public_api.js.map +1 -1
  30. package/src/rule-factories/add-imports/index.d.ts.map +1 -1
  31. package/src/rule-factories/add-imports/index.js +9 -5
  32. package/src/rule-factories/add-imports/index.js.map +1 -1
  33. package/src/rule-factories/check-packages-peers/index.d.ts.map +1 -1
  34. package/src/rule-factories/check-packages-peers/index.js +13 -12
  35. package/src/rule-factories/check-packages-peers/index.js.map +1 -1
  36. package/src/rule-factories/dev-tools/devtools-registration.d.ts +1 -3
  37. package/src/rule-factories/dev-tools/devtools-registration.d.ts.map +1 -1
  38. package/src/rule-factories/dev-tools/devtools-registration.js +34 -19
  39. package/src/rule-factories/dev-tools/devtools-registration.js.map +1 -1
  40. package/src/rule-factories/eslint-fix/index.d.ts +1 -2
  41. package/src/rule-factories/eslint-fix/index.d.ts.map +1 -1
  42. package/src/rule-factories/eslint-fix/index.js +17 -18
  43. package/src/rule-factories/eslint-fix/index.js.map +1 -1
  44. package/src/rule-factories/get-test-frameworks/index.d.ts.map +1 -1
  45. package/src/rule-factories/get-test-frameworks/index.js +2 -2
  46. package/src/rule-factories/get-test-frameworks/index.js.map +1 -1
  47. package/src/rule-factories/index.d.ts +2 -3
  48. package/src/rule-factories/index.d.ts.map +1 -1
  49. package/src/rule-factories/index.js +2 -3
  50. package/src/rule-factories/index.js.map +1 -1
  51. package/src/rule-factories/ng-add/dependencies.d.ts +16 -1
  52. package/src/rule-factories/ng-add/dependencies.d.ts.map +1 -1
  53. package/src/rule-factories/ng-add/dependencies.js +32 -17
  54. package/src/rule-factories/ng-add/dependencies.js.map +1 -1
  55. package/src/rule-factories/ng-add/index.d.ts +1 -1
  56. package/src/rule-factories/ng-add/index.d.ts.map +1 -1
  57. package/src/rule-factories/ng-add/index.js +1 -1
  58. package/src/rule-factories/ng-add/index.js.map +1 -1
  59. package/src/rule-factories/ng-add/ng-add.helpers.d.ts +1 -1
  60. package/src/rule-factories/ng-add/ng-add.helpers.d.ts.map +1 -1
  61. package/src/rule-factories/ng-add/ng-add.helpers.js +22 -23
  62. package/src/rule-factories/ng-add/ng-add.helpers.js.map +1 -1
  63. package/src/rule-factories/ng-add/schematics-register.d.ts.map +1 -1
  64. package/src/rule-factories/ng-add/schematics-register.js +36 -28
  65. package/src/rule-factories/ng-add/schematics-register.js.map +1 -1
  66. package/src/rule-factories/remove-packages/index.d.ts.map +1 -1
  67. package/src/rule-factories/remove-packages/index.js +9 -9
  68. package/src/rule-factories/remove-packages/index.js.map +1 -1
  69. package/src/rule-factories/update-imports/list-of-vars.js.map +1 -1
  70. package/src/rule-factories/update-imports/update-imports-with-scope.d.ts.map +1 -1
  71. package/src/rule-factories/update-imports/update-imports-with-scope.js +3 -2
  72. package/src/rule-factories/update-imports/update-imports-with-scope.js.map +1 -1
  73. package/src/rule-factories/update-imports/update-ts-imports.d.ts.map +1 -1
  74. package/src/rule-factories/update-imports/update-ts-imports.js +3 -3
  75. package/src/rule-factories/update-imports/update-ts-imports.js.map +1 -1
  76. package/src/rule-factories/vscode-extensions/index.d.ts.map +1 -1
  77. package/src/rule-factories/vscode-extensions/index.js +5 -5
  78. package/src/rule-factories/vscode-extensions/index.js.map +1 -1
  79. package/src/tasks/eslint/index.d.ts +1 -1
  80. package/src/tasks/eslint/index.d.ts.map +1 -1
  81. package/src/tasks/eslint/index.js +2 -2
  82. package/src/tasks/eslint/index.js.map +1 -1
  83. package/src/tasks/link/index.d.ts.map +1 -1
  84. package/src/tasks/link/index.js.map +1 -1
  85. package/src/tasks/ng-add/index.d.ts.map +1 -1
  86. package/src/tasks/package-manager/interfaces.d.ts.map +1 -1
  87. package/src/tasks/package-manager/npm-exec.d.ts.map +1 -1
  88. package/src/tasks/package-manager/npm-exec.js.map +1 -1
  89. package/src/tasks/package-manager/npm-install.d.ts.map +1 -1
  90. package/src/tasks/package-manager/npm-install.js +1 -1
  91. package/src/tasks/package-manager/npm-install.js.map +1 -1
  92. package/src/tasks/package-manager/npm-run.d.ts.map +1 -1
  93. package/src/tasks/package-manager/npm-run.js.map +1 -1
  94. package/src/utility/ast.d.ts.map +1 -1
  95. package/src/utility/ast.js +12 -15
  96. package/src/utility/ast.js.map +1 -1
  97. package/src/utility/builder.d.ts.map +1 -1
  98. package/src/utility/builder.js.map +1 -1
  99. package/src/utility/collection.d.ts.map +1 -1
  100. package/src/utility/collection.js +2 -3
  101. package/src/utility/collection.js.map +1 -1
  102. package/src/utility/component.d.ts.map +1 -1
  103. package/src/utility/component.js +2 -2
  104. package/src/utility/component.js.map +1 -1
  105. package/src/utility/dependencies.d.ts +1 -1
  106. package/src/utility/dependencies.d.ts.map +1 -1
  107. package/src/utility/dependencies.js +4 -5
  108. package/src/utility/dependencies.js.map +1 -1
  109. package/src/utility/environment.d.ts.map +1 -1
  110. package/src/utility/environment.js.map +1 -1
  111. package/src/utility/error.d.ts.map +1 -1
  112. package/src/utility/error.js.map +1 -1
  113. package/src/utility/file-info.d.ts +1 -1
  114. package/src/utility/file-info.d.ts.map +1 -1
  115. package/src/utility/file-info.js +1 -1
  116. package/src/utility/file-info.js.map +1 -1
  117. package/src/utility/generation.d.ts +1 -1
  118. package/src/utility/generation.d.ts.map +1 -1
  119. package/src/utility/generation.js +2 -15
  120. package/src/utility/generation.js.map +1 -1
  121. package/src/utility/gitignore.d.ts.map +1 -1
  122. package/src/utility/gitignore.js +2 -2
  123. package/src/utility/gitignore.js.map +1 -1
  124. package/src/utility/index.d.ts +2 -2
  125. package/src/utility/index.d.ts.map +1 -1
  126. package/src/utility/index.js +2 -2
  127. package/src/utility/index.js.map +1 -1
  128. package/src/utility/loaders.d.ts +1 -1
  129. package/src/utility/loaders.d.ts.map +1 -1
  130. package/src/utility/loaders.js +6 -6
  131. package/src/utility/loaders.js.map +1 -1
  132. package/src/utility/logo.d.ts +1 -1
  133. package/src/utility/logo.d.ts.map +1 -1
  134. package/src/utility/logo.js.map +1 -1
  135. package/src/utility/matching-peers.d.ts +3 -1
  136. package/src/utility/matching-peers.d.ts.map +1 -1
  137. package/src/utility/matching-peers.js +8 -6
  138. package/src/utility/matching-peers.js.map +1 -1
  139. package/src/utility/migration/migration.d.ts.map +1 -1
  140. package/src/utility/migration/migration.js +3 -3
  141. package/src/utility/migration/migration.js.map +1 -1
  142. package/src/utility/modules.d.ts +1 -1
  143. package/src/utility/modules.d.ts.map +1 -1
  144. package/src/utility/modules.js +16 -16
  145. package/src/utility/modules.js.map +1 -1
  146. package/src/utility/monorepo.d.ts +9 -4
  147. package/src/utility/monorepo.d.ts.map +1 -1
  148. package/src/utility/monorepo.js +0 -2
  149. package/src/utility/monorepo.js.map +1 -1
  150. package/src/utility/package-manager-runner.d.ts +2 -3
  151. package/src/utility/package-manager-runner.d.ts.map +1 -1
  152. package/src/utility/package-manager-runner.js +1 -4
  153. package/src/utility/package-manager-runner.js.map +1 -1
  154. package/src/utility/package-version.d.ts +0 -1
  155. package/src/utility/package-version.d.ts.map +1 -1
  156. package/src/utility/package-version.js +3 -4
  157. package/src/utility/package-version.js.map +1 -1
  158. package/src/utility/question.d.ts.map +1 -1
  159. package/src/utility/question.js.map +1 -1
  160. package/src/utility/routes.d.ts.map +1 -1
  161. package/src/utility/routes.js +6 -6
  162. package/src/utility/routes.js.map +1 -1
  163. package/src/utility/sub-entry.d.ts.map +1 -1
  164. package/src/utility/sub-entry.js.map +1 -1
  165. package/src/utility/template-property.helper.d.ts.map +1 -1
  166. package/src/utility/template-property.helper.js +2 -2
  167. package/src/utility/template-property.helper.js.map +1 -1
  168. package/src/utility/update-imports.d.ts +1 -1
  169. package/src/utility/update-imports.d.ts.map +1 -1
  170. package/src/utility/update-imports.js +10 -14
  171. package/src/utility/update-imports.js.map +1 -1
  172. package/src/utility/update-pipes.d.ts.map +1 -1
  173. package/src/utility/update-pipes.js +5 -5
  174. package/src/utility/update-pipes.js.map +1 -1
  175. package/src/utility/wrapper.d.ts.map +1 -1
  176. package/src/utility/wrapper.js +12 -11
  177. package/src/utility/wrapper.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"sub-entry.js","sourceRoot":"","sources":["../../../src/utility/sub-entry.ts"],"names":[],"mappings":";;AASA,0DAEC;AAQD,sEA2BC;AA5CD,kCAAkC;AAElC;;;;GAIG;AACH,SAAgB,uBAAuB,CAAC,IAAU,EAAE,WAAmB;IACrE,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC,CAAC;AAChE,CAAC;AACD;;;;;;GAMG;AACH,SAAgB,6BAA6B,CAAC,IAAU,EAAE,WAAmB,EAAE,UAAkB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AC,WAAW,EAAE,iBAAiB,CAAC,CAAC,CAAC;AAChE,CAAC;AACD;;;;;;GAMG;AACH,SAAgB,6BAA6B,CAAC,IAAU,EAAE,WAAmB,EAAE,UAAkB;IAC/F,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC;QACzD,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC;QACjE,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;QAEvG,MAAM,YAAY,GAAG,aAAa,EAAE,GAAG,EAAE,YAAY,IAAI;YACvD,aAAa,EAAE,YAAY;YAC3B,eAAe,EAAE,cAAc;YAC/B,WAAW,EAAE,UAAU;YACvB,gBAAgB,EAAE,eAAe;YACjC,aAAa,EAAE,YAAY;YAC3B,eAAe,EAAE,cAAc;YAC/B,cAAc,EAAE,aAAa;YAC7B,oBAAoB,EAAE,mBAAmB;YACzC,mBAAmB,EAAE,kBAAkB;SACxC,CAAC;QACF,MAAM,WAAW,GAAG;YAClB,SAAS,EAAE;gBACT,IAAI,EAAE,IAAI;gBACV,GAAG,EAAE;oBACH,SAAS,EAAE,UAAU;oBACrB,YAAY;iBACb;aACF;SACF,CAAC;QACF,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IACxG,CAAC;AACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"template-property.helper.d.ts","sourceRoot":"","sources":["../../../src/utility/template-property.helper.ts"],"names":[],"mappings":"AAUA;;;GAGG;A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F;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,iBAMrE"}
1
+ {"version":3,"file":"template-property.helper.d.ts","sourceRoot":"","sources":["../../../src/utility/template-property.helper.ts"],"names":[],"mappings":"AAYA;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAGnE;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAGpE;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,aAAa,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,GAAG,MAAM,CAGjG;AAED;;;;GAIG;AACH,wBAAgB,iCAAiC,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,UAG7F;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,UAG1F;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,aAAa,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,UAG7F;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,aAAa,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,UAGpF;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,aAAa,EAAE,MAAM,UAG1D;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,UAEtD;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,UAG1F;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,aAAa,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,UAG/F;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,aAAa,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,UAG3F;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,aAAa,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,UAG3F;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,aAAa,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,UAGzF;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,iBAMrE"}
@@ -29,7 +29,7 @@ function getComponentModuleItems(componentName) {
29
29
  */
30
30
  function getInputComponentName(componentName) {
31
31
  const componentModuleItems = getComponentModuleItems(componentName);
32
- return componentModuleItems[componentModuleItems.length - 1];
32
+ return componentModuleItems.at(-1);
33
33
  }
34
34
  /**
35
35
  * returns the component folder name
@@ -152,7 +152,7 @@ function getLibraryNameFromPath(path) {
152
152
  if (!path) {
153
153
  return null;
154
154
  }
155
- const libNameRes = /@[^@/]+\/[^/]+/.exec(path.replace(/\\/g, '/'));
155
+ const libNameRes = /@[^/@]+\/[^/]+/.exec(path.replace(/\\/g, '/'));
156
156
  return libNameRes && libNameRes[0];
157
157
  }
158
158
  //# sourceMappingURL=template-property.helper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"template-property.helper.js","sourceRoot":"","sources":["../../../src/utility/template-property.helper.ts"],"names":[],"mappings":";;AAcA,sDAGC;AAMD,wDAGC;AAOD,oDAGC;AAOD,8EAGC;AAOD,wDAGC;AAOD,8DAGC;AAOD,4CAGC;AAMD,sDAGC;AAMD,sDAEC;AAOD,wDAGC;AAOD,kEAGC;AAOD,0DAGC;AAOD,0DAGC;AAOD,sDAGC;AAMD,wDAMC;AA3JD,+CAA+C;AAE/C;;;GAGG;AACH,SAAS,uBAAuB,CAAC,aAAqB;IACpD,OAAO,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC;AAED;;;GAGG;AACH,SAAgB,qBAAqB,CAAC,aAAqB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uBAAuB,CAAC,aAAqB,EAAE,qBAA6B;IAC1F,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,aAAa,CAAC,CAAC;IAChE,OAAO,GAAG,cAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,GAAG,cAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,SAAS,CAAC;AACpG,CAAC;AAED;;;;GAIG;AACH,SAAgB,uBAAuB,CAAC,aAAqB,EAAE,qBAA6B;IAC1F,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,aAAa,CAAC,CAAC;IAChE,OAAO,GAAG,cAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,GAAG,cAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,SAAS,CAAC;AACpG,CAAC;AAED;;;;GAIG;AACH,SAAgB,qBAAqB,CAAC,aAAqB,EAAE,qBAA6B;IACxF,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,aAAa,EAAE,qBAAqB,CAAC,CAAC;IACrF,OAAO,GAAG,cAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC;AAClE,CAAC;AAED;;;GAGG;AACH,SAAgB,sBAAsB,CAAC,IAA+B;IACpE,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;IACnE,OAAO,UAAU,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;AACrC,CAAC"}
1
+ {"version":3,"file":"template-property.helper.js","sourceRoot":"","sources":["../../../src/utility/template-property.helper.ts"],"names":[],"mappings":";;AAgBA,sDAGC;AAMD,wDAGC;AAOD,oDAGC;AAOD,8EAGC;AAOD,wDAGC;AAOD,8DAGC;AAOD,4CAGC;AAMD,sDAGC;AAMD,sDAEC;AAOD,wDAGC;AAOD,kEAGC;A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AACrC,CAAC"}
@@ -1,6 +1,6 @@
1
- import * as ts from 'typescript';
2
1
  import { logging } from '@angular-devkit/core';
3
2
  import type { Tree } from '@angular-devkit/schematics';
3
+ import * as ts from 'typescript';
4
4
  /** Map containing all import changes in otter packages */
5
5
  export interface ImportsMapping {
6
6
  [packageName: string]: {
@@ -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;AAgBvD,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,UAoG7C"}
1
+ {"version":3,"file":"update-imports.d.ts","sourceRoot":"","sources":["../../../src/utility/update-imports.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACR,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,IAAI,EACL,MAAM,4BAA4B,CAAC;AAIpC,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAgBjC,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;AAID;;;;;;;;;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,UA8F7C"}
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.updateImportsInFile = updateImportsInFile;
4
- const ts = require("typescript");
5
4
  const ast_utils_1 = require("@schematics/angular/utility/ast-utils");
5
+ const ts = require("typescript");
6
+ const escapeRegExp = (str) => str.replace(/[$()*+./?[\\\]^{|}-]/g, '\\$&');
6
7
  /**
7
8
  * Update the imports of a given file according to replace mapping
8
9
  * @param logger Logger to report messages
@@ -20,7 +21,7 @@ function updateImportsInFile(logger, tree, sourceFile, importsRegexp, renamePack
20
21
  // First we look for all imports lines targeting an Otter package for which we know a mapping
21
22
  (0, ast_utils_1.findNodes)(sourceFile, ts.SyntaxKind.ImportDeclaration).map((nodeImp) => {
22
23
  const imp = nodeImp;
23
- const importFrom = imp.moduleSpecifier.getText().replace(/['"]/g, '');
24
+ const importFrom = imp.moduleSpecifier.getText().replace(/["']/g, '');
24
25
  const renamePackageMatch = importFrom.match(renamePackagesRegexp);
25
26
  const otterPackage = renamePackageMatch?.[0] || importFrom.match(importsRegexp)?.[0];
26
27
  // If the import matched an Otter package
@@ -33,9 +34,9 @@ function updateImportsInFile(logger, tree, sourceFile, importsRegexp, renamePack
33
34
  // We retrieve all the symbols listed in the import statement
34
35
  const namedImport = imp.importClause?.namedBindings;
35
36
  const isTypeOnlyImport = !!imp.importClause && ts.isTypeOnlyImportDeclaration(imp.importClause);
36
- const imports = namedImport && ts.isNamedImports(namedImport) ?
37
- namedImport.elements.map((element) => ({ symbol: element.getText(), isTypeOnlyImport, location: importFrom })) :
38
- [];
37
+ const imports = namedImport && ts.isNamedImports(namedImport)
38
+ ? namedImport.elements.map((element) => ({ symbol: element.getText(), isTypeOnlyImport, location: importFrom }))
39
+ : [];
39
40
  // And associate them to the Otter package
40
41
  oldImportedSymbolsPerPackage[otterPackage].push(...imports);
41
42
  }
@@ -48,13 +49,9 @@ function updateImportsInFile(logger, tree, sourceFile, importsRegexp, renamePack
48
49
  // If no mapping is found, we keep the original import location
49
50
  const resolvedImports = Object.entries(oldImportedSymbolsPerPackage).reduce((acc, [oldPackageName, importsFromOldPackage]) => {
50
51
  importsFromOldPackage.forEach((importSymbol) => {
51
- let newPackageNameImport;
52
- if (renamedPackages[oldPackageName]) {
53
- newPackageNameImport = importSymbol.location.replace(oldPackageName, renamedPackages[oldPackageName]);
54
- }
55
- else {
56
- newPackageNameImport = mapImports[oldPackageName]?.[importSymbol.symbol]?.newPackage;
57
- }
52
+ const newPackageNameImport = renamedPackages[oldPackageName]
53
+ ? importSymbol.location.replace(oldPackageName, renamedPackages[oldPackageName])
54
+ : mapImports[oldPackageName]?.[importSymbol.symbol]?.newPackage;
58
55
  const importFrom = newPackageNameImport || importSymbol.location;
59
56
  if (!newPackageNameImport) {
60
57
  unResolvedImports.push(importSymbol);
@@ -68,14 +65,13 @@ function updateImportsInFile(logger, tree, sourceFile, importsRegexp, renamePack
68
65
  return acc;
69
66
  }, {});
70
67
  let fileContent = tree.readText(sourceFile.fileName);
71
- const escapeRegExp = (str) => str.replace(/[-[\]/{}()*+?.\\^$|]/g, '\\$&');
72
68
  // Remove captured imports
73
69
  fileContent = fileContent.replace(new RegExp(`(${importNodes.map((node) => escapeRegExp(node.getText())).join('|')})[\\n\\r]*`, 'g'), '');
74
70
  // Replace imported values
75
71
  const valuesToReplace = Object.fromEntries(Object.values(mapImports).flatMap((mapImport) => Object.entries(mapImport)
76
72
  .filter(([_, value]) => value.newValue)
77
73
  .map(([key, value]) => [key, value.newValue])));
78
- if (Object.keys(valuesToReplace).length) {
74
+ if (Object.keys(valuesToReplace).length > 0) {
79
75
  const matcher = new RegExp(Object.keys(valuesToReplace).map((oldValue) => `\\b${escapeRegExp(oldValue)}\\b`).join('|'), 'g');
80
76
  const replacer = (match) => valuesToReplace[match];
81
77
  fileContent = fileContent.replace(matcher, replacer);
@@ -1 +1 @@
1
- {"version":3,"file":"update-imports.js","sourceRoot":"","sources":["../../../src/utility/update-imports.ts"],"names":[],"mappings":";;AAmCA,kDA2GC;AA9ID,iCAAiC;AAEjC,qEAAkE;AAuBlE;;;;;;;;;GASG;AACH,SAAgB,mBAAmB,CACjC,MAAyB,EACzB,IAAU,EACV,UAAyB,EACzB,aAAqB,EACrB,oBAA4B,EAC5B,aAA6B,EAAE,EAC/B,kBAA0C,EAAE;IAE5C,MAAM,4BAA4B,GAAsC,EAAE,CAAC;IAC3E,MAAM,iBAAiB,GAAsB,EAAE,CAAC;IAChD,MAAM,WAAW,GAA2B,EAAE,CAAC;IAE/C,6FAA6F;IAC7F,IAAA,qBAAS,EAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;QACrE,MAAM,GAAG,GAAG,OAA+B,CAAC;QAC5C,MAAM,UAAU,GAAG,GAAG,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QAEtE,MAAM,kBAAkB,GAAG,UAAU,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;QAElE,MAAM,YAAY,GAAG,kBAAkB,EAAE,CAAC,CAAC,CAAC,IAAI,UAAU,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAErF,yCAAy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CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,WAAW,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,UAAU,IAAI,CAAC;SACtF,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,WAAW,CAAC;IAEnC,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;IAEjD,gFAAgF;IAChF,IAAI,iBAAiB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACjC,MAAM,CAAC,IAAI,CAAC,wBAAwB,UAAU,CAAC,QAAQ,yBAAyB,CAAC,CAAC;QAClF,iBAAiB,CAAC,OAAO,CAAC,CAAC,gBAAgB,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,iBAAiB,gBAAgB,CAAC,MAAM,kBAAkB,gBAAgB,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC;IACvJ,CAAC;IAED,OAAO,iBAAiB,CAAC,MAAM,CAAC;AAClC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"update-pipes.d.ts","sourceRoot":"","sources":["../../../src/utility/update-pipes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAO1E,wCAAwC;AACxC,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE;IAAE,GAAG,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAmD7G;;;GAGG;AACH,eAAO,MAAM,WAAW,wBAAyB,mBAAmB,KAAG,IAoDtE,CAAC"}
1
+ {"version":3,"file":"update-pipes.d.ts","sourceRoot":"","sources":["../../../src/utility/update-pipes.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,IAAI,EAGL,MAAM,4BAA4B,CAAC;AAepC,wCAAwC;AACxC,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE;IAAE,GAAG,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAmD7G;;;GAGG;AACH,eAAO,MAAM,WAAW,wBAAyB,mBAAmB,KAAG,IAoDtE,CAAC"}
@@ -44,7 +44,7 @@ const updatePipes = (pipeReplacementInfo) => (tree, context) => {
44
44
  const files = (0, loaders_1.findFilesInTree)(tree.root, (file) => file.endsWith('.html'));
45
45
  files.forEach((file) => {
46
46
  const matchers = Array.from(file.content.toString().matchAll(pipeRegex)).filter((matcher) => !!pipeReplacementInfo[matcher[1]]);
47
- if (matchers.length) {
47
+ if (matchers.length > 0) {
48
48
  const directory = (0, node_path_1.dirname)(file.path);
49
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`);
@@ -59,9 +59,9 @@ const updatePipes = (pipeReplacementInfo) => (tree, context) => {
59
59
  }
60
60
  if (standalone) {
61
61
  const componentSourceFile = ts.createSourceFile(componentFile, tree.readText(componentFile), ts.ScriptTarget.ES2020, true);
62
- const [ngClass] = componentSourceFile.statements.filter((statement) => ts.isClassDeclaration(statement)
62
+ const ngClass = componentSourceFile.statements.find((statement) => ts.isClassDeclaration(statement)
63
63
  && (0, component_1.isNgClassComponent)(statement));
64
- const [ngDecorator] = ((ngClass && ts.getDecorators(ngClass)) || []).filter(component_1.isNgClassDecorator);
64
+ const ngDecorator = ((ngClass && ts.getDecorators(ngClass)) || []).find((decorator) => (0, component_1.isNgClassDecorator)(decorator));
65
65
  if (ngDecorator) {
66
66
  applyChanges(pipeReplacementInfo, ngDecorator, matchers, componentFile, file.path, tree, context);
67
67
  }
@@ -69,8 +69,8 @@ const updatePipes = (pipeReplacementInfo) => (tree, context) => {
69
69
  else if (tree.exists(moduleFile)) {
70
70
  const moduleSourceFile = ts.createSourceFile(moduleFile, tree.readText(moduleFile), ts.ScriptTarget.ES2020, true);
71
71
  const ngModuleClass = moduleSourceFile.statements.find((statement) => ts.isClassDeclaration(statement)
72
- && !!(ts.getDecorators(statement) || []).find(isNgModuleDecorator));
73
- const ngDecorator = ((ngModuleClass && ts.getDecorators(ngModuleClass)) || []).find(isNgModuleDecorator);
72
+ && (ts.getDecorators(statement) || []).some((decorator) => isNgModuleDecorator(decorator)));
73
+ const ngDecorator = ((ngModuleClass && ts.getDecorators(ngModuleClass)) || []).find((decorator) => isNgModuleDecorator(decorator));
74
74
  if (ngDecorator && (0, ast_1.isDecoratorWithArg)(ngDecorator)) {
75
75
  applyChanges(pipeReplacementInfo, ngDecorator, matchers, moduleFile, file.path, tree, context);
76
76
  }
@@ -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,CAAC;QACtE,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,w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,mBAAmB,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;gBACjG,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AApDW,QAAA,WAAW,eAoDtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"wrapper.d.ts","sourceRoot":"","sources":["../../../src/utility/wrapper.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AA2CvD;;;;GAIG;AACH,eAAO,MAAM,qCAAqC,EAAE,gBA4CnD,CAAC"}
1
+ {"version":3,"file":"wrapper.d.ts","sourceRoot":"","sources":["../../../src/utility/wrapper.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AAgDxB;;;;GAIG;AACH,eAAO,MAAM,qCAAqC,EAAE,gBA8CnD,CAAC"}
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createSchematicWithMetricsIfInstalled = void 0;
4
+ const node_fs_1 = require("node:fs");
5
+ const path = require("node:path");
4
6
  const schematics_1 = require("@angular-devkit/schematics");
5
7
  const dependencies_1 = require("@schematics/angular/utility/dependencies");
6
8
  const inquirer_1 = require("inquirer");
7
- const node_fs_1 = require("node:fs");
8
- const path = require("node:path");
9
- const rule_factories_1 = require("../rule-factories");
9
+ const dependencies_2 = require("../rule-factories/ng-add/dependencies");
10
10
  const noopSchematicWrapper = (fn) => fn;
11
11
  const PACKAGE_JSON_PATH = 'package.json';
12
12
  const setupO3rMetricsInPackageJson = (activated) => (tree) => {
@@ -19,11 +19,10 @@ const setupO3rMetricsInPackageJson = (activated) => (tree) => {
19
19
  }
20
20
  };
21
21
  const setupTelemetry = ({ workingDirectory, runNgAdd, exactO3rVersion }) => (_, context) => {
22
- const taskIdsFromContext = (0, rule_factories_1.hasSetupInformation)(context) ? context.setupDependencies.taskIds : undefined;
23
- const version = JSON.parse((0, node_fs_1.readFileSync)(path.join(__dirname, '..', '..', 'package.json'), 'utf-8')).version;
24
- return (0, rule_factories_1.setupDependencies)({
22
+ const taskIdsFromContext = (0, dependencies_2.hasSetupInformation)(context) ? context.setupDependencies.taskIds : undefined;
23
+ const version = JSON.parse((0, node_fs_1.readFileSync)(path.join(__dirname, '..', '..', 'package.json'), 'utf8')).version;
24
+ return (0, dependencies_2.setupDependencies)({
25
25
  dependencies: {
26
- // eslint-disable-next-line @typescript-eslint/naming-convention
27
26
  '@o3r/telemetry': {
28
27
  inManifest: [{
29
28
  range: `${exactO3rVersion ? '' : '~'}${version}`,
@@ -75,11 +74,13 @@ For more details and instructions on how to change these settings, see https://g
75
74
  }
76
75
  const subtreeDirectory = context.schematic.description.name === 'typescript-shell' ? opts.directory.split(path.posix.sep).join(path.sep) ?? '' : '';
77
76
  const rule = (0, schematics_1.chain)([
78
- typeof shouldInstallTelemetry !== 'undefined' ? (0, schematics_1.applyToSubtree)(subtreeDirectory, [setupO3rMetricsInPackageJson(!!shouldInstallTelemetry)]) : (0, schematics_1.noop)(),
77
+ typeof shouldInstallTelemetry === 'undefined' ? (0, schematics_1.noop)() : (0, schematics_1.applyToSubtree)(subtreeDirectory, [setupO3rMetricsInPackageJson(!!shouldInstallTelemetry)]),
79
78
  schematicFn(opts),
80
- shouldInstallTelemetry ? (0, schematics_1.applyToSubtree)(subtreeDirectory, [
81
- setupTelemetry({ workingDirectory: subtreeDirectory || undefined, runNgAdd: !subtreeDirectory, exactO3rVersion: opts.exactO3rVersion })
82
- ]) : (0, schematics_1.noop)(),
79
+ shouldInstallTelemetry
80
+ ? (0, schematics_1.applyToSubtree)(subtreeDirectory, [
81
+ setupTelemetry({ workingDirectory: subtreeDirectory || undefined, runNgAdd: !subtreeDirectory, exactO3rVersion: opts.exactO3rVersion })
82
+ ])
83
+ : (0, schematics_1.noop)(),
83
84
  typeof shouldInstallTelemetry !== 'undefined' && subtreeDirectory ? (0, schematics_1.applyToSubtree)(subtreeDirectory, [setupO3rMetricsInPackageJson(shouldInstallTelemetry)]) : (0, schematics_1.noop)()
84
85
  ]);
85
86
  return wrapper(() => rule)(opts);
@@ -1 +1 @@
1
- {"version":3,"file":"wrapper.js","sourceRoot":"","sources":["../../../src/utility/wrapper.ts"],"names":[],"mappings":";;;AACA,2DAAoF;AAEpF,2EAA8E;AAC9E,uCAA4C;AAC5C,qCAAuC;AACvC,kCAAkC;AAClC,sDAA2E;AAE3E,MAAM,oBAAoB,GAAqB,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC;AAE1D,MAAM,iBAAiB,GAAG,cAAc,CAAC;AAEzC,MAAM,4BAA4B,GAAiC,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE;IACzF,IAAI,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,CAAC;QACnC,MAAM,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAe,CAAC;QAEnE,WAAW,CAAC,MAAM,KAAK,EAAE,CAAC;QACzB,WAAW,CAAC,MAAqB,CAAC,GAAG,KAAK,EAAE,CAAC;QAC5C,WAAW,CAAC,MAAqB,CAAC,GAAkB,CAAC,SAAS,GAAG,SAAS,CAAC;QAE7E,IAAI,CAAC,SAAS,CAAC,iBAAiB,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAC1E,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,cAAc,GAA+F,CAAC,EAAE,gBAAgB,EAAE,QAAQ,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE;IACrL,MAAM,kBAAkB,GAAG,IAAA,oCAAmB,EAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,OAA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