What's going on?
ignite generate model *-store adds the wrong path to root-store.ts
Steps to reproduce
run ignite generate model example-store
observe root-store.ts has the new store included, but the path is import { ExampleStore } from "../../models/example-store" when it should be import { ExampleStore } from "../example-store/example-store"
ignite doctor results:
System
platform darwin
arch x64
cpu 8 cores Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
directory mobile-app /Users/joshuasaunders/projects/mobile-app
JavaScript
node 12.12.0 /usr/local/bin/node
npm 6.13.4 /usr/local/bin/npm
yarn - not installed
Ignite
ignite-cli 3.5.1 /usr/local/bin/ignite
ignite src build /usr/local/lib/node_modules/ignite-cli/build
navigation react-navigation
generators {"component":"ignite-bowser","model":"ignite-bowser","navigator":"ignite-bowser","screen":"ignite-bowser"}
createdWith 3.5.1
boilerplate ignite-bowser
boilerplateVersion 5.1.0
Android
java 11.0.5 /usr/bin/java
android home - undefined
iOS
xcode 11.4.1
cocoapods 1.9.1
What's going on?
ignite generate model *-store
adds the wrong path toroot-store.ts
Steps to reproduce
ignite generate model example-store
root-store.ts
has the new store included, but the path isimport { ExampleStore } from "../../models/example-store"
when it should beimport { ExampleStore } from "../example-store/example-store"
ignite doctor
results: