Skip to content

Commit 7156b1a

Browse files
committed
fix
1 parent 127d487 commit 7156b1a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"typescript-eslint": "8.58.1"
3636
},
3737
"scripts": {
38-
"build": "tsdown src/plugin.ts --dts --deps.neverBundle graphql",
38+
"build": "tsdown src/plugin.ts --deps.neverBundle graphql",
3939
"docs:build": "bun run build && bun --filter docs build",
4040
"docs:start": "bun --filter docs start",
4141
"format": "prettier --write .",

test/plugin.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { buildSchema } from "graphql";
22
import { GraphQLKotlinCodegenConfig, plugin } from "../src/plugin";
33
import { describe, expect, it } from "bun:test";
44
import { Types } from "@graphql-codegen/plugin-helpers";
5-
import * as glob from "glob";
5+
import { globSync } from "glob";
66

77
function buildUnitTest({
88
testName,
@@ -33,14 +33,14 @@ function buildUnitTest({
3333
});
3434
}
3535

36-
const testDirectories = glob.sync("./test/unit/*");
36+
const testDirectories = globSync("./test/unit/*");
3737
const testCases = await Promise.all(
3838
testDirectories.map(async (testPath) => {
3939
const testName = testPath.split("/").findLast(Boolean);
4040
if (!testName) throw new Error("Test name not found");
4141
const absolutePath = `${process.cwd()}/${testPath}`;
4242
const configExists =
43-
glob.sync(`${absolutePath}/codegen.config.ts`).length > 0;
43+
globSync(`${absolutePath}/codegen.config.ts`).length > 0;
4444
if (!configExists) {
4545
return {
4646
testName,

0 commit comments

Comments
 (0)