I've added the argument decorator:
public build(@argument({ defaultPath: "../../" }) source: Directory): Container {
And started getting this error:
▼ asModule getModDef 9.5s ERROR
node:internal/process/promises:394
triggerUncaughtException(err, true /* fromPromise */);
^
Error [TransformError]: Transform failed with 1 error:
/src/apps/dagger/src/index.ts:8:15: ERROR: Parameter decorators only work when experimental decorators are enabled
at failureErrorWithLog (/usr/local/lib/node_modules/tsx/node_modules/esbuild/lib/main.js:1472:15)
The tsconfig.json has experimentalDecorators set to true.
Thanks.