@ixon-cdk/core 1.13.0 → 1.14.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixon-cdk/core",
3
- "version": "1.13.0",
3
+ "version": "1.14.0-next.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "",
@@ -219,7 +219,7 @@ module.exports = class TemplateService {
219
219
  name: componentName,
220
220
  tag: this._getTag(componentPrefix, componentName),
221
221
  };
222
- let variantIdx = null;
222
+ let variantIdx = -1;
223
223
 
224
224
  if (schema.variants) {
225
225
  if (variantName) {
@@ -260,7 +260,7 @@ module.exports = class TemplateService {
260
260
 
261
261
  // optionally install types
262
262
  if (
263
- variantIdx !== null &&
263
+ variantIdx >= 0 &&
264
264
  /typescript/i.test(schema.variants[variantIdx].name)
265
265
  ) {
266
266
  ensureModule('@ixon-cdk/types');
@@ -277,7 +277,7 @@ module.exports = class TemplateService {
277
277
  ensureModule(name, schema.devDependencies[name]),
278
278
  );
279
279
  }
280
- if (variantIdx !== null) {
280
+ if (variantIdx >= 0) {
281
281
  const deps = schema.variants[variantIdx].dependencies;
282
282
  const devDeps = schema.variants[variantIdx].devDependencies;
283
283
  if (deps) {
@@ -299,7 +299,7 @@ module.exports = class TemplateService {
299
299
  this.createFile(file, context);
300
300
  });
301
301
 
302
- if (variantIdx !== null) {
302
+ if (variantIdx >= 0) {
303
303
  schema.variants[variantIdx].files.forEach(file => {
304
304
  file.dest = `${componentRoot}/${componentName}/${file.dest}`;
305
305
  this.createFile(file, context);