Skip to content

Commit

Permalink
fix(nativescript): feature component path adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanWalker committed Feb 24, 2021
1 parent 3607950 commit 4746f9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component } from '@angular/core';

<% if (onlyProject || !createBase) { %>import { BaseComponent } from '@<%= npmScope %>/core';<%
} else { %>import { <%= utils.classify(name) %>BaseComponent } from '@<%= npmScope %>/features';<% } %>
<% if (onlyProject || !createBase) { %>import { BaseComponent } from '@<%= npmScope %>/xplat/core';<%
} else { %>import { <%= utils.classify(name) %>BaseComponent } from '@<%= npmScope %>/xplat/features';<% } %>

@Component({
moduleId: module.id,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';<% if (!onlyModule && onlyProject && routing) { %>
import { Routes } from '@angular/router';
import { NativeScriptRouterModule } from '@nativescript/angular';<% } %>
<% if (!onlyProject) { %>import { <%= utils.classify(name) %>Module as Shared<%= utils.classify(name) %>Module } from '@<%= npmScope %>/features';<% } if (onlyProject) { %>
<% if (!onlyProject) { %>import { <%= utils.classify(name) %>Module as Shared<%= utils.classify(name) %>Module } from '@<%= npmScope %>/xplat/features';<% } if (onlyProject) { %>
import { SharedModule } from '../shared/shared.module';<% } else { %>
import { UIModule } from '../ui/ui.module';<% } if (!onlyModule) { %>
import { <%= utils.sanitize(name).toUpperCase() %>_COMPONENTS<% if (onlyProject && routing) { %>, <%= utils.classify(name) %>Component<% } %> } from './components';
Expand Down

0 comments on commit 4746f9b

Please sign in to comment.