From 5f06a607cbdd2bc6ac013e0016df8f63f787ba2a Mon Sep 17 00:00:00 2001 From: centdix <40307056+centdix@users.noreply.github.com> Date: Thu, 7 Aug 2025 17:55:14 +0200 Subject: [PATCH] chore(cli): easier dev on cli (#6336) * add ts extensions by default * remove script * add script to remove ext * simpler scripts * add readme * add revert mode * nit * fix * fix typos * typo --- cli/add-ts-ext.sh | 64 ------------------- cli/build-mac.sh | 22 ------- cli/build.sh | 7 +- cli/gen_wm_client-mac.sh | 28 -------- cli/gen_wm_client.sh | 29 +++++++-- cli/windmill-utils-internal/README.md | 39 +++++++++++ .../gen_wm_client-mac.sh | 25 -------- cli/windmill-utils-internal/gen_wm_client.sh | 26 +++++++- cli/windmill-utils-internal/package-lock.json | 16 ++--- cli/windmill-utils-internal/package.json | 8 +-- cli/windmill-utils-internal/remove-ts-ext.sh | 54 ++++++++++++++++ .../src/config/index.ts | 2 +- cli/windmill-utils-internal/src/index.ts | 10 +-- .../src/inline-scripts/extractor.ts | 4 +- .../src/inline-scripts/index.ts | 4 +- .../src/inline-scripts/replacer.ts | 2 +- .../src/parse/index.ts | 2 +- .../src/path-utils/index.ts | 2 +- .../src/path-utils/path-assigner.ts | 2 +- 19 files changed, 168 insertions(+), 178 deletions(-) delete mode 100755 cli/add-ts-ext.sh delete mode 100755 cli/build-mac.sh delete mode 100755 cli/gen_wm_client-mac.sh create mode 100644 cli/windmill-utils-internal/README.md delete mode 100755 cli/windmill-utils-internal/gen_wm_client-mac.sh create mode 100755 cli/windmill-utils-internal/remove-ts-ext.sh diff --git a/cli/add-ts-ext.sh b/cli/add-ts-ext.sh deleted file mode 100755 index 07af4db948..0000000000 --- a/cli/add-ts-ext.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!/usr/bin/env bash - -# Set script to exit on any error -set -e - -# Default to regular sed -REVERT_MODE=false - -# Function to show usage -show_usage() { - echo "Usage: $0 [-r] [-h]" - echo " -r Revert changes (restore from .orig files)" - echo " -h Show this help message" - exit 1 -} - -# Parse command line arguments -while getopts "rh" opt; do - case ${opt} in - r ) - REVERT_MODE=true - ;; - h ) - show_usage - ;; - \? ) - echo "Invalid option: -$OPTARG" >&2 - show_usage - ;; - esac -done - -# Function to add .ts extensions to relative imports -add_ts_extensions() { - echo "Adding .ts extensions to imports..." - find windmill-utils-internal/src -name "*.ts" -type f | while read -r file; do - # Create backup of original - cp "$file" "$file.orig" - - # Add .ts to relative imports that don't already have extensions - sed -E \ - -e 's/(from[[:space:]]+["'"'"'])(\.[^"'"'"']*[^./][^"'"'"']*)(["'"'"'])/\1\2.ts\3/g' \ - -e 's/(import[[:space:]]+["'"'"'])(\.[^"'"'"']*[^./][^"'"'"']*)(["'"'"'])/\1\2.ts\3/g' \ - "$file.orig" > "$file" - done - echo "✓ Added .ts extensions" -} - -# Function to revert to original files -revert_extensions() { - echo "Removing .ts extensions..." - find windmill-utils-internal/src -name "*.orig" -type f | while read -r backup_file; do - original_file="${backup_file%.orig}" - mv "$backup_file" "$original_file" - done - echo "✓ All files reverted" -} - -# Main execution -if [ "$REVERT_MODE" = true ]; then - revert_extensions -else - add_ts_extensions -fi diff --git a/cli/build-mac.sh b/cli/build-mac.sh deleted file mode 100755 index 408ad23252..0000000000 --- a/cli/build-mac.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash - -# Set script to exit on any error -set -e - -# Generate client files -./gen_wm_client-mac.sh - -# Generate utils client files -./windmill-utils-internal/gen_wm_client-mac.sh - -# Set up trap to ensure cleanup happens on exit, error, or interruption -trap 'echo "Cleaning up..."; ./add-ts-ext.sh -r' EXIT ERR INT TERM - -# Add .ts extensions for Deno -./add-ts-ext.sh - -# Run dnt -echo "Running dnt..." -deno run -A dnt.ts - -echo "Build complete!" \ No newline at end of file diff --git a/cli/build.sh b/cli/build.sh index bffdc4208e..0da1c343a3 100755 --- a/cli/build.sh +++ b/cli/build.sh @@ -9,11 +9,8 @@ set -e # Generate utils client files ./windmill-utils-internal/gen_wm_client.sh -# Set up trap to ensure cleanup happens on exit, error, or interruption -trap 'echo "Cleaning up..."; ./add-ts-ext.sh -r' EXIT ERR INT TERM - -# Add .ts extensions for Deno -./add-ts-ext.sh +# Add .ts extensions to windmill-utils-internal +./windmill-utils-internal/remove-ts-ext.sh -r # Run dnt echo "Running dnt..." diff --git a/cli/gen_wm_client-mac.sh b/cli/gen_wm_client-mac.sh deleted file mode 100755 index b25d40a3aa..0000000000 --- a/cli/gen_wm_client-mac.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash -set -eou pipefail -script_dirpath="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" - -# only install gnu-sed if not already installed -if ! command -v gsed &> /dev/null; then - brew install gnu-sed -fi - -rm -rf "${script_dirpath}/gen" - -npx --yes @hey-api/openapi-ts@0.53.1 --input "${script_dirpath}/../backend/windmill-api/openapi.yaml" --output "${script_dirpath}/gen" --useOptions --client legacy/fetch --schemas false -cat < temp_file && mv temp_file gen/core/OpenAPI.ts -const getEnv = (key: string) => { - return Deno.env.get(key) -}; - -const baseUrl = getEnv("BASE_INTERNAL_URL") ?? getEnv("BASE_URL") ?? "http://localhost:8000"; -const baseUrlApi = (baseUrl ?? '') + "/api"; - -EOF -gsed -i 's/WITH_CREDENTIALS: false/WITH_CREDENTIALS: true/g' gen/core/OpenAPI.ts -gsed -i 's/TOKEN: undefined/TOKEN: getEnv("WM_TOKEN")/g' gen/core/OpenAPI.ts -gsed -i "s/BASE: '\/api'/BASE: baseUrlApi/g" gen/core/OpenAPI.ts - -find gen/ -name "*.ts" -exec gsed -i -E "s/(import.*from[[:space:]]*['\"][^'\"]+)(['\"])/\1.ts\2/g" {} \; - -find gen/ -name "*.ts" -exec gsed -i -E "s/(export.*from[[:space:]]*['\"][^'\"]+)(['\"])/\1.ts\2/g" {} \; diff --git a/cli/gen_wm_client.sh b/cli/gen_wm_client.sh index 1b36f489d9..f6e5a5e094 100755 --- a/cli/gen_wm_client.sh +++ b/cli/gen_wm_client.sh @@ -14,10 +14,29 @@ const baseUrl = getEnv("BASE_INTERNAL_URL") ?? getEnv("BASE_URL") ?? "http://loc const baseUrlApi = (baseUrl ?? '') + "/api"; EOF -sed -i 's/WITH_CREDENTIALS: false/WITH_CREDENTIALS: true/g' gen/core/OpenAPI.ts -sed -i 's/TOKEN: undefined/TOKEN: getEnv("WM_TOKEN")/g' gen/core/OpenAPI.ts -sed -i "s/BASE: '\/api'/BASE: baseUrlApi/g" gen/core/OpenAPI.ts -find gen/ -name "*.ts" -exec sed -i -E "s/(import.*from[[:space:]]*['\"][^'\"]+)(['\"])/\1.ts\2/g" {} \; +echo "Applying sed transformations..." +if [[ "$OSTYPE" == "darwin"* ]]; then + echo "Detected macOS - using GNU sed (gsed)" + if ! command -v gsed &> /dev/null; then + echo "Error: gsed not found" + echo "Run: brew install gnu-sed" + exit 1 + fi + gsed -i 's/WITH_CREDENTIALS: false/WITH_CREDENTIALS: true/g' gen/core/OpenAPI.ts + gsed -i 's/TOKEN: undefined/TOKEN: getEnv("WM_TOKEN")/g' gen/core/OpenAPI.ts + gsed -i "s/BASE: '\\/api'/BASE: baseUrlApi/g" gen/core/OpenAPI.ts + + find gen/ -name "*.ts" -exec gsed -i -E "s/(import.*from[[:space:]]*['\"][^'\"]+)(['\"])/\1.ts\2/g" {} \; + find gen/ -name "*.ts" -exec gsed -i -E "s/(export.*from[[:space:]]*['\"][^'\"]+)(['\"])/\1.ts\2/g" {} \; +else + echo "Detected Linux - using GNU sed" + sed -i 's/WITH_CREDENTIALS: false/WITH_CREDENTIALS: true/g' gen/core/OpenAPI.ts + sed -i 's/TOKEN: undefined/TOKEN: getEnv("WM_TOKEN")/g' gen/core/OpenAPI.ts + sed -i "s/BASE: '\\/api'/BASE: baseUrlApi/g" gen/core/OpenAPI.ts + + find gen/ -name "*.ts" -exec sed -i -E "s/(import.*from[[:space:]]*['\"][^'\"]+)(['\"])/\1.ts\2/g" {} \; + find gen/ -name "*.ts" -exec sed -i -E "s/(export.*from[[:space:]]*['\"][^'\"]+)(['\"])/\1.ts\2/g" {} \; +fi -find gen/ -name "*.ts" -exec sed -i -E "s/(export.*from[[:space:]]*['\"][^'\"]+)(['\"])/\1.ts\2/g" {} \; +echo "✓ Client generation completed" \ No newline at end of file diff --git a/cli/windmill-utils-internal/README.md b/cli/windmill-utils-internal/README.md new file mode 100644 index 0000000000..2d60566621 --- /dev/null +++ b/cli/windmill-utils-internal/README.md @@ -0,0 +1,39 @@ +# Windmill Utils Internal + +Internal TypeScript utility package for Windmill development tools and scripts. + +## What this package contains + +This package provides internal utilities and tools used by the Windmill CLI, the VS CODE extension, and the frontend. + +## Development + +To work on this package we need to generate the windmill client, and remove .ts extensions to the imports and exports (added by default for deno compatibility, so that the CLI can use this package). + +You just need to run this before working on the package: + +```bash +npm run dev +``` + +After you are done with your modifications, add back the .ts extensions: + +```bash +./remove-ts-ext.sh -r +``` + +### Building + +To build the package for production: + +```bash +npm run build +``` + +### Publishing + +To publish the package: + +```bash +./publish.sh +``` \ No newline at end of file diff --git a/cli/windmill-utils-internal/gen_wm_client-mac.sh b/cli/windmill-utils-internal/gen_wm_client-mac.sh deleted file mode 100755 index ba0e90c151..0000000000 --- a/cli/windmill-utils-internal/gen_wm_client-mac.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env bash - -# only install gnu-sed if not already installed -if ! command -v gsed &> /dev/null; then - brew install gnu-sed -fi - -script_dirpath="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -output_dirpath="${script_dirpath}/src/gen" - -rm -rf "${output_dirpath}" - -npx --yes @hey-api/openapi-ts@0.53.1 --input "${script_dirpath}/../../backend/windmill-api/openapi.yaml" --output "${output_dirpath}" --useOptions --client legacy/fetch --schemas false -cat < temp_file && mv temp_file "${output_dirpath}/core/OpenAPI.ts" -const getEnv = (key: string) => { - return process.env[key] -}; - -const baseUrl = getEnv("BASE_INTERNAL_URL") ?? getEnv("BASE_URL") ?? "http://localhost:8000"; -const baseUrlApi = (baseUrl ?? '') + "/api"; - -EOF -gsed -i 's/WITH_CREDENTIALS: false/WITH_CREDENTIALS: true/g' "${output_dirpath}/core/OpenAPI.ts" -gsed -i 's/TOKEN: undefined/TOKEN: getEnv("WM_TOKEN")/g' "${output_dirpath}/core/OpenAPI.ts" -gsed -i "s/BASE: '\/api'/BASE: baseUrlApi/g" "${output_dirpath}/core/OpenAPI.ts" diff --git a/cli/windmill-utils-internal/gen_wm_client.sh b/cli/windmill-utils-internal/gen_wm_client.sh index e504c2da96..63ff42fefd 100755 --- a/cli/windmill-utils-internal/gen_wm_client.sh +++ b/cli/windmill-utils-internal/gen_wm_client.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash +# Set script to exit on any error +set -e + script_dirpath="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" output_dirpath="${script_dirpath}/src/gen" @@ -15,6 +18,23 @@ const baseUrl = getEnv("BASE_INTERNAL_URL") ?? getEnv("BASE_URL") ?? "http://loc const baseUrlApi = (baseUrl ?? '') + "/api"; EOF -sed -i 's/WITH_CREDENTIALS: false/WITH_CREDENTIALS: true/g' "${output_dirpath}/core/OpenAPI.ts" -sed -i 's/TOKEN: undefined/TOKEN: getEnv("WM_TOKEN")/g' "${output_dirpath}/core/OpenAPI.ts" -sed -i "s/BASE: '\/api'/BASE: baseUrlApi/g" "${output_dirpath}/core/OpenAPI.ts" + +echo "Applying sed transformations..." +if [[ "$OSTYPE" == "darwin"* ]]; then + echo "Detected macOS - using GNU sed (gsed)" + if ! command -v gsed &> /dev/null; then + echo "Error: gsed not found" + echo "Run: brew install gnu-sed" + exit 1 + fi + gsed -i 's/WITH_CREDENTIALS: false/WITH_CREDENTIALS: true/g' "${output_dirpath}/core/OpenAPI.ts" + gsed -i 's/TOKEN: undefined/TOKEN: getEnv("WM_TOKEN")/g' "${output_dirpath}/core/OpenAPI.ts" + gsed -i "s/BASE: '\\/api'/BASE: baseUrlApi/g" "${output_dirpath}/core/OpenAPI.ts" +else + echo "Detected Linux - using GNU sed" + sed -i 's/WITH_CREDENTIALS: false/WITH_CREDENTIALS: true/g' "${output_dirpath}/core/OpenAPI.ts" + sed -i 's/TOKEN: undefined/TOKEN: getEnv("WM_TOKEN")/g' "${output_dirpath}/core/OpenAPI.ts" + sed -i "s/BASE: '\\/api'/BASE: baseUrlApi/g" "${output_dirpath}/core/OpenAPI.ts" +fi + +echo "✓ Client generation completed" \ No newline at end of file diff --git a/cli/windmill-utils-internal/package-lock.json b/cli/windmill-utils-internal/package-lock.json index 19a2425d76..72bb67e2e7 100644 --- a/cli/windmill-utils-internal/package-lock.json +++ b/cli/windmill-utils-internal/package-lock.json @@ -9,18 +9,18 @@ "version": "1.0.0", "license": "Apache 2.0", "devDependencies": { - "@types/node": "^24.1.0", + "@types/node": "^24.2.0", "typescript": "^5.0.0" } }, "node_modules/@types/node": { - "version": "24.1.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-24.1.0.tgz", - "integrity": "sha512-ut5FthK5moxFKH2T1CUOC6ctR67rQRvvHdFLCD2Ql6KXmMuCrjsSsRI9UsLCm9M18BMwClv4pn327UvB7eeO1w==", + "version": "24.2.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.2.0.tgz", + "integrity": "sha512-3xyG3pMCq3oYCNg7/ZP+E1ooTaGB4cG8JWRsqqOYQdbWNY4zbaV0Ennrd7stjiJEFZCaybcIgpTjJWHRfBSIDw==", "dev": true, "license": "MIT", "dependencies": { - "undici-types": "~7.8.0" + "undici-types": "~7.10.0" } }, "node_modules/typescript": { @@ -38,9 +38,9 @@ } }, "node_modules/undici-types": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.8.0.tgz", - "integrity": "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==", + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.10.0.tgz", + "integrity": "sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==", "dev": true, "license": "MIT" } diff --git a/cli/windmill-utils-internal/package.json b/cli/windmill-utils-internal/package.json index eaa9823d6b..68a7f40104 100644 --- a/cli/windmill-utils-internal/package.json +++ b/cli/windmill-utils-internal/package.json @@ -5,8 +5,8 @@ "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { - "build": "./gen_wm_client.sh && tsc", - "build-mac": "./gen_wm_client-mac.sh && tsc", + "dev": "./gen_wm_client.sh && ./remove-ts-ext.sh", + "build": "./gen_wm_client.sh && ./remove-ts-ext.sh && tsc", "prepublishOnly": "npm run build" }, "keywords": [ @@ -15,10 +15,10 @@ "author": "Ruben Fiszel", "license": "Apache 2.0", "devDependencies": { - "@types/node": "^24.1.0", + "@types/node": "^24.2.0", "typescript": "^5.0.0" }, "files": [ "dist/**/*" ] -} \ No newline at end of file +} diff --git a/cli/windmill-utils-internal/remove-ts-ext.sh b/cli/windmill-utils-internal/remove-ts-ext.sh new file mode 100755 index 0000000000..8b5390b73e --- /dev/null +++ b/cli/windmill-utils-internal/remove-ts-ext.sh @@ -0,0 +1,54 @@ +#!/usr/bin/env bash + +# Set script to exit on any error +set -e +script_dirpath="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +# Parse command line arguments +RESTORE_MODE=false +while [[ $# -gt 0 ]]; do + case $1 in + -r) + RESTORE_MODE=true + shift + ;; + *) + echo "Unknown option: $1" + echo "Usage: $0 [-r]" + echo " -r Restore .ts extensions to imports/exports" + exit 1 + ;; + esac +done + +if [[ "$RESTORE_MODE" == true ]]; then + echo "Adding .ts extensions to imports..." + # Only add .ts if the path doesn't already end with .ts or / + REGEX='/\.ts["'\'']/! s/(from|import)[[:space:]]+["'\'']([^"'\'']*[^/])(["'\''])/\1 "\2.ts\3/g' + SUCCESS_MSG="✓ All .ts extensions added to import/export statements" +else + echo "Removing .ts extensions from imports..." + REGEX='s/(from|import)[[:space:]]+["'\'']([^"'\'']*?)\.ts(["'\''])/\1 "\2\3/g' + SUCCESS_MSG="✓ All .ts extensions removed from import/export statements" +fi + +if [[ "$OSTYPE" == "darwin"* ]]; then + echo "Detected macOS - using GNU sed (gsed)" + if ! command -v gsed &> /dev/null; then + echo "Error: gsed not found" + echo "Run: brew install gnu-sed" + exit 1 + fi +else + echo "Detected Linux - using GNU sed" +fi + +find "$script_dirpath"/src -name "*.ts" -type f | while read -r file; do + if [[ "$OSTYPE" == "darwin"* ]]; then + gsed -E -i "$REGEX" "$file" + else + sed -E -i "$REGEX" "$file" + fi +done + +echo "$SUCCESS_MSG" \ No newline at end of file diff --git a/cli/windmill-utils-internal/src/config/index.ts b/cli/windmill-utils-internal/src/config/index.ts index e23ba6ca86..f3ae42b3c8 100644 --- a/cli/windmill-utils-internal/src/config/index.ts +++ b/cli/windmill-utils-internal/src/config/index.ts @@ -1 +1 @@ -export * from "./config"; \ No newline at end of file +export * from "./config.ts"; \ No newline at end of file diff --git a/cli/windmill-utils-internal/src/index.ts b/cli/windmill-utils-internal/src/index.ts index da314a7c5a..635893e2d1 100644 --- a/cli/windmill-utils-internal/src/index.ts +++ b/cli/windmill-utils-internal/src/index.ts @@ -8,8 +8,8 @@ * - Cross-platform path constants */ -export * from "./inline-scripts"; -export * from "./path-utils"; -export * from "./parse"; -export * from "./config"; -export { SEP, DELIMITER } from "./constants"; \ No newline at end of file +export * from "./inline-scripts.ts"; +export * from "./path-utils.ts"; +export * from "./parse.ts"; +export * from "./config.ts"; +export { SEP, DELIMITER } from "./constants.ts"; \ No newline at end of file diff --git a/cli/windmill-utils-internal/src/inline-scripts/extractor.ts b/cli/windmill-utils-internal/src/inline-scripts/extractor.ts index b64e7ca789..be2d33c0de 100644 --- a/cli/windmill-utils-internal/src/inline-scripts/extractor.ts +++ b/cli/windmill-utils-internal/src/inline-scripts/extractor.ts @@ -1,5 +1,5 @@ -import { newPathAssigner } from "../path-utils/path-assigner"; -import { FlowModule } from "../gen/types.gen"; +import { newPathAssigner } from "../path-utils/path-assigner.ts"; +import { FlowModule } from "../gen/types.gen.ts"; /** * Represents an inline script extracted from a flow module diff --git a/cli/windmill-utils-internal/src/inline-scripts/index.ts b/cli/windmill-utils-internal/src/inline-scripts/index.ts index eace8d3e4f..bb3c917dbb 100644 --- a/cli/windmill-utils-internal/src/inline-scripts/index.ts +++ b/cli/windmill-utils-internal/src/inline-scripts/index.ts @@ -1,2 +1,2 @@ -export * from "./replacer"; -export * from "./extractor"; \ No newline at end of file +export * from "./replacer.ts"; +export * from "./extractor.ts"; \ No newline at end of file diff --git a/cli/windmill-utils-internal/src/inline-scripts/replacer.ts b/cli/windmill-utils-internal/src/inline-scripts/replacer.ts index be349785c7..9ec25e9f65 100644 --- a/cli/windmill-utils-internal/src/inline-scripts/replacer.ts +++ b/cli/windmill-utils-internal/src/inline-scripts/replacer.ts @@ -1,4 +1,4 @@ -import { FlowModule } from "../gen/types.gen"; +import { FlowModule } from "../gen/types.gen.ts"; /** * Replaces inline script references with actual file content from the filesystem. diff --git a/cli/windmill-utils-internal/src/parse/index.ts b/cli/windmill-utils-internal/src/parse/index.ts index fc26ce611a..41d09ed00d 100644 --- a/cli/windmill-utils-internal/src/parse/index.ts +++ b/cli/windmill-utils-internal/src/parse/index.ts @@ -1 +1 @@ -export * from "./parse-schema"; \ No newline at end of file +export * from "./parse-schema.ts"; \ No newline at end of file diff --git a/cli/windmill-utils-internal/src/path-utils/index.ts b/cli/windmill-utils-internal/src/path-utils/index.ts index ef23185664..6f5c8d68be 100644 --- a/cli/windmill-utils-internal/src/path-utils/index.ts +++ b/cli/windmill-utils-internal/src/path-utils/index.ts @@ -1 +1 @@ -export * from "./path-assigner"; \ No newline at end of file +export * from "./path-assigner.ts"; \ No newline at end of file diff --git a/cli/windmill-utils-internal/src/path-utils/path-assigner.ts b/cli/windmill-utils-internal/src/path-utils/path-assigner.ts index 9020974214..d1a79a3a32 100644 --- a/cli/windmill-utils-internal/src/path-utils/path-assigner.ts +++ b/cli/windmill-utils-internal/src/path-utils/path-assigner.ts @@ -1,4 +1,4 @@ -import { RawScript } from "../gen/types.gen"; +import { RawScript } from "../gen/types.gen.ts"; const INLINE_SCRIPT_PREFIX = "inline_script";