@kubb/parser-ts 5.18.6 → 5.18.8
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/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -1
- package/docs/options.md +1 -1
- package/docs/overview.md +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -76,5 +76,4 @@ export declare const parserTs: import("@kubb/core").ParserFactory<ParserTsOption
|
|
|
76
76
|
* ```
|
|
77
77
|
*/
|
|
78
78
|
export declare const parserTsx: import("@kubb/core").ParserFactory<ParserTsOptions, object, string | TsNode>;
|
|
79
|
-
export type { ParserTsOptions, TsNode };
|
|
80
|
-
//# sourceMappingURL=index.d.cts.map
|
|
79
|
+
export type { ParserTsOptions, TsNode };
|
package/dist/index.d.ts
CHANGED
|
@@ -76,5 +76,4 @@ export declare const parserTs: import("@kubb/core").ParserFactory<ParserTsOption
|
|
|
76
76
|
* ```
|
|
77
77
|
*/
|
|
78
78
|
export declare const parserTsx: import("@kubb/core").ParserFactory<ParserTsOptions, object, string | TsNode>;
|
|
79
|
-
export type { ParserTsOptions, TsNode };
|
|
80
|
-
//# sourceMappingURL=index.d.ts.map
|
|
79
|
+
export type { ParserTsOptions, TsNode };
|
package/dist/index.js
CHANGED
package/docs/options.md
CHANGED
|
@@ -16,7 +16,7 @@ Rewrites the extensions emitted in relative `import`/`export` statements. Each k
|
|
|
16
16
|
|
|
17
17
|
Use `{ '.ts': '.js' }` to emit `.js` specifiers for ESM output compiled to JavaScript. Use `{ '.ts': '.ts' }` to keep `.ts` specifiers when you run the `.ts` files directly in Node.js or compile them with `rewriteRelativeImportExtensions`.
|
|
18
18
|
|
|
19
|
-
The same mapping applies to runtime templates a plugin copies into the output, such as the `.kubb/` runtime files of `@kubb/plugin-fetch`. Their top-level `import` and `export … from` statements
|
|
19
|
+
The same mapping applies to runtime templates a plugin copies into the output, such as the `.kubb/` runtime files of `@kubb/plugin-fetch`. Their top-level `import` and `export … from` statements are rewritten the same way, so the whole output follows one convention.
|
|
20
20
|
|
|
21
21
|
| | |
|
|
22
22
|
| -------- | ------------------------ |
|
package/docs/overview.md
CHANGED
|
@@ -6,7 +6,7 @@ The package also exports `parserTsx`, which writes `.tsx` and `.jsx` files with
|
|
|
6
6
|
|
|
7
7
|
## Setup
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Kubb registers `parserTs`, `parserTsx`, and `parserMd` by default, in `defineConfig` and in the bundler integrations, so no setup is needed. Set `parsers` in `defineConfig` only to change an option or add a parser. A custom `parsers` array replaces the default set, so list every parser your plugins need. Files that no parser claims are written as their source text only, without imports, exports, banner, or footer.
|
|
10
10
|
|
|
11
11
|
## Options worth knowing
|
|
12
12
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/parser-ts",
|
|
3
|
-
"version": "5.18.
|
|
3
|
+
"version": "5.18.8",
|
|
4
4
|
"description": "TypeScript and TSX parser for Kubb. Prints AST nodes as TypeScript and TSX source, with imports, exports and JSDoc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"codegen",
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"registry": "https://registry.npmjs.org/"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@kubb/ast": "^5.18.
|
|
68
|
-
"@kubb/core": "^5.18.
|
|
67
|
+
"@kubb/ast": "^5.18.8",
|
|
68
|
+
"@kubb/core": "^5.18.8",
|
|
69
69
|
"yuku-parser": "^0.19.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|