Compare commits

...
4 Commits
Author SHA1 Message Date
wendrul 4b70c32c6e Add missing build step 2024-04-25 18:01:55 +02:00
wendrul 39b623ca89 Remove tsc logic for jsr build and publish 2024-04-25 17:57:07 +02:00
wendrul 4c77c89346 Merge branch 'main' into jsr 2024-04-25 17:34:45 +02:00
wendrul 0a8ba4bbbc Add publish to jsr scripts 2024-04-25 17:31:32 +02:00
3 changed files with 28 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
set -eou pipefail
script_dirpath="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
rm -rf "${script_dirpath}/dist"
npx --yes @hey-api/openapi-ts --input "${script_dirpath}/../backend/windmill-api/openapi.yaml" --output "${script_dirpath}/dist" --useOptions --schemas false
# Add explicit type as it's missing in the client source code. This will be unnecessary in newer openapi-ts versions
sed -i 's/get \[Symbol\.toStringTag\]() {/get \[Symbol\.toStringTag\]() : string {/g' "${script_dirpath}/dist/core/CancelablePromise.ts"
+8
View File
@@ -0,0 +1,8 @@
{
"name": "@windmill-labs/windmill",
"version": "1.317.1",
"exports": "./dist/index.ts",
"publish": {
"exclude": ["!dist"]
}
}
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
set -eou pipefail
script_dirpath="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
args=${1:-}
${script_dirpath}/build.jsr.sh
npx jsr publish ${args}