@ama-openapi/cli 0.0.0-placeholder

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 ADDED
@@ -0,0 +1,87 @@
1
+ {
2
+ "name": "@ama-openapi/cli",
3
+ "version": "0.0.0-placeholder",
4
+ "type": "module",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "description": "CLI to manage OpenAPI models",
9
+ "keywords": [
10
+ "otter",
11
+ "otter-module",
12
+ "openapi"
13
+ ],
14
+ "scripts": {
15
+ "nx": "nx",
16
+ "ng": "yarn nx",
17
+ "build:source": "tsc -b tsconfig.build.json && yarn cpy package.json dist/",
18
+ "build": "yarn nx build ama-openapi-cli",
19
+ "postbuild": "patch-package-json-main"
20
+ },
21
+ "bin": {
22
+ "ama-openapi": "./cli/main.mjs"
23
+ },
24
+ "dependencies": {
25
+ "@ama-openapi/core": "workspace:~",
26
+ "tslib": "^2.6.2",
27
+ "yargs": "~18.0.0"
28
+ },
29
+ "peerDependencies": {
30
+ "@o3r/telemetry": "workspace:~"
31
+ },
32
+ "peerDependenciesMeta": {
33
+ "@o3r/telemetry": {
34
+ "optional": true
35
+ }
36
+ },
37
+ "devDependencies": {
38
+ "@babel/core": "~7.28.0",
39
+ "@babel/preset-env": "~7.28.0",
40
+ "@babel/preset-typescript": "~7.28.0",
41
+ "@compodoc/compodoc": "^1.1.19",
42
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
43
+ "@nx/eslint": "~21.6.0",
44
+ "@nx/eslint-plugin": "~21.6.0",
45
+ "@nx/jest": "~21.6.0",
46
+ "@nx/js": "~21.6.0",
47
+ "@o3r/build-helpers": "workspace:~",
48
+ "@o3r/eslint-plugin": "workspace:~",
49
+ "@o3r/telemetry": "workspace:~",
50
+ "@o3r/test-helpers": "workspace:~",
51
+ "@stylistic/eslint-plugin": "~5.5.0",
52
+ "@types/jest": "~29.5.2",
53
+ "@types/js-yaml": "^4.0.5",
54
+ "@types/minimist": "^1.2.2",
55
+ "@types/node": "~22.18.0",
56
+ "@types/semver": "^7.3.13",
57
+ "@types/yargs": "~17.0.33",
58
+ "@typescript-eslint/parser": "~8.46.0",
59
+ "angular-eslint": "~20.4.0",
60
+ "babel-jest": "^29.7.0",
61
+ "cpy-cli": "^6.0.0",
62
+ "eslint": "~9.38.0",
63
+ "eslint-import-resolver-node": "~0.3.9",
64
+ "eslint-import-resolver-typescript": "~4.4.0",
65
+ "eslint-plugin-import": "~2.32.0",
66
+ "eslint-plugin-import-newlines": "~1.4.0",
67
+ "eslint-plugin-jest": "~29.0.0",
68
+ "eslint-plugin-jsdoc": "~54.7.0",
69
+ "eslint-plugin-prefer-arrow": "~1.2.3",
70
+ "eslint-plugin-unicorn": "~60.0.0",
71
+ "eslint-plugin-unused-imports": "~4.3.0",
72
+ "globals": "^16.0.0",
73
+ "jest": "~29.7.0",
74
+ "jest-junit": "~16.0.0",
75
+ "jest-resolve": "~29.7.0",
76
+ "jest-util": "~29.7.0",
77
+ "jsonc-eslint-parser": "~2.4.0",
78
+ "nx": "~21.6.0",
79
+ "pid-from-port": "^1.1.3",
80
+ "ts-jest": "~29.4.0",
81
+ "typescript": "~5.9.2",
82
+ "typescript-eslint": "~8.46.0"
83
+ },
84
+ "engines": {
85
+ "node": "^20.19.0 || ^22.17.0 || ^24.0.0"
86
+ }
87
+ }
package/src/main.d.mts ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=main.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.mts","sourceRoot":"","sources":["../../src/main.mts"],"names":[],"mappings":""}
package/src/main.mjs ADDED
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env node
2
+ /* eslint-disable no-console -- required for CLI feedback */
3
+ import yargs from 'yargs';
4
+ import { hideBin } from 'yargs/helpers';
5
+ void yargs(hideBin(process.argv))
6
+ .option('silent', {
7
+ type: 'boolean',
8
+ description: 'Suppress all logs',
9
+ default: false
10
+ })
11
+ .option('debug', {
12
+ type: 'boolean',
13
+ description: 'Display debug level logs',
14
+ default: false
15
+ })
16
+ .command('install', 'Install the OpenAPI specifications from manifest files', () => { }, async (args) => {
17
+ const { installDependencies } = await import('@ama-openapi/core');
18
+ try {
19
+ const logger = args.silent ? undefined : { ...console, debug: args.debug ? console.debug : undefined };
20
+ await installDependencies(process.cwd(), { logger });
21
+ }
22
+ catch (e) {
23
+ console.error(e);
24
+ process.exit(1);
25
+ }
26
+ })
27
+ .parse();
28
+ //# sourceMappingURL=main.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.mjs","sourceRoot":"","sources":["../../src/main.mts"],"names":[],"mappings":";AAEA,4DAA4D;AAK5D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,OAAO,EACR,MAAM,eAAe,CAAC;AAEvB,KAAK,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;KAC9B,MAAM,CAAC,QAAQ,EAAE;IAChB,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,mBAAmB;IAChC,OAAO,EAAE,KAAK;CACf,CAAC;KACD,MAAM,CAAC,OAAO,EAAE;IACf,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,0BAA0B;IACvC,OAAO,EAAE,KAAK;CACf,CAAC;KACD,OAAO,CAAC,SAAS,EAAE,wDAAwD,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;IACrG,MAAM,EAAE,mBAAmB,EAAE,GAAG,MAAM,MAAM,CAAC,mBAAmB,CAAC,CAAC;IAClE,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,EAAmB,CAAC;QACxH,MAAM,mBAAmB,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACvD,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACjB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC,CAAC;KACD,KAAK,EAAE,CAAC"}