Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 7c96a3f

Browse files
filipesilvaBrocco
authored andcommitted
fix(@schematics/angular): use join for sourceRoot
It was using '/src' for the base new project.
1 parent 99b3ca9 commit 7c96a3f

File tree

1 file changed

+1
-1
lines changed
  • packages/schematics/angular/application

1 file changed

+1
-1
lines changed

packages/schematics/angular/application/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function addAppToWorkspaceFile(options: ApplicationOptions, workspace: Workspace
137137

138138
const project: WorkspaceProject = {
139139
root: projectRoot,
140-
sourceRoot: `${projectRoot}/src`,
140+
sourceRoot: join(normalize(projectRoot), 'src'),
141141
projectType: 'application',
142142
prefix: options.prefix || 'app',
143143
schematics,

0 commit comments

Comments
 (0)