WEB-47394 WEB-43188 WEB-37193 Fix issue with Angular schematics not showing up and...
authorPiotr Tomiak <piotr.tomiak@jetbrains.com>
Thu, 24 Sep 2020 11:25:25 +0000 (13:25 +0200)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Thu, 24 Sep 2020 11:30:35 +0000 (11:30 +0000)
GitOrigin-RevId: 90934c0a03e6d7199f2f716751f17f1c84a013fa

AngularJS/gen/ngCli/schematicsProvider90.js
AngularJS/src/ngCli/schematicsProvider90.ts

index 7e7bb427854c9baa23a86afede4f9989364d6338..6ca90a2c5c24602a020da9fd111e0f61f38af73e 100644 (file)
@@ -1,8 +1,8 @@
 "use strict";
 const schematic_command_1 = require("@angular/cli/models/schematic-command");
-const config_1 = require("@angular/cli/utilities/config");
+const project_1 = require("@angular/cli/utilities/project");
 const schematicsProvider = (async function () {
-    let workspace = await config_1.getWorkspace('local');
+    let workspace = await project_1.getWorkspaceDetails();
     let command = new schematic_command_1.SchematicCommand({ workspace: workspace }, null, null);
     let { listSchematicNames } = (await command.createWorkflow({ interactive: false })).engineHost;
     let defaultSchematicCollection = await command.getDefaultSchematicCollection();
index af9413b0277b226be2f4b5eb9f0a07015921d2b3..325eab35d9595c8f3acf7c6d75b09ae1b6f0963d 100644 (file)
@@ -2,10 +2,10 @@
 import {Collection, Schematic} from '@angular-devkit/schematics';
 import {SchematicsProvider} from "./schematicsProvider";
 import {SchematicCommand} from "@angular/cli/models/schematic-command";
-import {getWorkspace} from "@angular/cli/utilities/config"
+import {getWorkspaceDetails} from "@angular/cli/utilities/project"
 
 const schematicsProvider: Promise<SchematicsProvider> = (async function () {
-  let workspace = await getWorkspace('local');
+  let workspace = await getWorkspaceDetails()
   let command = new (SchematicCommand as any)({workspace: workspace}, null, null);
   let {listSchematicNames} = (await command.createWorkflow({interactive: false})).engineHost;
   let defaultSchematicCollection = await command.getDefaultSchematicCollection()