Skip to content

Commit

Permalink
api: Move compile-schemas to schema folde
Browse files Browse the repository at this point in the history
  • Loading branch information
victorges committed Sep 13, 2024
1 parent 7fbb9b5 commit 8ca448b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"prepare:redoc": "redoc-cli bundle --cdn -o docs/index.html src/schema/schema.yaml",
"prepare:type-check": "tsc --pretty --noEmit",
"prepare": "run-s compile-schemas && run-p \"prepare:**\"",
"compile-schemas": "node -r esm src/compile-schemas.js",
"compile-schemas": "node -r esm src/schema/compile-schemas.js",
"dev-server": "run-s compile-schemas && node dist/cli.js",
"redoc": "nodemon -w src/schema/schema.yaml -x npm run prepare:redoc",
"siserver": "nodemon -w dist -x node -r esm dist/stream-info-service.js -e js,yaml",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const write = (dir, data) => {
console.log(`wrote ${dir}`);
};

const schemaDir = path.resolve(__dirname, "schema");
const schemaDir = path.resolve(__dirname, ".");
const validatorDir = path.resolve(schemaDir, "validators");
const schemaDistDir = path.resolve(__dirname, "..", "dist", "schema");
fs.ensureDirSync(validatorDir);
Expand Down

0 comments on commit 8ca448b

Please sign in to comment.