Description
Bug Report or Feature Request (mark with an x
)
- [x] bug report -> please search issues before submitting
- [ ] feature request
Area
- [x] devkit
- [ ] schematics
Versions
@angular/cli@6.1.0-beta.0 - not working
@angular/cli@6.0.8 - works OK
Repro steps
run the following commands
with @angular/cli@6.0.8
ng new proj608
cd proj608
ng add @nativescript/schematics
with @angular/cli@6.1.0-beta.0
ng new proj610
cd proj610
ng add @nativescript/schematics
The proj608, will contain the App_Resources
folder with a bunch of files
The proj610, will be missing the App_Resources
folder.
The code that calls App_Resources
is located here:
https://github.com/NativeScript/nativescript-schematics/blob/master/src/add-ns/index.ts#L130-L135
Which then calls this simple schematic:
https://github.com/NativeScript/nativescript-schematics/blob/master/src/app-resources/index.ts
I have a feeling that the last mergeWith
that executes in the schematics chain erases all the previous ones:
https://github.com/NativeScript/nativescript-schematics/blob/master/src/add-ns/index.ts#L199