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
2 changes: 1 addition & 1 deletion fetchODBSchema.mjs → schemas/fetchODBSchema.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const data = (await response.json()).data;
const schema = printSchema(buildClientSchema(data));

const outputFile =
'schemas/lib/src/clue/resources/lucuma/schemas/ObservationDB.graphql';
'lib/src/clue/resources/lucuma/schemas/ObservationDB.graphql';

await writeFile(outputFile, schema);
console.log(`Wrote ODB schema to ${outputFile}.`);
File renamed without changes.
26 changes: 26 additions & 0 deletions schemas/package-lock.json

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

18 changes: 18 additions & 0 deletions schemas/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "lucuma-schemas",
"private": true,
"version": "0.150.0",
"description": "Schemas for the astronomical observation database",
"scripts": {
"start": "./fetchODBSchema.mjs",
"fetch-schema": "./fetchODBSchema.mjs"
},
"license": "BSD-3-Clause",
"devDependencies": {
"graphql": "^16.9.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/gemini-hlsw/lucuma-apps.git"
}
}
Loading