mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-19 00:02:03 +00:00
9 lines
390 B
Bash
Executable File
9 lines
390 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, getResumeUrls, setState, getState } from "./client";' >> src/index.ts |