dtsgenerator

v3.19.2
TypeScript d.ts file generator for JSON Schema file
TypeScript JSON Schema OpenAPI

build

tsc -p ./tsconfig-build.json

clean

rimraf dist/ build/ {src,test}/**/*.{js,js.map} *.tsbuildinfo

compile

tsc -p .

lint

eslint --fix --report-unused-disable-directives --ext ts src/ test/

format

prettier --cache --write 'src/**/*.ts' 'test/*.ts' 'test/core/*.ts'

precompile

npm run lint && npm run format

prepublishOnly

npm run build

pretest

npm run compile

do-test

cross-env TS_NODE_FILES=true mocha --exit --require ts-node/register --require source-map-support/register --colors test/*_test.ts test/**/*_test.ts

test

nyc npm run do-test

test:update-snapshot

UPDATE_SNAPSHOT=1 npm run test

coverage

nyc report --reporter=lcov

prepare

husky install
npm i dtsgenerator

Metadata

  • MIT
  • >= 18.0
  • horiuchi
  • released 6/11/2024

Downloads

Maintainers