Kaspar
Kaspar7mo ago

Syncing a whole existing folder with scripts and shared logic

I want to take a folder (from a non-Windmill project) with index.ts, package.json and a bunch of *.ts files, and sync it to Windmill into a folder, so I could automate it on the Windmill Cloud side. I'm getting errors akin to: 1.) ... *.ts invalid, it cannot be parsed to infer schema. 2.) ... *.script.yaml: Error: Failed to generate lockfile. Status was: Internal Server Error, timeout after 20s, SyntaxError: Unexpected token 'i', "timeout after 20s" is not valid JSON Even though the script files are quite innocuous. Is this a reasonable thing to do? Any pointers to where I could be going wrong?
2 Replies
Kaspar
Kaspar7mo ago
I'll try to copy-paste and create the same scenario on Windmill by copy-pasting the same structure and see if it's a problem with the CLI sync or actually with the scripts I decided it’s better to just package “the folder” into an NPM package and consume that from Windmill side
rubenf
rubenf7mo ago
Yes, but we will soon introduce the concept of codebases that should simplify this (EE)