@o3r/schematics 10.1.0-prerelease.1 → 10.1.0-prerelease.11

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.1.0-prerelease.1",
3
+ "version": "10.1.0-prerelease.11",
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.1.0-prerelease.1",
33
+ "@o3r/telemetry": "^10.1.0-prerelease.11",
34
34
  "@schematics/angular": "~17.2.0",
35
35
  "eslint": "^8.42.0",
36
36
  "rxjs": "^7.8.1",
@@ -54,6 +54,7 @@
54
54
  "dependencies": {
55
55
  "chalk": "^4.1.2",
56
56
  "globby": "^11.1.0",
57
+ "inquirer": "~8.2.6",
57
58
  "minimatch": "~9.0.3",
58
59
  "semver": "^7.5.2",
59
60
  "tslib": "^2.5.3"
@@ -78,11 +79,12 @@
78
79
  "@nx/eslint-plugin": "~18.0.2",
79
80
  "@nx/jest": "~18.0.2",
80
81
  "@nx/js": "~18.0.2",
81
- "@o3r/build-helpers": "^10.1.0-prerelease.1",
82
- "@o3r/eslint-plugin": "^10.1.0-prerelease.1",
83
- "@o3r/telemetry": "^10.1.0-prerelease.1",
82
+ "@o3r/build-helpers": "^10.1.0-prerelease.11",
83
+ "@o3r/eslint-plugin": "^10.1.0-prerelease.11",
84
+ "@o3r/telemetry": "^10.1.0-prerelease.11",
84
85
  "@schematics/angular": "~17.2.0",
85
86
  "@stylistic/eslint-plugin-ts": "^1.5.4",
87
+ "@types/inquirer": "~8.2.10",
86
88
  "@types/jest": "~29.5.2",
87
89
  "@types/node": "^20.0.0",
88
90
  "@types/semver": "^7.3.13",
@@ -1,4 +1,4 @@
1
- import { Rule, type TaskId, Tree } from '@angular-devkit/schematics';
1
+ import { Rule, type SchematicContext, type TaskId, Tree } from '@angular-devkit/schematics';
2
2
  import { NodeDependencyType } from '@schematics/angular/utility/dependencies';
3
3
  import { SupportedPackageManagers } from '../../utility';
4
4
  /**
@@ -60,6 +60,18 @@ export interface SetupDependenciesOptions {
60
60
  /** Callback to run after the task ID is calculated */
61
61
  scheduleTaskCallback?: (taskIds?: TaskId[]) => void;
62
62
  }
