@o3r/schematics 9.5.0-alpha.9 → 9.6.0-alpha.0

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": "9.5.0-alpha.9",
3
+ "version": "9.6.0-alpha.0",
4
4
  "description": "Schematics module of the Otter framework",
5
5
  "main": "./src/public_api.js",
6
6
  "typings": "./src/public_api.d.ts",
@@ -63,9 +63,9 @@
63
63
  "@nx/jest": "~16.10.0",
64
64
  "@nx/js": "~16.10.0",
65
65
  "@nx/linter": "~16.10.0",
66
- "@o3r/build-helpers": "^9.5.0-alpha.9",
67
- "@o3r/dev-tools": "^9.5.0-alpha.9",
68
- "@o3r/eslint-plugin": "^9.5.0-alpha.9",
66
+ "@o3r/build-helpers": "^9.6.0-alpha.0",
67
+ "@o3r/dev-tools": "^9.6.0-alpha.0",
68
+ "@o3r/eslint-plugin": "^9.6.0-alpha.0",
69
69
  "@schematics/angular": "~16.2.0",
70
70
  "@types/jest": "~29.5.2",
71
71
  "@types/node": "^18.0.0",
@@ -76,7 +76,7 @@
76
76
  "eslint": "^8.42.0",
77
77
  "eslint-import-resolver-node": "^0.3.4",
78
78
  "eslint-plugin-jest": "~27.6.0",
79
- "eslint-plugin-jsdoc": "~46.8.0",
79
+ "eslint-plugin-jsdoc": "~46.9.0",
80
80
  "eslint-plugin-prefer-arrow": "~1.2.3",
81
81
  "eslint-plugin-unicorn": "^47.0.0",
82
82
  "jest": "~29.7.0",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
3
  "$id": "ngAddSchematicsSchema",
4
4
  "title": "Add Otter schematics ",
5
5
  "description": "ngAdd Otter schematics ",
@@ -1 +1 @@
1
- {"version":3,"file":"modules.display.rule.d.ts","sourceRoot":"","sources":["../../../src/modules/modules.display.rule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAA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,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,EAAE,cAAc,UAAQ,EAAE,uBAAuB,UAAQ,QAOvJ"}
@@ -13,8 +13,7 @@ function displayModuleListRule(options) {
13
13
  const scopeWhitelist = options?.scopeWhitelist || modules_constants_1.OTTER_MODULE_SUPPORTED_SCOPES;
14
14
  const keyword = options?.keyword || modules_constants_1.OTTER_MODULE_KEYWORD;
15
15
  return async (tree, context) => {
16
- const { OTTER_KEYWORD_CMS } = await Promise.resolve().then(() => require('@o3r/schematics'));
17
- const tagMap = { [OTTER_KEYWORD_CMS]: 'CMS enabler' };
16
+ const tagMap = { [modules_constants_1.OTTER_KEYWORD_CMS]: 'CMS enabler' };
18
17
  // const { getAvailableModulesWithLatestPackage, formatModuleDescription, getWorkspaceConfig, getPackageManagerExecutor } = await import('@o3r/schematics');
19
18
  const workspaceConfig = (0, utility_1.getWorkspaceConfig)(tree);
20
19
  try {
@@ -25,7 +24,7 @@ function displayModuleListRule(options) {
25
24
  workspaceConfig
26
25
  });
27
26
  const message = modules
28
- .filter((mod) => !options?.onlyCmsModules || mod.keywords?.includes(OTTER_KEYWORD_CMS))
27
+ .filter((mod) => !options?.onlyCmsModules || mod.keywords?.includes(modules_constants_1.OTTER_KEYWORD_CMS))
29
28
  .map((mod) => (0, modules_helpers_1.formatModuleDescription)(mod, (0, utility_1.getPackageManagerExecutor)(workspaceConfig, options?.packageName), tagMap))
30
29
  .filter((msg) => !!msg)
31
30
  .join(node_os_1.EOL + node_os_1.EOL);
@@ -1 +1 @@
1
- {"version":3,"file":"modules.display.rule.js","sourceRoot":"","sources":["../../../src/modules/modules.display.rule.ts"],"names":[],"mappings":";;;AACA,qCAA8B;AAC9B,2DAA0F;AAC1F,wCAA2E;AAC3E,uDAAkG;AAsBlG;;;GAGG;AACH,SAAgB,qBAAqB,CAAC,OAA2C;IAE/E,MAAM,cAAc,GAAG,OAAO,EAAE,cAAc,IAAI,iDAA6B,CAAC;IAChF,MAAM,OAAO,GAAG,OA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