in templates/legacy/windows-admin-center-extension-template/gulps/gulp-ps-code/index.ts [46:64]
function (file, enc, cb) {
let error = null;
try {
let path = Path.parse(file.path);
if (path.ext === '.ps1') {
if (collection[path.base]) {
throw new Error('gulp-ps-code requires unique name of ps file, conflicted with ' + path.base);
}
let data = file.contents.toString('utf8');
collection[path.base] = data;
lastFile = file;
}
} catch (e) {
error = (!e.plugin || (e.plugin !== PLUGIN_NAME)) ? extendError(new PluginError(PLUGIN_NAME, e.message), e) : e;
}
return cb(error);
},