Files
windmill/typescript-client/build.sh
Ruben Fiszel 2921649c3c feat: bun support (#1800)
* feat: bun support

* feat: bun support

* add bun support

* add bun support

* add bun support

* add bun
2023-07-06 21:19:07 +02:00

9 lines
355 B
Bash
Executable File

#!/bin/bash
set -e
npx --yes openapi-typescript-codegen --input ../backend/windmill-api/openapi.yaml \
--output ./src --useOptions \
&& sed -i '213 i \\ request.referrerPolicy = \"no-referrer\"\n' src/core/request.ts
cp client.ts src/
echo 'export { setClient, getVariable, setVariable, getResource, setResource } from "./client";' >> src/index.ts