Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .fallowrc.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": ["npm:@block65/shared-config/lib/fallow/fallow.jsonc"],

"entry": ["bin/index.ts", "oxfmt.config.ts", "oxlint.config.ts"],

// the Makefile runs its CLI to turn the openai document into JSON
"ignoreDependencies": ["js-yaml"],

// generated code under test, whose imports name files a snapshot may omit
"ignorePatterns": ["__tests__/__snapshots__/**"]
}
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Generator output is rebuilt, never merged. `-merge` keeps our side of a
# clash without conflict markers, so the fix is `make` and `vitest -u`, and
# linguist-generated collapses these files in pull request diffs
__tests__/fixtures/*/** -merge linguist-generated
__tests__/__snapshots__/** -merge linguist-generated
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
- run: just lint-ci
- run: just fmt-check
- run: just test
- run: just typecheck-fixtures
- run: just dead-code
26 changes: 0 additions & 26 deletions .oxfmtrc.json

This file was deleted.

6 changes: 0 additions & 6 deletions __tests__/tsconfig.json

This file was deleted.

6 changes: 3 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
check: typecheck lint fmt-check test typecheck-fixtures
check: typecheck lint fmt-check test dead-code

typecheck:
pnpm exec oxlint --type-aware --type-check
Expand All @@ -19,5 +19,5 @@ fmt-check:
test:
pnpm exec vitest run

typecheck-fixtures:
pnpm exec tsc -p __tests__/tsconfig.json
dead-code:
pnpm exec fallow dead-code
15,331 changes: 0 additions & 15,331 deletions openai.json

This file was deleted.

6 changes: 6 additions & 0 deletions oxfmt.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { defineConfig } from "@block65/shared-config/oxfmt";

export default defineConfig({
// generated code under test, compared byte for byte
ignorePatterns: ["__tests__/__snapshots__"],
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
"yargs": "^18.1.0"
},
"devDependencies": {
"@block65/custom-error": "^14.1.0",
"@block65/rest-client": "^15.0.0",
"@block65/shared-config": "^0.5.0",
"@block65/tsconfig": "^0.3.1",
"@hono/standard-validator": "^0.4.0",
"@types/node": "^26.6.2",
"@types/toposort": "^2.0.7",
"@types/yargs": "^17.0.35",
"fallow": "^3.28.0",
"hono": "^4.13.8",
"js-yaml": "^5.4.2",
"openapi3-ts": "^4.6.1",
Expand Down
104 changes: 99 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,15 @@
"resolveJsonModule": true
},

"include": ["bin", "lib", "oxlint.config.ts"]
"include": [
"bin",
"lib",
"__tests__",
"oxfmt.config.ts",
"oxlint.config.ts",
"vitest.config.ts"
],

// generator output compared byte for byte, without its imports' modules
"exclude": ["__tests__/__snapshots__"]
}
Loading