You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
venv/PyCharm 2025.2.1.1/plugins/angular/ngCli/schematicsProvider60.js

20 lines
744 B

"use strict";
let schematicsUtils = require('@angular/cli/utilities/schematics');
let defaultCollectionName;
try {
defaultCollectionName = require('@angular/cli/utilities/config').getDefaultSchematicCollection();
}
catch (e) {
defaultCollectionName = require('@angular/cli/models/config').CliConfig.getValue('defaults.schematics.collection');
}
let engineHost = schematicsUtils.getEngineHost();
const schematicsProvider = Promise.resolve({
getCollection: schematicsUtils.getCollection,
getSchematic: schematicsUtils.getSchematic,
listSchematics(collection) {
return engineHost.listSchematics(collection);
},
getDefaultSchematicCollection: () => defaultCollectionName
});
module.exports = schematicsProvider;