File tree Expand file tree Collapse file tree 10 files changed +485
-2118
lines changed
Expand file tree Collapse file tree 10 files changed +485
-2118
lines changed Original file line number Diff line number Diff line change 33 "version" : " 0.0.1" ,
44 "description" : " Monorepository for codegen" ,
55 "author" :
" Lab Digital <[email protected] >" ,
6+ "type" : " module" ,
67 "license" : " MIT" ,
78 "main" : " index.js" ,
89 "scripts" : {
910 "build" : " pnpm turbo build" ,
11+ "deps:fix" : " syncpack fix-mismatches && pnpm dedupe && pnpm install" ,
1012 "format" : " biome format --fix" ,
1113 "changeset-version" : " changeset version && pnpm format" ,
1214 "check" : " biome check" ,
1315 "publish:ci" : " pnpm build && pnpm changeset publish" ,
1416 "test" : " vitest run" ,
1517 "test:ci" : " vitest run --coverage --passWithNoTests"
1618 },
17- "devDependencies" : {
18- "@changesets/cli" : " 2.25.0" ,
19- "turbo" : " ^2.2.3"
20- },
2119 "workspaces" : [" packages/*" ],
22- "packageManager" : " pnpm@9.2.0 " ,
20+ "packageManager" : " pnpm@9.14.2 " ,
2321 "private" : true ,
2422 "dependencies" : {
2523 "@biomejs/biome" : " ^1.9.4" ,
26- "@vitest/coverage-v8" : " 2.1.4" ,
27- "vitest" : " 2.1.4"
24+ "@vitest/coverage-v8" : " 2.1.6" ,
25+ "syncpack" : " ^13.0.0" ,
26+ "vitest" : " ^2.1.6"
27+ },
28+ "devDependencies" : {
29+ "@changesets/cli" : " ^2.27.10" ,
30+ "turbo" : " ^2.2.3"
31+ },
32+ "pnpm" : {
33+ "overrides" : {
34+ "graphql" : " ^16.9.0"
35+ }
2836 }
2937}
Original file line number Diff line number Diff line change 11{
22 "name" : " @labdigital/graphql-codegen-bruno" ,
33 "version" : " 1.1.0" ,
4- "type" : " commonjs " ,
4+ "type" : " module " ,
55 "main" : " dist/index.js" ,
66 "publishConfig" : {
77 "access" : " public"
2020 "test:ci" : " vitest run --coverage"
2121 },
2222 "dependencies" : {
23- "@biomejs/biome" : " ^1.8.3" ,
2423 "@graphql-codegen/plugin-helpers" : " ^5.0.4" ,
2524 "fs-extra" : " ^11.2.0" ,
2625 "prettier" : " ^3.3.3" ,
27- "vitest" : " ^2.0.5 "
26+ "vitest" : " ^2.1.6 "
2827 },
2928 "devDependencies" : {
30- "@changesets/cli" : " ^2.27.7" ,
31- "@graphql-tools/graphql-file-loader" : " ^8.0.1" ,
32- "@graphql-tools/load" : " ^8.0.2" ,
29+ "@graphql-tools/graphql-file-loader" : " ^8.0.4" ,
30+ "@graphql-tools/load" : " ^8.0.5" ,
3331 "@types/fs-extra" : " ^11.0.4" ,
3432 "@types/node" : " ^22.5.2" ,
35- "@vitest/coverage-v8" : " ^2.0.5" ,
36- "tsup" : " ^8.2.4" ,
37- "typescript" : " ^5.5.4"
33+ "@vitest/coverage-v8" : " 2.1.6" ,
34+ "vite-tsconfig-paths" : " ^5.1.3" ,
35+ "tsup" : " ^8.3.5" ,
36+ "typescript" : " ^5.7.2"
3837 },
3938 "peerDependencies" : {
4039 "graphql" : " ^16.9.0"
4140 },
4241 "pnpm" : {
4342 "overrides" : {
44- "graphql" : " 16.9.0"
43+ "graphql" : " ^ 16.9.0"
4544 }
46- },
47- "packageManager" :
" [email protected] " 45+ }
4846}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { afterEach } from "node:test";
33import type { Types } from "@graphql-codegen/plugin-helpers" ;
44import { GraphQLFileLoader } from "@graphql-tools/graphql-file-loader" ;
55import { loadDocumentsSync , loadSchemaSync } from "@graphql-tools/load" ;
6- import fs from "fs-extra" ;
6+ import * as fs from "fs-extra" ;
77import { describe , expect , it } from "vitest" ;
88import { type BrunoPluginConfig , plugin } from "./index" ;
99
Original file line number Diff line number Diff line change 11import { defineConfig } from "tsup" ;
22
3- export default defineConfig ( {
4- entry : [ "src/index.ts" ] ,
5- format : [ "cjs" ] ,
6- dts : false ,
7- sourcemap : false ,
8- clean : true ,
9- minify : false ,
10- target : "es2022" ,
11- outDir : "dist" ,
12- } ) ;
3+ export default defineConfig ( [
4+ {
5+ entry : [ "src/index.ts" ] ,
6+ clean : true ,
7+ splitting : false ,
8+ dts : true ,
9+ sourcemap : true ,
10+ format : [ "esm" , "cjs" ] ,
11+ outDir : "dist" ,
12+ } ,
13+ ] ) ;
Original file line number Diff line number Diff line change 1- import path from "node:path " ;
1+ import tsconfigPaths from "vite-tsconfig-paths " ;
22import { defineConfig } from "vitest/config" ;
33
44export default defineConfig ( {
5+ plugins : [ tsconfigPaths ( ) ] ,
56 test : {
67 testTimeout : 5000 ,
78 coverage : {
@@ -16,9 +17,4 @@ export default defineConfig({
1617 } ,
1718 } ,
1819 } ,
19- resolve : {
20- alias : {
21- "~src" : path . join ( __dirname , "src" ) ,
22- } ,
23- } ,
2420} ) ;
Original file line number Diff line number Diff line change 3434 "test:ci" : " vitest run"
3535 },
3636 "peerDependencies" : {
37- "graphql" : " ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^ 16.0 .0" ,
37+ "graphql" : " ^16.9 .0" ,
3838 "graphql-tag" : " ^2.0.0"
3939 },
4040 "dependencies" : {
41- "@graphql-codegen/plugin-helpers" : " ^3.1.2 " ,
41+ "@graphql-codegen/plugin-helpers" : " ^5.0.4 " ,
4242 "@graphql-codegen/visitor-plugin-common" : " 2.13.1" ,
4343 "auto-bind" : " ~4.0.0"
4444 },
4545 "devDependencies" : {
46- "@biomejs/biome" : " ^1.9.4" ,
47- "@changesets/cli" : " ^2.27.10" ,
4846 "tslib" : " ~2.6.3" ,
4947 "tsup" : " ^8.3.5" ,
5048 "typescript" : " ^5.7.2" ,
51- "vitest" : " ^2.1.5 "
49+ "vitest" : " ^2.1.6 "
5250 },
5351 "publishConfig" : {
5452 "access" : " public"
55- },
56- "packageManager" :
" [email protected] " 53+ }
5754}
Original file line number Diff line number Diff line change 11import { defineConfig } from "tsup" ;
22
3- export default defineConfig ( {
4- entry : [ "src/index.ts" ] ,
5- format : [ "cjs" , "esm" ] , // Support both CommonJS and ESM
6- dts : false , // Generate .d.ts files
7- sourcemap : false , // Generate sourcemaps
8- clean : true , // Clean output directory before each build
9- minify : false , // Minify the output
10- target : "es2022" , // Target the latest version of ECMAScript
11- outDir : "dist" , // Output directory
12- } ) ;
3+ export default defineConfig ( [
4+ {
5+ entry : [ "src/index.ts" ] ,
6+ clean : true ,
7+ splitting : false ,
8+ dts : true ,
9+ sourcemap : true ,
10+ format : [ "esm" , "cjs" ] ,
11+ outDir : "dist" ,
12+ } ,
13+ ] ) ;
Original file line number Diff line number Diff line change 3131 },
3232 "files" : [" dist" , " src" ],
3333 "dependencies" : {
34- "@graphql-tools/utils" : " 10.5.5" ,
35- "graphql" : " ^16.9.0"
34+ "@graphql-tools/utils" : " 10.5.5"
3635 },
3736 "devDependencies" : {
38- "tsup" : " ^8.3.0" ,
39- "typescript" : " ^5.6.3" ,
40- "vitest" : " 1.6.0"
37+ "graphql" : " ^16.9.0" ,
38+ "tsup" : " ^8.3.5" ,
39+ "typescript" : " ^5.7.2" ,
40+ "vitest" : " ^2.1.6"
4141 }
4242}
You can’t perform that action at this time.
0 commit comments