@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.
Files changed (41) hide show
  1. package/LICENSE +17 -10
  2. package/README.md +38 -23
  3. package/dist/index.cjs +2376 -5
  4. package/dist/index.cjs.map +1 -0
  5. package/dist/index.d.ts +941 -40
  6. package/dist/index.js +2321 -2
  7. package/dist/index.js.map +1 -0
  8. package/dist/rolldown-runtime-CNktS9qV.js +17 -0
  9. package/package.json +38 -74
  10. package/dist/chunk--u3MIqq1.js +0 -8
  11. package/dist/components-CRu8IKY3.js +0 -729
  12. package/dist/components-CRu8IKY3.js.map +0 -1
  13. package/dist/components-DeNDKlzf.cjs +0 -982
  14. package/dist/components-DeNDKlzf.cjs.map +0 -1
  15. package/dist/components.cjs +0 -3
  16. package/dist/components.d.ts +0 -36
  17. package/dist/components.js +0 -2
  18. package/dist/generators.cjs +0 -4
  19. package/dist/generators.d.ts +0 -509
  20. package/dist/generators.js +0 -2
  21. package/dist/plugin-BZkBwnEA.js +0 -1269
  22. package/dist/plugin-BZkBwnEA.js.map +0 -1
  23. package/dist/plugin-Bunz1oGa.cjs +0 -1322
  24. package/dist/plugin-Bunz1oGa.cjs.map +0 -1
  25. package/dist/types-mSXmB8WU.d.ts +0 -298
  26. package/src/components/Type.tsx +0 -190
  27. package/src/components/index.ts +0 -1
  28. package/src/components/v2/Enum.tsx +0 -67
  29. package/src/components/v2/Type.tsx +0 -59
  30. package/src/constants.ts +0 -29
  31. package/src/factory.ts +0 -726
  32. package/src/generators/index.ts +0 -2
  33. package/src/generators/typeGenerator.tsx +0 -468
  34. package/src/generators/v2/typeGenerator.tsx +0 -167
  35. package/src/generators/v2/utils.ts +0 -140
  36. package/src/index.ts +0 -3
  37. package/src/parser.ts +0 -389
  38. package/src/plugin.ts +0 -232
  39. package/src/printer.ts +0 -368
  40. package/src/resolverTs.ts +0 -77
  41. 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-alpha.9",
4
- "description": "TypeScript code generation plugin for Kubb, transforming OpenAPI schemas into TypeScript interfaces, types, and utility functions.",
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
- "typescript",
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
- "plugins",
18
- "kubb"
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/kubb.git",
20
+ "url": "git+https://github.com/kubb-labs/plugins.git",
23
21
  "directory": "packages/plugin-ts"
24
22
  },
25
- "license": "MIT",
26
- "author": "stijnvanhulle",
27
- "sideEffects": false,
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
- "types": "./dist/index.d.ts",
45
- "typesVersions": {
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/fabric-core": "0.14.0",
71
- "@kubb/react-fabric": "0.14.0",
72
- "remeda": "^2.33.6",
73
- "typescript": "5.9.3",
74
- "@kubb/ast": "5.0.0-alpha.9",
75
- "@kubb/core": "5.0.0-alpha.9",
76
- "@kubb/oas": "5.0.0-alpha.9",
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
- "@kubb/react-fabric": "0.14.0"
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 && size-limit",
96
- "clean": "npx rimraf ./dist",
97
- "lint": "bun biome lint .",
98
- "lint:fix": "bun biome lint --fix --unsafe .",
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"
@@ -1,8 +0,0 @@
1
- //#region \0rolldown/runtime.js
2
- var __defProp = Object.defineProperty;
3
- var __name = (target, value) => __defProp(target, "name", {
4
- value,
5
- configurable: true
6
- });
7
- //#endregion
8
- export { __name as t };