Skip to content

Commit b8b896f

Browse files
committed
chore: clean modernization config smells
Objective: remediate low-risk configuration smells found by the adversarial proof audit. Rationale: package-local pnpm.peerDependencyRules blocks were ignored by pnpm and produced install warnings even though the root already owns the GraphQL peer policy. Root TypeScript paths omitted existing workspace packages, and the Next.js example invoked the flatbread CLI without declaring the workspace dependency it relies on. The SvelteKit example repository metadata still pointed at the old playground path. Migration notes: pnpm peer policy remains at the root package.json. The Next.js example now declares flatbread as a workspace dev dependency. Added root path aliases are IDE/type-resolution hygiene only and do not change runtime exports. Rollback: revert this commit to restore the previous package metadata, path aliases, and lockfile entries. The previous stack entries remain independently valid. Change-Id: I54fc3c5302d102a8d677f063fcc1d174f9ffc3f8
1 parent 53d71fd commit b8b896f

6 files changed

Lines changed: 15 additions & 23 deletions

File tree

examples/nextjs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"@types/react-dom": "^19.1.7",
2424
"eslint": "^9.33.0",
2525
"eslint-config-next": "15.4.4",
26+
"flatbread": "workspace:*",
2627
"tailwindcss": "^4.1.11",
2728
"typescript": "^5.9.2"
2829
}

examples/sveltekit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"repository": {
66
"type": "git",
77
"url": "git+https://github.com/FlatbreadLabs/flatbread.git",
8-
"directory": "playground"
8+
"directory": "examples/sveltekit"
99
},
1010
"author": "Tony Ketcham <ketcham.dev@gmail.com>",
1111
"license": "MIT",

packages/codegen/package.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,5 @@
5353
"@flatbread/config": "workspace:*",
5454
"@flatbread/core": "workspace:*",
5555
"@graphql-typed-document-node/core": "^3.1.0"
56-
},
57-
"pnpm": {
58-
"peerDependencyRules": {
59-
"allowedVersions": {
60-
"graphql": "^16.0.1"
61-
}
62-
}
6356
}
6457
}

packages/flatbread/package.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,5 @@
6363
"tsup": "6.2.1",
6464
"typescript": "4.7.4",
6565
"vfile": "5.3.4"
66-
},
67-
"pnpm": {
68-
"peerDependencyRules": {
69-
"allowedVersions": {
70-
"graphql": "^16.0.1"
71-
}
72-
}
7366
}
7467
}

pnpm-lock.yaml

Lines changed: 11 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111
"skipDefaultLibCheck": true,
1212
"paths": {
1313
"flatbread": ["./packages/flatbread/src/index.ts"],
14+
"@flatbread/codegen": ["./packages/codegen/src/index.ts"],
1415
"@flatbread/core": ["./packages/core/src/index.ts"],
1516
"@flatbread/config": ["./packages/config/src/index.ts"],
1617
"@flatbread/proof": ["./packages/proof/src/index.ts"],
18+
"@flatbread/resolver-svimg": ["./packages/resolver-svimg/src/index.ts"],
1719
"@flatbread/utils": ["./packages/utils/src/index.ts"],
1820
"@flatbread/source-filesystem": [
1921
"./packages/source-filesystem/src/index.ts"

0 commit comments

Comments
 (0)