Skip to content

Commit 9907542

Browse files
alan-agius4dgp1130
authored andcommitted
fix(@angular-devkit/schematics-cli): provide resolvePaths to NodeWorkflow
Closes #17067 (cherry picked from commit 111e9cc)
1 parent 2d84c9d commit 9907542

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/angular_devkit/schematics_cli/bin/schematics.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,13 @@ export async function main({
164164
const registry = new schema.CoreSchemaRegistry(formats.standardFormats);
165165

166166
/** Create the workflow that will be executed with this run. */
167-
const workflow = new NodeWorkflow(fsHost, { force, dryRun, registry });
167+
const workflow = new NodeWorkflow(fsHost, {
168+
force,
169+
dryRun,
170+
registry,
171+
resolvePaths: [process.cwd(), __dirname],
172+
});
173+
168174
registry.addPostTransform(schema.transforms.addUndefinedDefaults);
169175
workflow.engineHost.registerOptionsTransform(validateOptionsWithSchema(registry));
170176

0 commit comments

Comments
 (0)