indicate the option that has been deprecated in warning

Signed-off-by: Brian Fletcher <brian@roadie.io>
This commit is contained in:
Brian Fletcher
2023-07-10 13:22:34 +01:00
parent 823bf5235e
commit 600be80492
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder-backend': patch
---
Indicate the name of the option that is being deprecated in task deprecation warning.
@@ -150,7 +150,7 @@ export function createFetchTemplateAction(options: {
let renderFilename: boolean;
if (ctx.input.copyWithoutRender) {
ctx.logger.warn(
'[Deprecated] Please use copyWithoutTemplating instead.',
'[Deprecated] copyWithoutRender is deprecated Please use copyWithoutTemplating instead.',
);
copyOnlyPatterns = ctx.input.copyWithoutRender;
renderFilename = false;