diff --git a/fetchODBSchema.mjs b/schemas/fetchODBSchema.mjs similarity index 96% rename from fetchODBSchema.mjs rename to schemas/fetchODBSchema.mjs index 093a9866a..3e947d8d7 100755 --- a/fetchODBSchema.mjs +++ b/schemas/fetchODBSchema.mjs @@ -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}.`); diff --git a/fetchODBSchema.sh b/schemas/fetchODBSchema.sh similarity index 100% rename from fetchODBSchema.sh rename to schemas/fetchODBSchema.sh diff --git a/schemas/package-lock.json b/schemas/package-lock.json new file mode 100644 index 000000000..94a2abe5c --- /dev/null +++ b/schemas/package-lock.json @@ -0,0 +1,26 @@ +{ + "name": "lucuma-schemas", + "version": "0.150.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "lucuma-schemas", + "version": "0.150.0", + "license": "BSD-3-Clause", + "devDependencies": { + "graphql": "^16.9.0" + } + }, + "node_modules/graphql": { + "version": "16.11.0", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.11.0.tgz", + "integrity": "sha512-mS1lbMsxgQj6hge1XZ6p7GPhbrtFwUFYi3wRzXAC/FmYnyXMTvvI3td3rjmQ2u8ewXueaSvRPWaEcgVVOT9Jnw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" + } + } + } +} diff --git a/schemas/package.json b/schemas/package.json new file mode 100644 index 000000000..0f6c6c43d --- /dev/null +++ b/schemas/package.json @@ -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" + } +}