@kubb/core 4.2.2 → 4.3.0
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 +10 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -6
- package/dist/index.js.map +1 -1
- package/dist/mocks.cjs +4 -1
- package/dist/mocks.cjs.map +1 -1
- package/dist/mocks.js +3 -1
- package/dist/mocks.js.map +1 -1
- package/package.json +3 -3
- package/src/build.ts +10 -6
- package/src/mocks/index.ts +3 -1
package/dist/mocks.js
CHANGED
|
@@ -15,6 +15,7 @@ import assert3 from "assert";
|
|
|
15
15
|
import fs3, { realpathSync, statSync } from "fs";
|
|
16
16
|
import v8 from "v8";
|
|
17
17
|
import { format, inspect } from "util";
|
|
18
|
+
import { typescriptParser } from "@kubb/fabric-core/parsers/typescript";
|
|
18
19
|
|
|
19
20
|
//#region ../../node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/doc.mjs
|
|
20
21
|
var doc_exports = /* @__PURE__ */ __export$2({
|
|
@@ -16799,8 +16800,9 @@ const mockedPluginManager = createMockedPluginManager("");
|
|
|
16799
16800
|
async function matchFiles(files, pre) {
|
|
16800
16801
|
if (!files) return;
|
|
16801
16802
|
const fileProcessor = new FileProcessor();
|
|
16803
|
+
const parsers$1 = new Set([typescriptParser]);
|
|
16802
16804
|
for await (const file of files) {
|
|
16803
|
-
const source$1 = await fileProcessor.parse(createFile(file));
|
|
16805
|
+
const source$1 = await fileProcessor.parse(createFile(file), { parsers: parsers$1 });
|
|
16804
16806
|
let code = source$1;
|
|
16805
16807
|
if (!file.baseName.endsWith(".json")) code = await format$1(source$1);
|
|
16806
16808
|
await expect(code).toMatchFileSnapshot(path.join(...[
|