Skip to content

Commit

Permalink
chore: bring packages in-sync
Browse files Browse the repository at this point in the history
  • Loading branch information
mvantellingen committed Nov 26, 2024
1 parent 065b033 commit 4ab7193
Show file tree
Hide file tree
Showing 10 changed files with 485 additions and 2,118 deletions.
22 changes: 15 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,35 @@
"version": "0.0.1",
"description": "Monorepository for codegen",
"author": "Lab Digital <opensource@labdigital.nl>",
"type": "module",
"license": "MIT",
"main": "index.js",
"scripts": {
"build": "pnpm turbo build",
"deps:fix": "syncpack fix-mismatches && pnpm dedupe && pnpm install",
"format": "biome format --fix",
"changeset-version": "changeset version && pnpm format",
"check": "biome check",
"publish:ci": "pnpm build && pnpm changeset publish",
"test": "vitest run",
"test:ci": "vitest run --coverage --passWithNoTests"
},
"devDependencies": {
"@changesets/cli": "2.25.0",
"turbo": "^2.2.3"
},
"workspaces": ["packages/*"],
"packageManager": "pnpm@9.2.0",
"packageManager": "pnpm@9.14.2",
"private": true,
"dependencies": {
"@biomejs/biome": "^1.9.4",
"@vitest/coverage-v8": "2.1.4",
"vitest": "2.1.4"
"@vitest/coverage-v8": "2.1.6",
"syncpack": "^13.0.0",
"vitest": "^2.1.6"
},
"devDependencies": {
"@changesets/cli": "^2.27.10",
"turbo": "^2.2.3"
},
"pnpm": {
"overrides": {
"graphql": "^16.9.0"
}
}
}
22 changes: 10 additions & 12 deletions packages/bruno/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@labdigital/graphql-codegen-bruno",
"version": "1.1.0",
"type": "commonjs",
"type": "module",
"main": "dist/index.js",
"publishConfig": {
"access": "public"
Expand All @@ -20,29 +20,27 @@
"test:ci": "vitest run --coverage"
},
"dependencies": {
"@biomejs/biome": "^1.8.3",
"@graphql-codegen/plugin-helpers": "^5.0.4",
"fs-extra": "^11.2.0",
"prettier": "^3.3.3",
"vitest": "^2.0.5"
"vitest": "^2.1.6"
},
"devDependencies": {
"@changesets/cli": "^2.27.7",
"@graphql-tools/graphql-file-loader": "^8.0.1",
"@graphql-tools/load": "^8.0.2",
"@graphql-tools/graphql-file-loader": "^8.0.4",
"@graphql-tools/load": "^8.0.5",
"@types/fs-extra": "^11.0.4",
"@types/node": "^22.5.2",
"@vitest/coverage-v8": "^2.0.5",
"tsup": "^8.2.4",
"typescript": "^5.5.4"
"@vitest/coverage-v8": "2.1.6",
"vite-tsconfig-paths": "^5.1.3",
"tsup": "^8.3.5",
"typescript": "^5.7.2"
},
"peerDependencies": {
"graphql": "^16.9.0"
},
"pnpm": {
"overrides": {
"graphql": "16.9.0"
"graphql": "^16.9.0"
}
},
"packageManager": "pnpm@9.9.0"
}
}
2 changes: 1 addition & 1 deletion packages/bruno/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { afterEach } from "node:test";
import type { Types } from "@graphql-codegen/plugin-helpers";
import { GraphQLFileLoader } from "@graphql-tools/graphql-file-loader";
import { loadDocumentsSync, loadSchemaSync } from "@graphql-tools/load";
import fs from "fs-extra";
import * as fs from "fs-extra";
import { describe, expect, it } from "vitest";
import { type BrunoPluginConfig, plugin } from "./index";

Expand Down
21 changes: 11 additions & 10 deletions packages/bruno/tsup.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { defineConfig } from "tsup";

export default defineConfig({
entry: ["src/index.ts"],
format: ["cjs"],
dts: false,
sourcemap: false,
clean: true,
minify: false,
target: "es2022",
outDir: "dist",
});
export default defineConfig([
{
entry: ["src/index.ts"],
clean: true,
splitting: false,
dts: true,
sourcemap: true,
format: ["esm", "cjs"],
outDir: "dist",
},
]);
8 changes: 2 additions & 6 deletions packages/bruno/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import path from "node:path";
import tsconfigPaths from "vite-tsconfig-paths";
import { defineConfig } from "vitest/config";

export default defineConfig({
plugins: [tsconfigPaths()],
test: {
testTimeout: 5000,
coverage: {
Expand All @@ -16,9 +17,4 @@ export default defineConfig({
},
},
},
resolve: {
alias: {
"~src": path.join(__dirname, "src"),
},
},
});
11 changes: 4 additions & 7 deletions packages/k6/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,21 @@
"test:ci": "vitest run"
},
"peerDependencies": {
"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",
"graphql": "^16.9.0",
"graphql-tag": "^2.0.0"
},
"dependencies": {
"@graphql-codegen/plugin-helpers": "^3.1.2",
"@graphql-codegen/plugin-helpers": "^5.0.4",
"@graphql-codegen/visitor-plugin-common": "2.13.1",
"auto-bind": "~4.0.0"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@changesets/cli": "^2.27.10",
"tslib": "~2.6.3",
"tsup": "^8.3.5",
"typescript": "^5.7.2",
"vitest": "^2.1.5"
"vitest": "^2.1.6"
},
"publishConfig": {
"access": "public"
},
"packageManager": "pnpm@9.9.0"
}
}
21 changes: 11 additions & 10 deletions packages/k6/tsup.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { defineConfig } from "tsup";

export default defineConfig({
entry: ["src/index.ts"],
format: ["cjs", "esm"], // Support both CommonJS and ESM
dts: false, // Generate .d.ts files
sourcemap: false, // Generate sourcemaps
clean: true, // Clean output directory before each build
minify: false, // Minify the output
target: "es2022", // Target the latest version of ECMAScript
outDir: "dist", // Output directory
});
export default defineConfig([
{
entry: ["src/index.ts"],
clean: true,
splitting: false,
dts: true,
sourcemap: true,
format: ["esm", "cjs"],
outDir: "dist",
},
]);
10 changes: 5 additions & 5 deletions packages/typedefs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
},
"files": ["dist", "src"],
"dependencies": {
"@graphql-tools/utils": "10.5.5",
"graphql": "^16.9.0"
"@graphql-tools/utils": "10.5.5"
},
"devDependencies": {
"tsup": "^8.3.0",
"typescript": "^5.6.3",
"vitest": "1.6.0"
"graphql": "^16.9.0",
"tsup": "^8.3.5",
"typescript": "^5.7.2",
"vitest": "^2.1.6"
}
}
Loading

0 comments on commit 4ab7193

Please sign in to comment.