source/resource.json
is the source of truth for the resource definition json schema.
source/configuration.json
is the source of truth for the configuration definition json schema.
types are inferred from the json schemas and emitted using json-schema-to-ts. due to some kind of limitation, the schemas needs to be copied to source/index.js
so that the type declarations can work, see.
the building of this package conists of the following steps:
-
npm run build:bundle
: bundling the schemas so that the type inference can be done. -
npm run build:lockin
: injecting the bundled schemas tosource/index.js
so that the types inference can be done. -
npm run build:types
: emitting .d.ts with types fromsourc/index.js
, see.