* feat: typescript client esm build * fix: add --dts flag and restore tsconfig options for typescript client ESM build - Add --dts flag to tsdown commands to generate declaration files - Restore outDir in tsconfig.json for compatibility - Restore forceConsistentCasingInFileNames for case-sensitive systems - Update README_DEV.md to reflect new tsdown build process Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Ruben Fiszel <ruben@windmill.dev> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
19 lines
512 B
Bash
Executable File
19 lines
512 B
Bash
Executable File
#!/bin/bash
|
|
set -eou pipefail
|
|
script_dirpath="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
args=${1:-}
|
|
|
|
rm -rf "${script_dirpath}/dist"
|
|
|
|
${script_dirpath}/build.sh
|
|
rm "${script_dirpath}/client.ts"
|
|
rm "${script_dirpath}/s3Types.ts"
|
|
rm "${script_dirpath}/sqlUtils.ts"
|
|
npm install
|
|
npx tsdown --format esm --format cjs --dts
|
|
cp "${script_dirpath}/src/client.ts" ${script_dirpath}
|
|
cp "${script_dirpath}/src/s3Types.ts" ${script_dirpath}
|
|
cp "${script_dirpath}/src/sqlUtils.ts" ${script_dirpath}
|
|
npm publish ${args}
|