63
+ /** Result of the Setup Dependencies task scheduling process */
64
+ export interface SetupDependenciesResult {
65
+ /** List of the task ID resulting of the install process */
66
+ taskIds: TaskId[];
67
+ }
68
+ /**
69
+ * Determine if the context has information regarding the setup dependencies process
70
+ * @param context Schematic context
71
+ */
72
+ export declare const hasSetupInformation: (context: SchematicContext) => context is SchematicContext & {
73
+ setupDependencies: SetupDependenciesResult;
74
+ };
63
75
  /**
64
76
  * Retrieve the package install configuration
65
77
  * This is a workaround to ng-add to add the dependency to the sub-package
@@ -1 +1 @@
1
- {"version":3,"file":"dependencies.d.ts","sourceRoot":"","sources":["../../../../src/rule-factories/ng-add/dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAAa,KAAK,MAAM,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACvF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAI9E,OAAO,EAAyE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAIhI;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,0BAA0B;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,gCAAgC;IAChC,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,kBAAkB,EAAE,CAA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EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CACrD;AAED,+DAA+D;AAC/D,MAAM,WAAW,uBAAuB;IACtC,2DAA2D;IAC3D,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB;uBAAmF,uBAAuB;CAEzI,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,oBAAqB,MAAM,QAAQ,IAAI,gBAAgB,MAAM,sBAAsB,OAAO,KAAG,OAAO,MAAM,EAAE,eAAe,CAgB9J,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,YAAa,wBAAwB,KAAG,IAkIrE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setupDependencies = exports.getPackageInstallConfig = void 0;
3
+ exports.setupDependencies = exports.getPackageInstallConfig = exports.hasSetupInformation = void 0;
4
4
  const schematics_1 = require("@angular-devkit/schematics");
5
5
  const dependencies_1 = require("@schematics/angular/utility/dependencies");
6
6
  const path = require("node:path");
@@ -8,6 +8,14 @@ const semver = require("semver");
8
8
  const utility_1 = require("../../utility");
9
9
  const tasks_1 = require("@angular-devkit/schematics/tasks");
10
10
  const node_fs_1 = require("node:fs");
11
+ /**
12
+ * Determine if the context has information regarding the setup dependencies process
13
+ * @param context Schematic context
14
+ */
15
+ const hasSetupInformation = (context) => {
16
+ return !!context.setupDependencies;
17
+ };
18
+ exports.hasSetupInformation = hasSetupInformation;
11
19
  /**
12
20
  * Retrieve the package install configuration
13
21
  * This is a workaround to ng-add to add the dependency to the sub-package
@@ -125,7 +133,7 @@ const setupDependencies = (options) => {
125
133
  return Object.fromEntries(Object.entries({ projectName: options.projectName, ...options.ngAddOptions, ...options.dependencies[packageName].ngAddOptions })
126
134
  .filter(([key]) => !schemaOptions || !!schemaOptions[key]));
127
135
  };
128
- const finalTaskId = [...ngAddToRun]
136
+ const finalTaskIds = [...ngAddToRun]
129
137
  .map((packageName) => {
130
138
  let schematic;
131
139
  try {
@@ -142,8 +150,14 @@ const setupDependencies = (options) => {
142
150
  context.logger.debug(`Schedule the schematic ng-add for ${packageName}`);
143
151
  return [...ids, context.addTask(new tasks_1.RunSchematicTask(packageName, 'ng-add', schematicOptions), ids)];
144
152
  }, [...(installId || []), ...(options.runAfterTasks || [])]);
153
+ if ((0, exports.hasSetupInformation)(context)) {
154
+ context.setupDependencies.taskIds.push(...finalTaskIds);
155
+ }
156
+ else {
157
+ context.setupDependencies = { taskIds: finalTaskIds };
158
+ }
145
159
  if (options.scheduleTaskCallback) {
146
- options.scheduleTaskCallback(finalTaskId);
160
+ options.scheduleTaskCallback(finalTaskIds);
147
161
  }
148
162
  };
149
163
  return (0, schematics_1.chain)([
@@ -1 +1 @@
1
- {"version":3,"file":"dependencies.js","sourceRoot":"","sources":["../../../../src/rule-factories/ng-add/dependencies.ts"],"names":[],"mappings":";;;AAAA,2DAAuF;AACvF,2EAA8E;AAC9E,kCAAkC;AAElC,iCAAiC;AACjC,2CAAgI;AAChI,4DAA4F;AAC5F,qCAAuC;AAoEvC;;;;;;;GAOG;AACI,MAAM,uBAAuB,GAAG,CAAC,eAAuB,EAAE,IAAU,EAAE,WAAoB,EAAE,iBAA2B,EAAmC,EAAE;IACjK,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,sBAAY,EAAC,eAAe,EAAE,EAAC,QAAQ,EAAE,OAAO,EAAC,CAAC,CAAgB,CAAC;IAClG,MAAM,gBAAgB,GAAG,WAAW,CAAC,CAAC,CAAC,IAAA,4BAAkB,EAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACnG,OAAO;QACL,CAAC,WAAW,CAAC,IAAK,CAAC,EAAE;YACnB,UAAU,EAAE,CAAC;oBACX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YACf,kBAAkB;SACnB,CAAC,CAAC;IACL,CAAC,CAAC;AAEJ,CAAC,CAAC;AAlIW,QAAA,iBAAiB,qBAkI5B"}
@@ -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,UAkG7C"}
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"}
@@ -31,9 +31,10 @@ function updateImportsInFile(logger, tree, sourceFile, importsRegexp, renamePack
31
31
  // We store the import line to be able to remove it afterwards
32
32
  importNodes.push(imp);
33
33
  // We retrieve all the symbols listed in the import statement
34
- const namedImport = imp.importClause && imp.importClause.getChildAt(0);
34
+ const namedImport = imp.importClause?.namedBindings;
35
+ const isTypeOnlyImport = !!imp.importClause && ts.isTypeOnlyImportDeclaration(imp.importClause);
35
36
  const imports = namedImport && ts.isNamedImports(namedImport) ?
36
- namedImport.elements.map((element) => ({ symbol: element.getText(), location: importFrom })) :
37
+ namedImport.elements.map((element) => ({ symbol: element.getText(), isTypeOnlyImport, location: importFrom })) :
37
38
  [];
38
39
  // And associate them to the Otter package
39
40
  oldImportedSymbolsPerPackage[otterPackage].push(...imports);
@@ -62,7 +63,7 @@ function updateImportsInFile(logger, tree, sourceFile, importsRegexp, renamePack
62
63
  acc[importFrom] = [];
63
64
  }
64
65
  const newNameForExportedValue = mapImports[oldPackageName]?.[importSymbol.symbol]?.newValue;
65
- acc[importFrom].push(newNameForExportedValue || importSymbol.symbol);
66
+ acc[importFrom].push(`${importSymbol.isTypeOnlyImport ? 'type ' : ''}${newNameForExportedValue || importSymbol.symbol}`);
66
67
  });
67
68
  return acc;
68
69
  }, {});
@@ -1 +1 @@
1
- {"version":3,"file":"update-imports.js","sourceRoot":"","sources":["../../../src/utility/update-imports.ts"],"names":[],"mappings":";;;AAAA,iCAAiC;AAEjC,qEAAkE;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IAED,OAAO,iBAAiB,CAAC,MAAM,CAAC;AAClC,CAAC;AA3GD,kDA2GC"}
@@ -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;AASvD;;;;GAIG;AACH,eAAO,MAAM,qCAAqC,EAAE,gBAgEnD,CAAC"}
1
+ {"version":3,"file":"wrapper.d.ts","sourceRoot":"","sources":["../../../src/utility/wrapper.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAUvD;;;;GAIG;AACH,eAAO,MAAM,qCAAqC,EAAE,gBAkEnD,CAAC"}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createSchematicWithMetricsIfInstalled = void 0;
4
- const prompt_1 = require("@angular/cli/src/utilities/prompt");
5
4
  const dependencies_1 = require("@schematics/angular/utility/dependencies");
5
+ const inquirer_1 = require("inquirer");
6
6
  const node_fs_1 = require("node:fs");
7
7
  const path = require("node:path");
8
8
  const rxjs_1 = require("rxjs");
@@ -32,11 +32,16 @@ const createSchematicWithMetricsIfInstalled = (schematicFn) => (opts) => async (
32
32
  && context.interactive
33
33
  && packageJson.config?.o3rMetrics !== false) {
34
34
  context.logger.debug('`@o3r/telemetry` is not available.\nAsking to add the dependency\n' + e.toString());
35
- const isReplyPositive = await (0, prompt_1.askConfirmation)(`
35
+ const question = {
36
+ type: 'confirm',
37
+ name: 'isReplyPositive',
38
+ message: `
36
39
  Would you like to share anonymous data about the usage of Otter builders and schematics with the Otter Team at Amadeus ?
37
40
  It will help us to improve our tools.
38
41
  For more details and instructions on how to change these settings, see https://github.com/AmadeusITGroup/otter/blob/main/docs/telemetry/README.md.
39
- `, false);
42
+ `
43
+ };
44
+ const { isReplyPositive } = await (0, inquirer_1.prompt)([question]);
40
45
  if (isReplyPositive) {
41
46
  const version = JSON.parse((0, node_fs_1.readFileSync)(path.join(__dirname, '..', '..', 'package.json'), 'utf-8')).version;
42
47
  context.addTask(new index_1.NodePackageNgAddTask('@o3r/telemetry', {
@@ -1 +1 @@
1
- {"version":3,"file":"wrapper.js","sourceRoot":"","sources":["../../../src/utility/wrapper.ts"],"names":[],"mappings":";;;AACA,8DAAoE;AAEpE,2EAA8E;AAC9E,qCAAuC;AACvC,kCAAkC;AAClC,+BAAqC;AACrC,0CAAsD;AAEtD,MAAM,oBAAoB,GAAqB,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC;AAE1D;;;;GAIG;AACI,MAAM,qCAAqC,GAAqB,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IACxH,IAAI,OAAO,GAAqB,oBAAoB,CAAC;IACrD,MAAM,eAAe,GAAG,cAAc,CAAC;IACvC,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAe,CAAC,CAAC,CAAC,EAAE,CAAC;IACrG,IAAI,CAAC;QACH,MAAM,EAAE,0BAA0B,EAAE,GAAG,2CAAa,gBAAgB,EAAC,CAAC;QACtE,IAAK,WAAW,CAAC,MAAqB,EAAE,UAAU,EAAE,CAAC;YACnD,OAAO,GAAG,0BAA0B,CAAC;QACvC,CAAC;IACH,CAAC;IAAC,OAAO,CAAM,EAAE,CAAC;QAChB,mDAAmD;QACnD,IAAK,WAAW,CAAC,MAAqB,EAAE,UAAU,EAAE,CAAC;YACnD,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,iKAAiK,CAAC,CAAC;QACzL,CAAC;aAAM,IACL,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,KAAK,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,cAAc,KA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