Skip to content

Commit

Permalink
Only transform TS when a blueprint can actually emit TS files
Browse files Browse the repository at this point in the history
  • Loading branch information
bertdeblock committed Dec 9, 2024
1 parent 693bfdb commit 95263a6
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 36 deletions.
9 changes: 0 additions & 9 deletions blueprints/-addon-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
9 changes: 0 additions & 9 deletions blueprints/component-addon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
9 changes: 0 additions & 9 deletions blueprints/component-class-addon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
9 changes: 0 additions & 9 deletions blueprints/route-addon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 95263a6

Please sign in to comment.