@sdk-it/cli 0.32.0 → 0.33.1
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/README.md +3 -3
- package/dist/index.js +493 -46
- package/dist/index.js.map +4 -4
- package/dist/lib/cli.d.ts.map +1 -1
- package/dist/lib/commands/find-framework.d.ts +10 -0
- package/dist/lib/commands/find-framework.d.ts.map +1 -0
- package/dist/lib/commands/find-spec-file.d.ts +2 -0
- package/dist/lib/commands/find-spec-file.d.ts.map +1 -0
- package/dist/lib/commands/guess-default-package-name.d.ts +2 -0
- package/dist/lib/commands/guess-default-package-name.d.ts.map +1 -0
- package/dist/lib/commands/init.d.ts +4 -0
- package/dist/lib/commands/init.d.ts.map +1 -0
- package/dist/lib/find-framework.d.ts +10 -0
- package/dist/lib/find-framework.d.ts.map +1 -0
- package/dist/lib/generators/dart.d.ts +4 -14
- package/dist/lib/generators/dart.d.ts.map +1 -1
- package/dist/lib/generators/python.d.ts +2 -14
- package/dist/lib/generators/python.d.ts.map +1 -1
- package/dist/lib/generators/typescript.d.ts +5 -22
- package/dist/lib/generators/typescript.d.ts.map +1 -1
- package/dist/lib/types.d.ts +58 -0
- package/dist/lib/types.d.ts.map +1 -0
- package/package.json +8 -7
package/dist/lib/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/lib/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAW,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/lib/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAW,MAAM,WAAW,CAAC;AAoF7C,QAAA,MAAM,GAAG,SAUa,CAAC;AAEvB,eAAe,GAAG,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const monorepoIndicators: {
|
|
2
|
+
readonly lerna: () => Promise<boolean>;
|
|
3
|
+
readonly nx: () => Promise<boolean>;
|
|
4
|
+
readonly pnpm: () => Promise<boolean>;
|
|
5
|
+
readonly rush: () => Promise<boolean>;
|
|
6
|
+
};
|
|
7
|
+
type Monorepo = keyof typeof monorepoIndicators;
|
|
8
|
+
export declare function detectMonorepo(): Promise<Monorepo | undefined>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=find-framework.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find-framework.d.ts","sourceRoot":"","sources":["../../../src/lib/commands/find-framework.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,kBAAkB;;;;;CAKd,CAAC;AAEX,KAAK,QAAQ,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAEhD,wBAAsB,cAAc,IAAI,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CAOpE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find-spec-file.d.ts","sourceRoot":"","sources":["../../../src/lib/commands/find-spec-file.ts"],"names":[],"mappings":"AAIA,wBAAsB,YAAY,gCAyBjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guess-default-package-name.d.ts","sourceRoot":"","sources":["../../../src/lib/commands/guess-default-package-name.ts"],"names":[],"mappings":"AAIA,wBAAsB,0BAA0B,CAC9C,4BAA4B,EAAE,OAAO,GACpC,OAAO,CAAC,MAAM,CAAC,CAoBjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/lib/commands/init.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAwMpC,QAAA,MAAM,IAAI,SA+ON,CAAC;AAEL,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const monorepoIndicators: {
|
|
2
|
+
readonly lerna: () => Promise<boolean>;
|
|
3
|
+
readonly nx: () => Promise<boolean>;
|
|
4
|
+
readonly pnpm: () => Promise<boolean>;
|
|
5
|
+
readonly rush: () => Promise<boolean>;
|
|
6
|
+
};
|
|
7
|
+
type Monorepo = keyof typeof monorepoIndicators;
|
|
8
|
+
export declare function detectMonorepo(): Promise<Monorepo | undefined>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=find-framework.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find-framework.d.ts","sourceRoot":"","sources":["../../src/lib/find-framework.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,kBAAkB;;;;;CAKd,CAAC;AAEX,KAAK,QAAQ,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAEhD,wBAAsB,cAAc,IAAI,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CAOpE"}
|
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import type { DartOptions } from '../types.ts';
|
|
3
|
+
type Options = Omit<DartOptions, 'pagination'> & {
|
|
4
4
|
output: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
useTsExtension: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Command to run the formatter.
|
|
10
|
-
* @example 'biome check $SDK_IT_OUTPUT --write'
|
|
11
|
-
* @example 'prettier $SDK_IT_OUTPUT --write'
|
|
12
|
-
*/
|
|
13
|
-
formatter?: string;
|
|
14
|
-
verbose: boolean;
|
|
15
|
-
pagination?: string;
|
|
16
|
-
}
|
|
5
|
+
pagination?: DartOptions['pagination'] | string;
|
|
6
|
+
};
|
|
17
7
|
declare const _default: Command;
|
|
18
8
|
export default _default;
|
|
19
9
|
export declare function runDart(options: Options): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dart.d.ts","sourceRoot":"","sources":["../../../src/lib/generators/dart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"dart.d.ts","sourceRoot":"","sources":["../../../src/lib/generators/dart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAapC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,KAAK,OAAO,GAAG,IAAI,CAAC,WAAW,EAAE,YAAY,CAAC,GAAG;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,MAAM,CAAC;CACjD,CAAC;;AACF,wBAaK;AAEL,wBAAsB,OAAO,CAAC,OAAO,EAAE,OAAO,iBA2B7C"}
|
|
@@ -1,18 +1,6 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
|
-
|
|
3
|
-
spec: string;
|
|
4
|
-
output: string;
|
|
5
|
-
mode?: 'full' | 'minimal';
|
|
6
|
-
name?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Command to run the formatter.
|
|
9
|
-
* @example 'black $SDK_IT_OUTPUT'
|
|
10
|
-
* @example 'ruff format $SDK_IT_OUTPUT'
|
|
11
|
-
*/
|
|
12
|
-
formatter?: string;
|
|
13
|
-
verbose: boolean;
|
|
14
|
-
}
|
|
2
|
+
import type { PythonOptions } from '../types.ts';
|
|
15
3
|
declare const _default: Command;
|
|
16
4
|
export default _default;
|
|
17
|
-
export declare function runPython(options:
|
|
5
|
+
export declare function runPython(options: PythonOptions): Promise<void>;
|
|
18
6
|
//# sourceMappingURL=python.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"python.d.ts","sourceRoot":"","sources":["../../../src/lib/generators/python.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"python.d.ts","sourceRoot":"","sources":["../../../src/lib/generators/python.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;;AAEjD,wBASK;AAEL,wBAAsB,SAAS,CAAC,OAAO,EAAE,aAAa,iBAsCrD"}
|
|
@@ -1,26 +1,9 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
output
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
useTsExtension: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Command to run the formatter.
|
|
10
|
-
* @example 'biome check $SDK_IT_OUTPUT --write'
|
|
11
|
-
* @example 'prettier $SDK_IT_OUTPUT --write'
|
|
12
|
-
*/
|
|
13
|
-
formatter?: string;
|
|
14
|
-
framework?: string;
|
|
15
|
-
install: boolean;
|
|
16
|
-
verbose: boolean;
|
|
17
|
-
defaultFormatter: boolean;
|
|
18
|
-
outputType?: 'default' | 'status';
|
|
19
|
-
errorAsValue?: false;
|
|
20
|
-
readme?: boolean;
|
|
21
|
-
publish?: string;
|
|
22
|
-
pagination?: string;
|
|
23
|
-
}
|
|
2
|
+
import type { TypeScriptOptions } from '../types.ts';
|
|
3
|
+
type Options = Omit<TypeScriptOptions, 'pagination'> & {
|
|
4
|
+
output: string;
|
|
5
|
+
pagination?: TypeScriptOptions['pagination'] | string;
|
|
6
|
+
};
|
|
24
7
|
declare const _default: Command;
|
|
25
8
|
export default _default;
|
|
26
9
|
export declare function runTypescript(options: Options): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../src/lib/generators/typescript.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../src/lib/generators/typescript.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAmB5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,KAAK,OAAO,GAAG,IAAI,CAAC,iBAAiB,EAAE,YAAY,CAAC,GAAG;IACrD,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,iBAAiB,CAAC,YAAY,CAAC,GAAG,MAAM,CAAC;CACvD,CAAC;;AAEF,wBAyDK;AAEL,wBAAsB,aAAa,CAAC,OAAO,EAAE,OAAO,iBAkBnD"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { PaginationConfig } from '@sdk-it/spec';
|
|
2
|
+
/**
|
|
3
|
+
* Base interface for all generator options
|
|
4
|
+
*/
|
|
5
|
+
export interface BaseGeneratorOptions {
|
|
6
|
+
spec: string;
|
|
7
|
+
output: string;
|
|
8
|
+
mode?: 'full' | 'minimal';
|
|
9
|
+
name: string;
|
|
10
|
+
verbose?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* TypeScript generator options
|
|
14
|
+
*/
|
|
15
|
+
export interface TypeScriptOptions extends BaseGeneratorOptions {
|
|
16
|
+
useTsExtension?: boolean;
|
|
17
|
+
formatter?: string;
|
|
18
|
+
framework?: string;
|
|
19
|
+
install?: boolean;
|
|
20
|
+
defaultFormatter?: boolean;
|
|
21
|
+
outputType?: 'default' | 'status';
|
|
22
|
+
errorAsValue?: false;
|
|
23
|
+
readme?: boolean;
|
|
24
|
+
publish?: string;
|
|
25
|
+
pagination?: PaginationConfig | false;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Python generator options
|
|
29
|
+
*/
|
|
30
|
+
export interface PythonOptions extends BaseGeneratorOptions {
|
|
31
|
+
formatter?: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Dart generator options
|
|
35
|
+
*/
|
|
36
|
+
export interface DartOptions extends BaseGeneratorOptions {
|
|
37
|
+
formatter?: string;
|
|
38
|
+
pagination?: PaginationConfig | false;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Complete SDK configuration file structure
|
|
42
|
+
*/
|
|
43
|
+
export interface SdkConfig {
|
|
44
|
+
readme?: {
|
|
45
|
+
spec: string;
|
|
46
|
+
output: string;
|
|
47
|
+
};
|
|
48
|
+
apiref?: {
|
|
49
|
+
spec: string;
|
|
50
|
+
output: string;
|
|
51
|
+
};
|
|
52
|
+
generators: {
|
|
53
|
+
typescript?: TypeScriptOptions;
|
|
54
|
+
python?: PythonOptions;
|
|
55
|
+
dart?: DartOptions;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,oBAAoB;IAC7D,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,UAAU,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAClC,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,gBAAgB,GAAG,KAAK,CAAC;CACvC;AAED;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,oBAAoB;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,oBAAoB;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,gBAAgB,GAAG,KAAK,CAAC;CACvC;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,MAAM,CAAC,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,MAAM,CAAC,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,UAAU,EAAE;QACV,UAAU,CAAC,EAAE,iBAAiB,CAAC;QAC/B,MAAM,CAAC,EAAE,aAAa,CAAC;QACvB,IAAI,CAAC,EAAE,WAAW,CAAC;KACpB,CAAC;CACH"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdk-it/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -20,16 +20,17 @@
|
|
|
20
20
|
"!**/*.test.*"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@sdk-it/typescript": "0.
|
|
24
|
-
"@sdk-it/dart": "0.
|
|
25
|
-
"@sdk-it/spec": "0.
|
|
23
|
+
"@sdk-it/typescript": "0.33.1",
|
|
24
|
+
"@sdk-it/dart": "0.33.1",
|
|
25
|
+
"@sdk-it/spec": "0.33.1",
|
|
26
26
|
"commander": "^13.1.0",
|
|
27
|
-
"@sdk-it/core": "0.
|
|
27
|
+
"@sdk-it/core": "0.33.1",
|
|
28
28
|
"libnpmpublish": "^11.0.0",
|
|
29
29
|
"openapi3-ts": "4.5.0",
|
|
30
30
|
"registry-auth-token": "^5.1.0",
|
|
31
|
-
"@sdk-it/python": "0.
|
|
32
|
-
"execa": "^9.6.0"
|
|
31
|
+
"@sdk-it/python": "0.33.1",
|
|
32
|
+
"execa": "^9.6.0",
|
|
33
|
+
"@sdk-it/readme": "0.33.1"
|
|
33
34
|
},
|
|
34
35
|
"publishConfig": {
|
|
35
36
|
"access": "public"
|