diff --git a/packages/angular_devkit/schematics_cli/bin/schematics.ts b/packages/angular_devkit/schematics_cli/bin/schematics.ts index 18ecd12dfb39..7457f8dddafe 100644 --- a/packages/angular_devkit/schematics_cli/bin/schematics.ts +++ b/packages/angular_devkit/schematics_cli/bin/schematics.ts @@ -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));