Skip to content

Commit

Permalink
reorganize schemas and add scripts to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jthrilly committed Nov 29, 2024
1 parent a9f5434 commit d799027
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/protocol-validation/validation/validateSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const validateSchema = async (

try {
const result = (await import(
`~/lib/protocol-validation/schemas/${version}.js`
`~/lib/protocol-validation/schemas/compiled/${version}.js`
)) as { default: ValidateFunction };

validator = result.default;
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"vercel-build": "node ./setup-database.js && node ./initialize.js && next build",
"knip": "knip",
"test": "vitest",
"load-test": "docker run -i grafana/k6 run - <load-test.js"
"load-test": "docker run -i grafana/k6 run - <load-test.js",
"validate-protocol": "node --experimental-strip-types ./lib/protocol-validation/scripts/validateProtocol.ts",
"compile-schemas": "node --experimental-strip-types ./lib/protocol-validation/scripts/compileSchemas.ts"
},
"pnpm": {
"overrides": {
Expand Down

0 comments on commit d799027

Please sign in to comment.