-
Notifications
You must be signed in to change notification settings - Fork 12k
Regression: ng-add @nativescript/schematics doesn't work with @angular/[email protected] or -beta.2 #11174
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/[email protected] - not working
@angular/[email protected] - works OK
Repro steps
run the following commands
with @angular/[email protected]
ng new proj608
cd proj608
ng add @nativescript/schematics
with @angular/[email protected]
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