diff --git a/app/worker/justfile b/app/worker/justfile index 583d9bcf..94cd655e 100644 --- a/app/worker/justfile +++ b/app/worker/justfile @@ -32,6 +32,11 @@ deploy: _ensure_deployctl cp -rL src deploy/ cp -r deno.json deploy/ cd deploy + # deploy deploy is on an older version of deno which does not support + # the "sloppy-imports" flag + # So jump through some hoops to convert the imports + find src/lib -type f -name '*.ts' -exec sd -s ".js'" ".ts'" {} + + find src/lib -type f -name '*.ts' -exec sd -s '.js"' '.ts"' {} + deno task build deployctl deploy --project=metapage-module --prod --entrypoint src/main.ts