everything is in the title ! But here's more details. I'm currently developing a schematics which will create a complete angular project including a library.
I'm using externalSchematic to do it:
const rule: Rule = chain([
externalSchematic('@schematics/angular', 'ng-new', workspaceOptions),
externalSchematic('@schematics/angular', 'library', libraryOptions),
sourceParametrizedTemplates
]);
However, I get an error message when I try to create the library:
Message: Error: Unable to determine format for workspace path. Stack: Error: Unable to determine format for workspace path. at Object.readWorkspace (C:\Users\XXXX\Documents\Dev\FWK_INDUS\sources\Angular\FWK.WEB.Schematics\node_modules@angular-devkit\core\src\workspace\core.js:84:15) at async Object.getWorkspace (C:\Users\XXXX\Documents\Dev\FWK_INDUS\sources\Angular\FWK.WEB.Schematics\node_modules@schematics\angular\utility\workspace.js:51:27) at async C:\Users\XXXX\Documents\Dev\FWK_INDUS\sources\Angular\FWK.WEB.Schematics\node_modules@schematics\angular\library\index.js:147:27
I assume that I'm creating a new project in a directory and when I try to add the library I'm not inside the directory so schematic is unable to find an angular workspace.
So I'm trying to find a way to specify the path of the new project that I've just created...
If someone know how to do this...
Thanks!