openapi-fetch
v0.12.2 openapi swagger rest api oapi_3 oapi_3_1 typescript fetch react and 3 more...
build
pnpm run build:clean && pnpm run build:js && pnpm run build:js-min && pnpm run build:cjs
build:clean
del-cli dist
build:js
mkdir -p dist && cp src/* dist
build:js-min
esbuild --bundle src/index.js --format=esm --minify --outfile=dist/index.min.js && cp dist/index.d.ts dist/index.min.d.ts
build:cjs
esbuild --bundle src/index.js --format=cjs --outfile=dist/cjs/index.cjs && cp dist/index.d.ts dist/cjs/index.d.cts
format
biome format . --write
lint
biome check .
generate-types
openapi-typescript -c test/redocly.yaml
pretest
pnpm run generate-types
test
pnpm run "/^test:/"
test:js
vitest run
test:ts
tsc --noEmit
test:ts-no-strict
tsc --noEmit -p test/no-strict-null-checks/tsconfig.json
test-e2e
playwright test
bench:js
vitest bench
e2e-vite-build
vite build test/e2e/app
e2e-vite-start
vite preview test/e2e/app
version
pnpm run prepare && pnpm run build