Skip to content

Commit 68c40d4

Browse files
committed
chore(repo): forbid tracked generated artifacts
1 parent dda09c8 commit 68c40d4

40 files changed

Lines changed: 88 additions & 35 deletions

lefthook.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ pre-commit:
3838
# split paths containing spaces. It skips files under the limit, anything
3939
# routed through LFS, and registry/ assets. Tune via HF_MAX_NONLFS_KB.
4040
run: ./scripts/check-large-files.sh
41+
tracked-artifacts:
42+
# Keep ignored dependency trees and platform metadata out of commits.
43+
# `git ls-files` observes the staged index, so staged removals pass and
44+
# an accidental force-add fails before the commit is created.
45+
run: bun run check:tracked-artifacts
4146
filesize:
4247
# Scoped to packages/studio — the 600 LOC limit is a studio architecture
4348
# standard enforced as part of the App.tsx decomposition work. Player and

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,16 @@
2424
"changelog:weekly": "tsx scripts/changelog-weekly.ts",
2525
"sync-schemas": "tsx scripts/sync-schemas.ts",
2626
"sync-schemas:check": "tsx scripts/sync-schemas.ts --check",
27-
"lint": "oxlint . && tsx scripts/lint-skills.ts",
27+
"lint": "bun run check:tracked-artifacts && oxlint . && tsx scripts/lint-skills.ts",
2828
"lint:skills": "tsx scripts/lint-skills.ts",
2929
"lint:fix": "oxlint --fix .",
30+
"check:tracked-artifacts": "node scripts/check-tracked-artifacts.mjs",
3031
"format": "oxfmt .",
3132
"test": "bun run --filter '*' test",
3233
"player:perf": "bun run --filter @hyperframes/player perf",
3334
"format:check": "oxfmt --check .",
3435
"knip": "knip",
35-
"test:scripts": "node --import tsx --test scripts/validate-release-channel.test.mjs scripts/draft-changelog.test.ts scripts/set-version.test.ts scripts/release-prepare.test.ts scripts/cli-options.test.ts scripts/changelog-weekly.test.ts scripts/claude-plugin-compression.test.ts scripts/verify-packed-manifests.test.mjs",
36+
"test:scripts": "node --import tsx --test scripts/check-tracked-artifacts.test.mjs scripts/validate-release-channel.test.mjs scripts/draft-changelog.test.ts scripts/set-version.test.ts scripts/release-prepare.test.ts scripts/cli-options.test.ts scripts/changelog-weekly.test.ts scripts/claude-plugin-compression.test.ts scripts/verify-packed-manifests.test.mjs",
3637
"test:skills": "node --test 'skills/**/*.test.mjs'",
3738
"generate:previews": "tsx scripts/generate-template-previews.ts",
3839
"generate:catalog-previews": "tsx scripts/generate-catalog-previews.ts",

packages/producer/.DS_Store

-8 KB
Binary file not shown.

packages/producer/node_modules/.bin/puppeteer

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/producer/node_modules/.bin/tsc

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/producer/node_modules/.bin/tsserver

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/producer/node_modules/.bin/tsx

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/producer/node_modules/@fontsource/archivo-black

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/producer/node_modules/@fontsource/eb-garamond

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/producer/node_modules/@fontsource/ibm-plex-mono

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)