diff --git a/change/change-5bc46cd9-d053-4ee9-a42a-2ee5c5c0fd03.json b/change/change-5bc46cd9-d053-4ee9-a42a-2ee5c5c0fd03.json new file mode 100644 index 00000000..8c53a7f1 --- /dev/null +++ b/change/change-5bc46cd9-d053-4ee9-a42a-2ee5c5c0fd03.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "type": "minor", + "comment": "Add extra info to lage info: inputs, outputs, weight and options for #815", + "packageName": "@lage-run/cli", + "email": "dannyvv@microsoft.com", + "dependentChangeType": "patch" + } + ] +} \ No newline at end of file diff --git a/packages/cli/src/commands/info/action.ts b/packages/cli/src/commands/info/action.ts index 0775e707..20866b93 100644 --- a/packages/cli/src/commands/info/action.ts +++ b/packages/cli/src/commands/info/action.ts @@ -37,6 +37,10 @@ interface PackageTask { workingDirectory: string; package: string; task: string; + inputs?: string[]; + outputs?: string[]; + options?: Record; + weight?: number; } /** @@ -61,7 +65,10 @@ interface PackageTask { * "workingDirectory": "packages/foo", * "dependencies": [ * "bar##build" - * ] + * ], + * "weight": 3, + * "inputs": ["src//**/ /*.ts"], + * "inputs": ["lib//**/ /*.js", "lib//**/ /*.d.ts]" * }, * { * "id": "foo##test", @@ -153,6 +160,10 @@ function generatePackageTask( workingDirectory, package: target.packageName ?? "", task: target.task, + inputs: target.inputs, + outputs: target.outputs, + options: target.options, + weight: target.weight, }; return packageTask;