Closed
Description
Versions
Before
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 6.0.1
Node: 8.11.1
OS: linux x64
Angular:
...
Package Version
------------------------------------------------------
@angular-devkit/architect 0.6.1
@angular-devkit/core 0.6.1
@angular-devkit/schematics 0.6.1
@schematics/angular 0.6.1
@schematics/update 0.6.1
rxjs 6.2.0
typescript 2.7.2
After
jason@Jason-PC-U:~/projects/work/temp$ ng -v
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 6.0.5
Node: 8.11.1
OS: linux x64
Angular:
...
Package Version
------------------------------------------------------
@angular-devkit/architect 0.6.5
@angular-devkit/core 0.6.5
@angular-devkit/schematics 0.6.5
@schematics/angular 0.6.5
@schematics/update 0.6.5
rxjs 6.2.0
typescript 2.7.2
This happened in 6.0.3
Observed behavior
When creating a new project with a specified collection, the options of type path now defaults to '/'
.
sudo npm i @angular/[email protected] -g
sudo npm i @ngrx/schematics -g # Separate Issue
sudo npm i @nrwl/schematics -g
ng new workspace --collection @nrwl/schematics
CREATE .prettierrc
... everything is created in the current working directory 👎
Desired behavior
When creating a new project with a specified collection, the options of type path used to default to empty string.
sudo npm i @angular/[email protected] -g
sudo npm i @ngrx/schematics -g # Separate Issue
sudo npm i @nrwl/schematics -g
ng new workspace --collection @nrwl/schematics
CREATE workspace/.prettierrc
... everything is created in the workspace directory 👍
Mention any other details that might be useful (optional)
This is the collection.json
"ng-new": {
"factory": "./collection/ng-new",
"schema": "./collection/ng-new/schema.json",
"description": "Create an empty workspace"
},