@ama-sdk/core 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/core",
|
|
3
|
-
"version": "13.0.0-prerelease.
|
|
3
|
+
"version": "13.0.0-prerelease.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"build:builders": "tsc -b tsconfig.builders.json --pretty && yarn generate-cjs-manifest"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@o3r/schematics": "^13.0.0-prerelease.
|
|
46
|
+
"@o3r/schematics": "^13.0.0-prerelease.4",
|
|
47
47
|
"@swc/helpers": "~0.5.0",
|
|
48
48
|
"ts-node": "~10.9.2",
|
|
49
49
|
"tslib": "^2.6.2",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@angular-devkit/schematics": "^20.0.0",
|
|
54
54
|
"@angular/cli": "^20.0.0",
|
|
55
|
-
"@o3r/schematics": "^13.0.0-prerelease.
|
|
55
|
+
"@o3r/schematics": "^13.0.0-prerelease.4",
|
|
56
56
|
"@schematics/angular": "^20.0.0",
|
|
57
57
|
"typescript": "^5.8.0"
|
|
58
58
|
},
|
|
@@ -81,9 +81,9 @@
|
|
|
81
81
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
|
|
82
82
|
"@nx/eslint-plugin": "~21.3.11",
|
|
83
83
|
"@nx/jest": "~21.3.11",
|
|
84
|
-
"@o3r/build-helpers": "^13.0.0-prerelease.
|
|
85
|
-
"@o3r/eslint-plugin": "^13.0.0-prerelease.
|
|
86
|
-
"@o3r/test-helpers": "^13.0.0-prerelease.
|
|
84
|
+
"@o3r/build-helpers": "^13.0.0-prerelease.4",
|
|
85
|
+
"@o3r/eslint-plugin": "^13.0.0-prerelease.4",
|
|
86
|
+
"@o3r/test-helpers": "^13.0.0-prerelease.4",
|
|
87
87
|
"@schematics/angular": "~20.0.0",
|
|
88
88
|
"@stylistic/eslint-plugin": "~5.2.0",
|
|
89
89
|
"@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,EAEL,KAAK,IAAI,EACV,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,IAAI,EACV,MAAM,4BAA4B,CAAC;AAQpC,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,UAAU,CAAC;AA4ClB;;;;GAIG;AACH,eAAO,MAAM,KAAK,GAAI,SAAS,qBAAqB,SAA2C,CAAC"}
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ngAdd = void 0;
|
|
4
4
|
const path = require("node:path");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
|
-
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
7
6
|
const schematics_2 = require("@o3r/schematics");
|
|
8
7
|
const ts = require("typescript");
|
|
9
8
|
const removeImports = (0, schematics_2.removePackages)(['@dapi/sdk-core']);
|
|
@@ -24,28 +23,17 @@ const updateImports = (tree) => {
|
|
|
24
23
|
return tree;
|
|
25
24
|
});
|
|
26
25
|
};
|
|
26
|
+
const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
|
|
27
27
|
/**
|
|
28
28
|
* Rule to import all the necessary dependency to run an @ama-sdk based application
|
|
29
29
|
* Helps to migrate from previous versions with an import replacement
|
|
30
30
|
* @param options schema options
|
|
31
31
|
*/
|
|
32
32
|
function ngAddFn(options) {
|
|
33
|
-
const addMandatoryPeerDeps = (tree, context) => {
|
|
34
|
-
const workingDirectory = (options?.projectName && (0, schematics_2.getWorkspaceConfig)(tree)?.projects[options.projectName]?.root) || '.';
|
|
35
|
-
const peerDepToInstall = (0, schematics_2.getPeerDepWithPattern)(path.resolve(__dirname, '..', '..', 'package.json'));
|
|
36
|
-
context.addTask(new tasks_1.NodePackageInstallTask({
|
|
37
|
-
workingDirectory,
|
|
38
|
-
packageName: Object.entries(peerDepToInstall.matchingPackagesVersions)
|
|
39
|
-
.map(([dependency, version]) => `${dependency}@${version || 'latest'}`)
|
|
40
|
-
.join(' '),
|
|
41
|
-
hideOutput: false,
|
|
42
|
-
quiet: false
|
|
43
|
-
}));
|
|
44
|
-
};
|
|
45
33
|
return (0, schematics_1.chain)([
|
|
46
34
|
removeImports,
|
|
47
35
|
updateImports,
|
|
48
|
-
|
|
36
|
+
(0, schematics_2.ngAddDependenciesRule)(options, packageJsonPath, { dependenciesToInstall: [], devDependenciesToInstall: [] })
|
|
49
37
|
]);
|
|
50
38
|
}
|
|
51
39
|
/**
|
|
@@ -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"}
|