@ama-sdk/client-beacon 13.0.0-prerelease.2 → 13.0.0-prerelease.4
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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ama-sdk/client-beacon",
|
3
|
-
"version": "13.0.0-prerelease.
|
3
|
+
"version": "13.0.0-prerelease.4",
|
4
4
|
"publishConfig": {
|
5
5
|
"access": "public"
|
6
6
|
},
|
@@ -35,17 +35,17 @@
|
|
35
35
|
"build:builders": "tsc -b tsconfig.builders.json --pretty && yarn generate-cjs-manifest"
|
36
36
|
},
|
37
37
|
"dependencies": {
|
38
|
-
"@o3r/schematics": "^13.0.0-prerelease.
|
38
|
+
"@o3r/schematics": "^13.0.0-prerelease.4",
|
39
39
|
"@swc/helpers": "~0.5.0",
|
40
40
|
"tslib": "^2.6.2",
|
41
41
|
"uuid": "^11.0.5"
|
42
42
|
},
|
43
43
|
"peerDependencies": {
|
44
|
-
"@ama-sdk/core": "^13.0.0-prerelease.
|
44
|
+
"@ama-sdk/core": "^13.0.0-prerelease.4",
|
45
45
|
"@angular-devkit/schematics": "^20.0.0",
|
46
46
|
"@angular/cli": "^20.0.0",
|
47
47
|
"@angular/common": "^20.0.0",
|
48
|
-
"@o3r/schematics": "^13.0.0-prerelease.
|
48
|
+
"@o3r/schematics": "^13.0.0-prerelease.4",
|
49
49
|
"@schematics/angular": "^20.0.0",
|
50
50
|
"type-fest": "^4.30.1",
|
51
51
|
"typescript": "^5.8.0"
|
@@ -74,7 +74,7 @@
|
|
74
74
|
}
|
75
75
|
},
|
76
76
|
"devDependencies": {
|
77
|
-
"@ama-sdk/core": "^13.0.0-prerelease.
|
77
|
+
"@ama-sdk/core": "^13.0.0-prerelease.4",
|
78
78
|
"@angular-devkit/core": "~20.0.0",
|
79
79
|
"@angular-devkit/schematics": "~20.0.0",
|
80
80
|
"@angular/common": "~20.0.0",
|
@@ -82,9 +82,9 @@
|
|
82
82
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
|
83
83
|
"@nx/eslint-plugin": "~21.3.11",
|
84
84
|
"@nx/jest": "~21.3.11",
|
85
|
-
"@o3r/build-helpers": "^13.0.0-prerelease.
|
86
|
-
"@o3r/eslint-plugin": "^13.0.0-prerelease.
|
87
|
-
"@o3r/test-helpers": "^13.0.0-prerelease.
|
85
|
+
"@o3r/build-helpers": "^13.0.0-prerelease.4",
|
86
|
+
"@o3r/eslint-plugin": "^13.0.0-prerelease.4",
|
87
|
+
"@o3r/test-helpers": "^13.0.0-prerelease.4",
|
88
88
|
"@schematics/angular": "~20.0.0",
|
89
89
|
"@stylistic/eslint-plugin": "~5.2.0",
|
90
90
|
"@swc/cli": "~0.7.7",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,IAAI,EACL,MAAM,4BAA4B,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,IAAI,EACL,MAAM,4BAA4B,CAAC;AAUpC,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAuBlB;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAI,SAAS,qBAAqB,SAA2C,CAAC"}
|
@@ -7,48 +7,17 @@ const schematics_2 = require("@o3r/schematics");
|
|
7
7
|
const import_map_1 = require("./migration/import-map");
|
8
8
|
const devDependenciesToInstall = [];
|
9
9
|
const dependenciesToInstall = [];
|
10
|
+
const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
|
10
11
|
/**
|
11
12
|
* Add SDk Beacon Client to an Otter Project
|
12
13
|
* @param options
|
13
14
|
*/
|
14
15
|
function ngAddFn(options) {
|
15
|
-
return (
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
const dependencies = depsInfo.o3rPeerDeps.reduce((acc, dep) => {
|
21
|
-
acc[dep] = {
|
22
|
-
inManifest: [{
|
23
|
-
range: `${options.exactO3rVersion ? '' : '~'}${depsInfo.packageVersion}`,
|
24
|
-
types: (0, schematics_2.getProjectNewDependenciesTypes)(workspaceProject)
|
25
|
-
}],
|
26
|
-
ngAddOptions: { exactO3rVersion: options.exactO3rVersion }
|
27
|
-
};
|
28
|
-
return acc;
|
29
|
-
}, (0, schematics_2.getPackageInstallConfig)(packageJsonPath, tree, options.projectName, false, !!options.exactO3rVersion));
|
30
|
-
const externalDependenciesInfo = (0, schematics_2.getExternalDependenciesInfo)({
|
31
|
-
devDependenciesToInstall,
|
32
|
-
dependenciesToInstall,
|
33
|
-
o3rPackageJsonPath: packageJsonPath,
|
34
|
-
projectPackageJson,
|
35
|
-
projectType: workspaceProject?.projectType
|
36
|
-
}, context.logger);
|
37
|
-
return (0, schematics_1.chain)([
|
38
|
-
// optional custom action dedicated to this module
|
39
|
-
options.skipLinter ? (0, schematics_1.noop)() : (0, schematics_2.applyEsLintFix)(),
|
40
|
-
// add the missing Otter modules in the current project
|
41
|
-
(0, schematics_2.setupDependencies)({
|
42
|
-
projectName: options.projectName,
|
43
|
-
dependencies: {
|
44
|
-
...dependencies,
|
45
|
-
...externalDependenciesInfo
|
46
|
-
},
|
47
|
-
ngAddToRun: depsInfo.o3rPeerDeps
|
48
|
-
}),
|
49
|
-
(0, schematics_2.updateImports)(import_map_1.mapMigrationFromCoreImports)
|
50
|
-
]);
|
51
|
-
};
|
16
|
+
return (0, schematics_1.chain)([
|
17
|
+
options.skipLinter ? (0, schematics_1.noop)() : (0, schematics_2.applyEsLintFix)(),
|
18
|
+
(0, schematics_2.ngAddDependenciesRule)(options, packageJsonPath, { dependenciesToInstall, devDependenciesToInstall }),
|
19
|
+
(0, schematics_2.updateImports)(import_map_1.mapMigrationFromCoreImports)
|
20
|
+
]);
|
52
21
|
}
|
53
22
|
/**
|
54
23
|
* Add SDk Beacon Client to an Otter Project
|
@@ -1,6 +1,4 @@
|
|
1
|
-
import type { SchematicOptionObject } from '@o3r/schematics';
|
2
|
-
export interface NgAddSchematicsSchema extends SchematicOptionObject {
|
3
|
-
/** Project name */
|
4
|
-
projectName?: string | undefined;
|
1
|
+
import type { NgAddOptions, SchematicOptionObject } from '@o3r/schematics';
|
2
|
+
export interface NgAddSchematicsSchema extends NgAddOptions, SchematicOptionObject {
|
5
3
|
}
|
6
4
|
//# sourceMappingURL=schema.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,qBAAsB,SAAQ,
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,qBAAsB,SAAQ,YAAY,EAAE,qBAAqB;CAAG"}
|