-
Notifications
You must be signed in to change notification settings - Fork 214
Closed
Description
I want to generate json schemas inside a package where in it's package.json
no version
is specified.
in https://github.com/vega/ts-json-schema-generator/blob/next/ts-json-schema-generator.ts#L52 you seem to use the version of my package.json
instead of yours and therefore the generator fails with the following error:
<path>/node_modules/ts-json-schema-generator/dist/ts-json-schema-generator.js:35
.parse(process.argv)
^
TypeError: Cannot read properties of undefined (reading 'parse')
at file:///<path>/node_modules/ts-json-schema-generator/dist/ts-json-schema-generator.js:35:5
at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
Node.js v20.13.1
Metadata
Metadata
Assignees
Labels
No labels