From 95263a6de11fa00ed442bed1139043085189d1f8 Mon Sep 17 00:00:00 2001 From: Bert De Block Date: Mon, 9 Dec 2024 14:07:31 +0100 Subject: [PATCH] Only transform TS when a blueprint can actually emit TS files --- blueprints/-addon-import.js | 9 --------- blueprints/component-addon/index.js | 9 --------- blueprints/component-class-addon/index.js | 9 --------- .../files/__root__/__path__/{__name__.ts => __name__.js} | 0 .../files/__root__/__path__/{__name__.ts => __name__.js} | 0 blueprints/route-addon/index.js | 9 --------- 6 files changed, 36 deletions(-) rename blueprints/initializer-addon/files/__root__/__path__/{__name__.ts => __name__.js} (100%) rename blueprints/instance-initializer-addon/files/__root__/__path__/{__name__.ts => __name__.js} (100%) diff --git a/blueprints/-addon-import.js b/blueprints/-addon-import.js index e648f276598..27cf4f7f6fa 100644 --- a/blueprints/-addon-import.js +++ b/blueprints/-addon-import.js @@ -4,18 +4,9 @@ const stringUtil = require('ember-cli-string-utils'); const path = require('path'); const inflector = require('inflection'); -const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill'); - module.exports = { description: 'Generates an import wrapper.', - shouldTransformTypeScript: true, - - init() { - this._super && this._super.init.apply(this, arguments); - typescriptBlueprintPolyfill(this); - }, - fileMapTokens: function () { return { __name__: function (options) { diff --git a/blueprints/component-addon/index.js b/blueprints/component-addon/index.js index 96f29f22385..36d34589cb3 100644 --- a/blueprints/component-addon/index.js +++ b/blueprints/component-addon/index.js @@ -5,18 +5,9 @@ const stringUtil = require('ember-cli-string-utils'); const getPathOption = require('ember-cli-get-component-path-option'); const normalizeEntityName = require('ember-cli-normalize-entity-name'); -const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill'); - module.exports = { description: 'Generates a component.', - shouldTransformTypeScript: true, - - init() { - this._super && this._super.init.apply(this, arguments); - typescriptBlueprintPolyfill(this); - }, - fileMapTokens: function () { return { __path__: function (options) { diff --git a/blueprints/component-class-addon/index.js b/blueprints/component-class-addon/index.js index 74dfb838092..1ec2bbb5288 100644 --- a/blueprints/component-class-addon/index.js +++ b/blueprints/component-class-addon/index.js @@ -5,18 +5,9 @@ const stringUtil = require('ember-cli-string-utils'); const getPathOption = require('ember-cli-get-component-path-option'); const normalizeEntityName = require('ember-cli-normalize-entity-name'); -const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill'); - module.exports = { description: 'Generates a component class.', - shouldTransformTypeScript: true, - - init() { - this._super && this._super.init.apply(this, arguments); - typescriptBlueprintPolyfill(this); - }, - fileMapTokens: function () { return { __path__: function (options) { diff --git a/blueprints/initializer-addon/files/__root__/__path__/__name__.ts b/blueprints/initializer-addon/files/__root__/__path__/__name__.js similarity index 100% rename from blueprints/initializer-addon/files/__root__/__path__/__name__.ts rename to blueprints/initializer-addon/files/__root__/__path__/__name__.js diff --git a/blueprints/instance-initializer-addon/files/__root__/__path__/__name__.ts b/blueprints/instance-initializer-addon/files/__root__/__path__/__name__.js similarity index 100% rename from blueprints/instance-initializer-addon/files/__root__/__path__/__name__.ts rename to blueprints/instance-initializer-addon/files/__root__/__path__/__name__.js diff --git a/blueprints/route-addon/index.js b/blueprints/route-addon/index.js index be2e63c759a..f88a316f49a 100644 --- a/blueprints/route-addon/index.js +++ b/blueprints/route-addon/index.js @@ -4,18 +4,9 @@ const path = require('path'); const stringUtil = require('ember-cli-string-utils'); const inflector = require('inflection'); -const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill'); - module.exports = { description: 'Generates import wrappers for a route and its template.', - shouldTransformTypeScript: true, - - init() { - this._super && this._super.init.apply(this, arguments); - typescriptBlueprintPolyfill(this); - }, - fileMapTokens: function () { return { __templatepath__: function (options) {