From 927ddf2b31893047adf1df533cbe5ef2d7682622 Mon Sep 17 00:00:00 2001 From: Aaron Chambers Date: Fri, 10 Nov 2023 15:43:19 +0000 Subject: [PATCH 1/2] Add docs for shouldTransformTypescript blueprint property --- guides/advanced-use/blueprints.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/guides/advanced-use/blueprints.md b/guides/advanced-use/blueprints.md index 9e1d6fe..154a1ae 100644 --- a/guides/advanced-use/blueprints.md +++ b/guides/advanced-use/blueprints.md @@ -163,6 +163,14 @@ ember generate module.exports = { description: "Generates a foo", + /* + * Indicates whether or not a blueprint is a candidate for automatic transpilation from TS to JS. + * This property could be `false` in the case that the blueprint is written in JS and is not intended + * to work with TS at all, OR in the case that the blueprint is written in TS and the author does + * not intend to support transpilation to JS. + */ + shouldTransformTypeScript: true + availableOptions: [ { name: "type", From a866d644111b9c1df60cad10fe27169e45c46184 Mon Sep 17 00:00:00 2001 From: Aaron Chambers Date: Fri, 10 Nov 2023 15:50:59 +0000 Subject: [PATCH 2/2] Update blueprints.md --- guides/advanced-use/blueprints.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/advanced-use/blueprints.md b/guides/advanced-use/blueprints.md index 154a1ae..06c3331 100644 --- a/guides/advanced-use/blueprints.md +++ b/guides/advanced-use/blueprints.md @@ -169,7 +169,7 @@ module.exports = { * to work with TS at all, OR in the case that the blueprint is written in TS and the author does * not intend to support transpilation to JS. */ - shouldTransformTypeScript: true + shouldTransformTypeScript: true, availableOptions: [ {