@kubb/plugin-ts 5.0.0-alpha.9 → 5.0.0-beta.100
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/LICENSE +17 -10
- package/README.md +38 -23
- package/dist/index.cjs +2376 -5
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +941 -40
- package/dist/index.js +2321 -2
- package/dist/index.js.map +1 -0
- package/dist/rolldown-runtime-CNktS9qV.js +17 -0
- package/package.json +38 -74
- package/dist/chunk--u3MIqq1.js +0 -8
- package/dist/components-CRu8IKY3.js +0 -729
- package/dist/components-CRu8IKY3.js.map +0 -1
- package/dist/components-DeNDKlzf.cjs +0 -982
- package/dist/components-DeNDKlzf.cjs.map +0 -1
- package/dist/components.cjs +0 -3
- package/dist/components.d.ts +0 -36
- package/dist/components.js +0 -2
- package/dist/generators.cjs +0 -4
- package/dist/generators.d.ts +0 -509
- package/dist/generators.js +0 -2
- package/dist/plugin-BZkBwnEA.js +0 -1269
- package/dist/plugin-BZkBwnEA.js.map +0 -1
- package/dist/plugin-Bunz1oGa.cjs +0 -1322
- package/dist/plugin-Bunz1oGa.cjs.map +0 -1
- package/dist/types-mSXmB8WU.d.ts +0 -298
- package/src/components/Type.tsx +0 -190
- package/src/components/index.ts +0 -1
- package/src/components/v2/Enum.tsx +0 -67
- package/src/components/v2/Type.tsx +0 -59
- package/src/constants.ts +0 -29
- package/src/factory.ts +0 -726
- package/src/generators/index.ts +0 -2
- package/src/generators/typeGenerator.tsx +0 -468
- package/src/generators/v2/typeGenerator.tsx +0 -167
- package/src/generators/v2/utils.ts +0 -140
- package/src/index.ts +0 -3
- package/src/parser.ts +0 -389
- package/src/plugin.ts +0 -232
- package/src/printer.ts +0 -368
- package/src/resolverTs.ts +0 -77
- package/src/types.ts +0 -296
package/package.json
CHANGED
|
@@ -1,103 +1,67 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-ts",
|
|
3
|
-
"version": "5.0.0-
|
|
4
|
-
"description": "TypeScript
|
|
3
|
+
"version": "5.0.0-beta.100",
|
|
4
|
+
"description": "Generate TypeScript types, interfaces, and enums with Kubb. The base plugin other Kubb plugins build on for type safety.",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"
|
|
7
|
-
"types",
|
|
8
|
-
"type-generation",
|
|
9
|
-
"interfaces",
|
|
10
|
-
"type-definitions",
|
|
11
|
-
"type-safe",
|
|
12
|
-
"openapi",
|
|
13
|
-
"swagger",
|
|
14
|
-
"oas",
|
|
15
|
-
"code-generator",
|
|
6
|
+
"code-generation",
|
|
16
7
|
"codegen",
|
|
17
|
-
"
|
|
18
|
-
"
|
|
8
|
+
"enums",
|
|
9
|
+
"interfaces",
|
|
10
|
+
"kubb",
|
|
11
|
+
"meta-framework",
|
|
12
|
+
"type-generation",
|
|
13
|
+
"types",
|
|
14
|
+
"typescript"
|
|
19
15
|
],
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"author": "stijnvanhulle",
|
|
20
18
|
"repository": {
|
|
21
19
|
"type": "git",
|
|
22
|
-
"url": "git+https://github.com/kubb-labs/
|
|
20
|
+
"url": "git+https://github.com/kubb-labs/plugins.git",
|
|
23
21
|
"directory": "packages/plugin-ts"
|
|
24
22
|
},
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"!/**/**.test.**",
|
|
26
|
+
"!/**/__tests__/**",
|
|
27
|
+
"!/**/__snapshots__/**"
|
|
28
|
+
],
|
|
28
29
|
"type": "module",
|
|
30
|
+
"sideEffects": false,
|
|
31
|
+
"main": "./dist/index.cjs",
|
|
32
|
+
"module": "./dist/index.js",
|
|
33
|
+
"types": "./dist/index.d.ts",
|
|
29
34
|
"exports": {
|
|
30
35
|
".": {
|
|
31
36
|
"import": "./dist/index.js",
|
|
32
37
|
"require": "./dist/index.cjs"
|
|
33
38
|
},
|
|
34
|
-
"./components": {
|
|
35
|
-
"import": "./dist/components.js",
|
|
36
|
-
"require": "./dist/components.cjs"
|
|
37
|
-
},
|
|
38
|
-
"./generators": {
|
|
39
|
-
"import": "./dist/generators.js",
|
|
40
|
-
"require": "./dist/generators.cjs"
|
|
41
|
-
},
|
|
42
39
|
"./package.json": "./package.json"
|
|
43
40
|
},
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
"components": [
|
|
48
|
-
"./dist/components.d.ts"
|
|
49
|
-
],
|
|
50
|
-
"generators": [
|
|
51
|
-
"./dist/generators.d.ts"
|
|
52
|
-
]
|
|
53
|
-
}
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public",
|
|
43
|
+
"registry": "https://registry.npmjs.org/"
|
|
54
44
|
},
|
|
55
|
-
"files": [
|
|
56
|
-
"src",
|
|
57
|
-
"dist",
|
|
58
|
-
"!/**/**.test.**",
|
|
59
|
-
"!/**/__tests__/**",
|
|
60
|
-
"!/**/__snapshots__/**"
|
|
61
|
-
],
|
|
62
|
-
"size-limit": [
|
|
63
|
-
{
|
|
64
|
-
"path": "./dist/*.js",
|
|
65
|
-
"limit": "510 KiB",
|
|
66
|
-
"gzip": true
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
45
|
"dependencies": {
|
|
70
|
-
"@kubb/
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"
|
|
75
|
-
"@
|
|
76
|
-
"@
|
|
77
|
-
"@kubb/plugin-oas": "5.0.0-alpha.9"
|
|
46
|
+
"@kubb/parser-ts": "5.0.0-beta.102",
|
|
47
|
+
"typescript": "^6.0.3"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"kubb": "5.0.0-beta.102",
|
|
51
|
+
"@internals/shared": "0.0.0",
|
|
52
|
+
"@internals/utils": "0.0.0"
|
|
78
53
|
},
|
|
79
54
|
"peerDependencies": {
|
|
80
|
-
"
|
|
55
|
+
"kubb": "5.0.0-beta.102"
|
|
81
56
|
},
|
|
82
57
|
"engines": {
|
|
83
58
|
"node": ">=22"
|
|
84
59
|
},
|
|
85
|
-
"publishConfig": {
|
|
86
|
-
"access": "public",
|
|
87
|
-
"registry": "https://registry.npmjs.org/"
|
|
88
|
-
},
|
|
89
|
-
"main": "./dist/index.cjs",
|
|
90
|
-
"module": "./dist/index.js",
|
|
91
|
-
"devDependencies": {
|
|
92
|
-
"@internals/utils": "0.0.0"
|
|
93
|
-
},
|
|
94
60
|
"scripts": {
|
|
95
|
-
"build": "tsdown
|
|
96
|
-
"clean": "
|
|
97
|
-
"lint": "
|
|
98
|
-
"lint:fix": "
|
|
99
|
-
"release": "pnpm publish --no-git-check",
|
|
100
|
-
"release:canary": "bash ../../.github/canary.sh && node ../../scripts/build.js canary && pnpm publish --no-git-check",
|
|
61
|
+
"build": "tsdown",
|
|
62
|
+
"clean": "node -e \"require('node:fs').rmSync('./dist', {recursive:true,force:true})\"",
|
|
63
|
+
"lint": "oxlint .",
|
|
64
|
+
"lint:fix": "oxlint --fix .",
|
|
101
65
|
"start": "tsdown --watch",
|
|
102
66
|
"test": "vitest --passWithNoTests",
|
|
103
67
|
"typecheck": "tsc -p ./tsconfig.json --noEmit --emitDeclarationOnly false"
|