"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/schematics/angular/utility/workspace.ts" between
angular-cli-12.0.3.tar.gz and angular-cli-12.0.4.tar.gz

About: Angular CLI is a command line interface for Angular.

workspace.ts  (angular-cli-12.0.3):workspace.ts  (angular-cli-12.0.4)
skipping to change at line 88 skipping to change at line 88
const projectDirName = const projectDirName =
project.extensions['projectType'] === ProjectType.Application ? 'app' : 'lib '; project.extensions['projectType'] === ProjectType.Application ? 'app' : 'lib ';
return `${root}${projectDirName}`; return `${root}${projectDirName}`;
} }
export async function createDefaultPath(tree: Tree, projectName: string): Promis e<string> { export async function createDefaultPath(tree: Tree, projectName: string): Promis e<string> {
const workspace = await getWorkspace(tree); const workspace = await getWorkspace(tree);
const project = workspace.projects.get(projectName); const project = workspace.projects.get(projectName);
if (!project) { if (!project) {
throw new Error('Specified project does not exist.'); throw new Error(`Project "${projectName}" does not exist.`);
} }
return buildDefaultPath(project); return buildDefaultPath(project);
} }
export function* allWorkspaceTargets( export function* allWorkspaceTargets(
workspace: workspaces.WorkspaceDefinition, workspace: workspaces.WorkspaceDefinition,
): Iterable<[string, workspaces.TargetDefinition, string, workspaces.ProjectDefi nition]> { ): Iterable<[string, workspaces.TargetDefinition, string, workspaces.ProjectDefi nition]> {
for (const [projectName, project] of workspace.projects) { for (const [projectName, project] of workspace.projects) {
for (const [targetName, target] of project.targets) { for (const [targetName, target] of project.targets) {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)