Skip to content

Commit 2e8823b

Browse files
authored
Log the JS and Python type generation steps (#798)
When these steps fail, it's difficult to tell from the logs which step it was that failed.
1 parent 7e3e845 commit 2e8823b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/schema/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
"build": "jlpm build:schema && jlpm build:lib",
2929
"build:schema": "jlpm run build:processing && node ./cacheGeoJSONSchema.js && jlpm build:schema:js && jlpm build:schema:py",
3030
"build:processing": "python scripts/process.py",
31-
"build:schema:js": "json2ts -i src/schema -o src/_interface --no-unknownAny --unreachableDefinitions --cwd ./src/schema && cd src/schema && node ../../schema.js",
32-
"build:schema:py": "datamodel-codegen --input ./src/schema --output ../../python/jupytergis_core/jupytergis_core/schema/interfaces --output-model-type pydantic_v2.BaseModel --input-file-type jsonschema",
31+
"build:schema:js": "echo 'Generating TypeScript types from schema...' && json2ts -i src/schema -o src/_interface --no-unknownAny --unreachableDefinitions --cwd ./src/schema && cd src/schema && node ../../schema.js",
32+
"build:schema:py": "echo 'Generating Python types from schema...' && datamodel-codegen --input ./src/schema --output ../../python/jupytergis_core/jupytergis_core/schema/interfaces --output-model-type pydantic_v2.BaseModel --input-file-type jsonschema",
3333
"build:prod": "jlpm run clean && jlpm build:schema && jlpm run build:lib",
3434
"build:lib": "tsc -b",
3535
"build:dev": "jlpm run build",

0 commit comments

Comments
 (0)