@o3r/workspace 10.2.0-prerelease.45 → 10.2.0-prerelease.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/migration.json CHANGED
@@ -1,6 +1,10 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/angular/angular-cli/master/packages/angular_devkit/schematics/collection-schema.json",
3
3
  "schematics": {
4
-
4
+ "migration-v10_0": {
5
+ "version": "10.1.0-alpha.0",
6
+ "description": "Updates of @o3r/workspace to v10.1.*",
7
+ "factory": "./schematics/ng-update/index#updateV10_1"
8
+ }
5
9
  }
6
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/workspace",
3
- "version": "10.2.0-prerelease.45",
3
+ "version": "10.2.0-prerelease.47",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,7 +38,7 @@
38
38
  }
39
39
  },
40
40
  "dependencies": {
41
- "@o3r/schematics": "^10.2.0-prerelease.45",
41
+ "@o3r/schematics": "^10.2.0-prerelease.47",
42
42
  "commander": "^12.0.0",
43
43
  "globby": "^11.1.0",
44
44
  "semver": "^7.5.2",
@@ -69,11 +69,11 @@
69
69
  "@nx/eslint-plugin": "~18.1.0",
70
70
  "@nx/jest": "~18.1.0",
71
71
  "@nx/js": "~18.1.0",
72
- "@o3r/build-helpers": "^10.2.0-prerelease.45",
73
- "@o3r/core": "^10.2.0-prerelease.45",
74
- "@o3r/eslint-plugin": "^10.2.0-prerelease.45",
75
- "@o3r/schematics": "^10.2.0-prerelease.45",
76
- "@o3r/test-helpers": "^10.2.0-prerelease.45",
72
+ "@o3r/build-helpers": "^10.2.0-prerelease.47",
73
+ "@o3r/core": "^10.2.0-prerelease.47",
74
+ "@o3r/eslint-plugin": "^10.2.0-prerelease.47",
75
+ "@o3r/schematics": "^10.2.0-prerelease.47",
76
+ "@o3r/test-helpers": "^10.2.0-prerelease.47",
77
77
  "@schematics/angular": "~17.3.0",
78
78
  "@stylistic/eslint-plugin-ts": "^1.5.4",
79
79
  "@types/jest": "~29.5.2",
@@ -2,15 +2,13 @@
2
2
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
3
  "extends": [
4
4
  "config:base",
5
- "group:allNonMajor",
6
- "group:monorepos",
7
- "group:recommended",
8
- "group:test"
5
+ "github>AmadeusITGroup/otter//tools/renovate/base",
6
+ "github>AmadeusITGroup/otter//tools/renovate/otter-project"
9
7
  ],
10
8
  "prConcurrentLimit": 0,
11
9
  "prHourlyLimit": 0,
12
10
  "baseBranches": [
13
- "master"
11
+ "main"
14
12
  ],
15
13
  "platform": "azure",
16
14
  "enabledManagers": [
@@ -28,34 +26,9 @@
28
26
  "packageRules": [
29
27
  {
30
28
  "matchPackageNames": [
31
- "@o3r/core"
29
+ "@o3r/*"
32
30
  ],
33
- "postUpgradeTasks": {
34
- "commands": [
35
- "npm install",
36
- "npm run ng update {{{depName}}} --from={{{currentVersion}}} --to={{{newVersion}}} --migrate-only --allow-dirty --force"
37
- ],
38
- "fileFilters": [
39
- "**"
40
- ],
41
- "executionMode": "branch"
42
- }
43
- },
44
- {
45
- "matchPackagePrefixes": [
46
- "@otter",
47
- "@o3r",
48
- "@ama-sdk",
49
- "@ama-terasu"
50
- ],
51
- "groupName": "Otter dependencies",
52
- "groupSlug": "otter-dependencies"
53
- },
54
- {
55
- "matchPackagePatterns": [
56
- "*"
57
- ],
58
- "rangeStrategy": "replace"
31
+ "automergeType": "patch"
59
32
  }
60
33
  ]
61
34
  }
@@ -1,2 +1,6 @@
1
- export type {};
1
+ import { type Rule } from '@angular-devkit/schematics';
2
+ /**
3
+ * Update of Otter Workspace V10.1
4
+ */
5
+ export declare const updateV10_1: (options: unknown) => Rule;
2
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-update/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-update/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAS,KAAK,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAc9D;;GAEG;AACH,eAAO,MAAM,WAAW,4BAAuD,CAAC"}
@@ -1,3 +1,22 @@
1
1
  "use strict";
2
+ /* eslint-disable @typescript-eslint/naming-convention */
3
+ /* eslint-disable camelcase */
2
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.updateV10_1 = void 0;
6
+ const schematics_1 = require("@angular-devkit/schematics");
7
+ const schematics_2 = require("@o3r/schematics");
8
+ const add_presets_renovate_1 = require("./v10.1/add-presets-renovate");
9
+ /**
10
+ * Update of Otter Workspace V10.1
11
+ */
12
+ function updateV10_1Fn() {
13
+ const updateRules = [
14
+ (0, add_presets_renovate_1.addPresetsRenovate)()
15
+ ];
16
+ return (0, schematics_1.chain)(updateRules);
17
+ }
18
+ /**
19
+ * Update of Otter Workspace V10.1
20
+ */
21
+ exports.updateV10_1 = (0, schematics_2.createSchematicWithMetricsIfInstalled)(updateV10_1Fn);
3
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-update/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-update/index.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,8BAA8B;;;AAE9B,2DAA8D;AAC9D,gDAAwE;AACxE,uEAAkE;AAElE;;GAEG;AACH,SAAS,aAAa;IACpB,MAAM,WAAW,GAAW;QAC1B,IAAA,yCAAkB,GAAE;KACrB,CAAC;IACF,OAAO,IAAA,kBAAK,EAAC,WAAW,CAAC,CAAC;AAC5B,CAAC;AAED;;GAEG;AACU,QAAA,WAAW,GAAG,IAAA,kDAAqC,EAAC,aAAa,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Rule } from '@angular-devkit/schematics';
2
+ export declare const addPresetsRenovate: () => Rule;
3
+ //# sourceMappingURL=add-presets-renovate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-presets-renovate.d.ts","sourceRoot":"","sources":["../../../../schematics/ng-update/v10.1/add-presets-renovate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAOvD,eAAO,MAAM,kBAAkB,QAAO,IAarC,CAAC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.addPresetsRenovate = void 0;
4
+ const renovatePresets = [
5
+ 'github>AmadeusITGroup/otter//tools/renovate/base',
6
+ 'github>AmadeusITGroup/otter//tools/renovate/otter-project'
7
+ ];
8
+ const addPresetsRenovate = () => {
9
+ return (tree, context) => {
10
+ if (tree.exists('.renovaterc.json')) {
11
+ const renovateConfig = tree.readJson('.renovaterc.json');
12
+ renovateConfig.extends ||= [];
13
+ renovatePresets
14
+ .filter((preset) => !renovateConfig.extends.includes(preset))
15
+ .forEach((preset) => renovateConfig.extends.push(preset));
16
+ tree.overwrite('renovate.json', JSON.stringify(renovateConfig, null, 2));
17
+ }
18
+ else {
19
+ context.logger.info('renovate.json not found, skipping preset addition');
20
+ }
21
+ };
22
+ };
23
+ exports.addPresetsRenovate = addPresetsRenovate;
24
+ //# sourceMappingURL=add-presets-renovate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-presets-renovate.js","sourceRoot":"","sources":["../../../../schematics/ng-update/v10.1/add-presets-renovate.ts"],"names":[],"mappings":";;;AAEA,MAAM,eAAe,GAAG;IACtB,kDAAkD;IAClD,2DAA2D;CAC5D,CAAC;AAEK,MAAM,kBAAkB,GAAG,GAAS,EAAE;IAC3C,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;QACvB,IAAI,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,EAAE,CAAC;YACpC,MAAM,cAAc,GAAG,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAQ,CAAC;YAChE,cAAc,CAAC,OAAO,KAAK,EAAE,CAAC;YAC9B,eAAe;iBACZ,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;iBAC5D,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;YAC5D,IAAI,CAAC,SAAS,CAAC,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,cAAc,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QAC3E,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,mDAAmD,CAAC,CAAC;QAC3E,CAAC;IACH,CAAC,CAAC;AACJ,CAAC,CAAC;AAbW,QAAA,kBAAkB,sBAa7B"}