@hey-api/openapi-ts

v0.42.0
Turn your OpenAPI specification into a beautiful TypeScript client
openapi swagger generator typescript javascript codegen yaml json fetch and 5 more...

dev

rimraf dist && pnpm build-bundle --watch

lint

eslint .

test

vitest run --config vitest.config.unit.ts

build

pnpm clean && pnpm build-bundle && pnpm build-types

clean

rimraf dist test/generated test/e2e/generated coverage node_modules/.cache

lint:fix

eslint . --fix

test:e2e

vitest run --config vitest.config.e2e.ts

typecheck

tsc --noEmit

test:watch

vitest watch --config vitest.config.unit.ts

build-types

pnpm build-types-temp && pnpm build-types-roll && pnpm build-types-check

test:sample

node test/sample.cjs

test:update

vitest watch --config vitest.config.unit.ts --update

build-bundle

rollup --config rollup.config.ts --configPlugin typescript

test:coverage

vitest run --config vitest.config.unit.ts --coverage

build-types-roll

rollup --config rollup.dts.config.ts --configPlugin typescript && rimraf temp

build-types-temp

tsc --emitDeclarationOnly --outDir temp -p src/node

build-types-check

tsc --project tsconfig.check.json
npm i @hey-api/[email protected]

Metadata

  • MIT
  • ^18.0.0 || >=20.0.0
  • Unknown
  • released 4/21/2024

Downloads

Maintainers