Closed ffMathy closed 1 year ago
By the way, this is the pull request I was describing: https://github.com/ftrackhq/ftrack-javascript/pull/97
I removed the export from the generate function and ran the prettier formatting
Ah yes. I always forget that 😂 thanks! 🙏
Changes
On Mac, the include path check did not work for me.
Context: https://stackoverflow.com/questions/6398196/detect-if-called-through-require-or-directly-by-command-line
I followed the above changes.
Test
yarn install
.npm link
.npm run watch
to build and watch for changes.@ftrack/ts-schema-generator
into the project from NPM.npm link @ftrack/ts-schema-generator
to symbiotically link the project'sts-schema-generator
to the repo's folder.scripts
command:"ftrack:schema": "ftrack-ts-schema-generator ./ftrack schema.ts"