Skip to content

Commit

Permalink
fix: only generate json fixtures when fixtures.ts changes (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
phanshiyu authored May 10, 2024
1 parent 5c06193 commit 770080a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"src/4.0/types.ts": ["npm run generate-v4-json-schemas", "git add src/4.0/jsonSchemas/__generated__"],
"src/4.0/fixtures.ts": ["npm run generate-v4-fixtures", "git add test/fixtures/v4/__generated__"],
"*.{js,ts}": "eslint --fix"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"generate-v4-fixtures": "npx ts-node scripts/generateV4JsonFixtures.ts",
"generate-v4-json-schemas": "npx ts-node scripts/generateV4JsonSchemas.ts",
"publish:schema": "./scripts/publishSchema.sh",
"postinstall": "node scripts/postInstall; npm run generate-v4-fixtures",
"postinstall": "node scripts/postInstall;",
"prebuild": "node scripts/preBuild",
"prepare": "husky install"
},
Expand Down

0 comments on commit 770080a

Please sign in to comment.