@o3r/amaterasu-api-spec 10.0.0-next.22 → 10.0.0-next.24
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": "@o3r/amaterasu-api-spec",
|
|
3
|
-
"version": "10.0.0-next.
|
|
3
|
+
"version": "10.0.0-next.24",
|
|
4
4
|
"description": "Commands relative to the Digital Apis",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./src/index.d.ts",
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"des"
|
|
18
18
|
],
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@ama-terasu/core": "^10.0.0-next.
|
|
20
|
+
"@ama-terasu/core": "^10.0.0-next.24",
|
|
21
21
|
"@angular-eslint/eslint-plugin": "~16.2.0",
|
|
22
|
-
"@nx/eslint-plugin": "~16.
|
|
23
|
-
"@nx/jest": "~16.
|
|
24
|
-
"@o3r/build-helpers": "^10.0.0-next.
|
|
25
|
-
"@o3r/dev-tools": "^10.0.0-next.
|
|
26
|
-
"@o3r/eslint-plugin": "^10.0.0-next.
|
|
22
|
+
"@nx/eslint-plugin": "~16.10.0",
|
|
23
|
+
"@nx/jest": "~16.10.0",
|
|
24
|
+
"@o3r/build-helpers": "^10.0.0-next.24",
|
|
25
|
+
"@o3r/dev-tools": "^10.0.0-next.24",
|
|
26
|
+
"@o3r/eslint-plugin": "^10.0.0-next.24",
|
|
27
27
|
"@types/jest": "~29.5.2",
|
|
28
28
|
"@types/js-yaml": "^4.0.5",
|
|
29
29
|
"@types/node": "^18.0.0",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"eslint-plugin-unicorn": "^47.0.0",
|
|
38
38
|
"jest": "~29.7.0",
|
|
39
39
|
"jest-junit": "~16.0.0",
|
|
40
|
-
"jsonc-eslint-parser": "~2.
|
|
41
|
-
"nx": "~16.
|
|
40
|
+
"jsonc-eslint-parser": "~2.4.0",
|
|
41
|
+
"nx": "~16.10.0",
|
|
42
42
|
"ts-jest": "~29.1.1",
|
|
43
43
|
"typescript": "~5.1.6"
|
|
44
44
|
},
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"tslib": "^2.5.3"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@ama-terasu/core": "^10.0.0-next.
|
|
50
|
+
"@ama-terasu/core": "^10.0.0-next.24"
|
|
51
51
|
},
|
|
52
52
|
"engines": {
|
|
53
53
|
"node": ">=18.0.0",
|
|
@@ -17,14 +17,14 @@ const createExtension = async (context, options) => {
|
|
|
17
17
|
const { version } = require(path.resolve(__dirname, '..', 'package.json'));
|
|
18
18
|
const npmrcFile = 'tmp.npmrc';
|
|
19
19
|
const deps = {
|
|
20
|
-
'@ama-sdk/
|
|
20
|
+
'@ama-sdk/schematics': version !== '0.0.0-placeholder' ? version : 'latest',
|
|
21
21
|
yo: 'latest'
|
|
22
22
|
};
|
|
23
23
|
await context.getSpinner('Generating extension module...').fromPromise((async () => {
|
|
24
24
|
await (0, core_1.promiseSpawn)('npm init -y', { cwd, stderrLogger: logger.debug, logger });
|
|
25
25
|
await (0, core_1.promiseSpawn)(`npm install --userconfig ${npmrcFile} --include dev ${Object.entries(deps).map(([n, v]) => `${n}@${v}`).join(' ')}`, { cwd, stderrLogger: logger.debug, logger });
|
|
26
26
|
// eslint-disable-next-line max-len
|
|
27
|
-
await (0, core_1.promiseSpawn)(`npx
|
|
27
|
+
await (0, core_1.promiseSpawn)(`npx -p @angular-devkit/schematics-cli schematics @ama-sdk/schematics:api-extension --name "${options.name}" --core-type ${options.type.replace(/^core-/, '')} --core-version "${options['spec-version']}"`, { cwd, stderrLogger: logger.debug, logger });
|
|
28
28
|
})(),
|
|
29
29
|
// TODO: simplify to the following line when migrated to schematics generation
|
|
30
30
|
// eslint-disable-next-line max-len
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-extension.command.js","sourceRoot":"","sources":["../../src/create-extension.command.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,2CAAyD;AACzD,qCAAyC;AACzC,kCAAkC;AAoBlC;;;;;GAKG;AACI,MAAM,eAAe,GAAG,KAAK,EAAE,OAAgB,EAAE,OAA+B,EAAE,EAAE;IACzF,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAC3B,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtD,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC;IAE3E,MAAM,SAAS,GAAG,WAAW,CAAC;IAC9B,MAAM,IAAI,GAAG;QACX,
|
|
1
|
+
{"version":3,"file":"create-extension.command.js","sourceRoot":"","sources":["../../src/create-extension.command.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,2CAAyD;AACzD,qCAAyC;AACzC,kCAAkC;AAoBlC;;;;;GAKG;AACI,MAAM,eAAe,GAAG,KAAK,EAAE,OAAgB,EAAE,OAA+B,EAAE,EAAE;IACzF,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAC3B,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtD,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC;IAE3E,MAAM,SAAS,GAAG,WAAW,CAAC;IAC9B,MAAM,IAAI,GAAG;QACX,qBAAqB,EAAE,OAAO,KAAK,mBAAmB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ;QAC3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