Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
log['error'](err);
}
ocClientPackageInfo.version = ocVersion;
fs.writeJsonSync(
path.join(__dirname, clientComponentDir, 'package.json'),
ocClientPackageInfo,
{ spaces: 2 }
);
fs.writeFileSync(
path.join(__dirname, clientComponentDir, 'src/oc-client.min.js'),
libContent
);
ocClientBrowser.getMap((err, mapContent) => {
if (err) {
log['error'](err);
}
fs.writeFileSync(
path.join(__dirname, clientComponentDir, 'src/oc-client.min.map'),
mapContent
);
const Local = require('../src/cli/domain/local');
const local = new Local();
const packageOptions = {
componentPath: path.join(__dirname, clientComponentDir),
production: true,
verbose: false
};