Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports = async function({workspace, options}) {
let allResources;
if (workspace.byGlobSource) { // API only available on duplex collections
allResources = await workspace.byGlobSource(options.pattern);
} else {
allResources = await workspace.byGlob(options.pattern);
}
return dbg({
fs: fsInterface(workspace),
resources: allResources
}).then((processedResources) => {
return Promise.all(processedResources.map((resource) => {
return workspace.write(resource);
}));
});
};
}).then((resources) => {
return themeBuilder({
resources,
fs: fsInterface(combo),
options: {
compress
}
});
}).then((processedResources) => {
return Promise.all(processedResources.map((resource) => {