Skip to content

Commit

Permalink
fix(@angular-devkit/schematics-cli): provide resolvePaths to NodeWork…
Browse files Browse the repository at this point in the history
…flow

Closes #17067

(cherry picked from commit 111e9cc)
  • Loading branch information
alan-agius4 authored and dgp1130 committed Feb 25, 2020
1 parent 2d84c9d commit 9907542
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/angular_devkit/schematics_cli/bin/schematics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,13 @@ export async function main({
const registry = new schema.CoreSchemaRegistry(formats.standardFormats);

/** Create the workflow that will be executed with this run. */
const workflow = new NodeWorkflow(fsHost, { force, dryRun, registry });
const workflow = new NodeWorkflow(fsHost, {
force,
dryRun,
registry,
resolvePaths: [process.cwd(), __dirname],
});

registry.addPostTransform(schema.transforms.addUndefinedDefaults);
workflow.engineHost.registerOptionsTransform(validateOptionsWithSchema(registry));

Expand Down

0 comments on commit 9907542

Please sign in to comment.