Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const publish = (done, type) => {
const tmpPath = getTmpPath(type);
const tmpDir = tmpPath();
const remote = argv.remote || 'origin';
let typeSuffix = '';
if (type !== 'commonjs') {
typeSuffix = `-${type}`;
}
const result = findRemoveSync(`${tmpDir}/components`, { dir: '__tests__' });
console.log('Removed the following test files:');
console.log(result);
let actions = [
{ command: 'git init', dir: tmpDir, rootPath },
{ command: `cp ${gitDir}/config ${tmpDir}/.git`, rootPath },
{ command: 'git add -A', dir: tmpDir, rootPath },
];
if (argv.tag) {
actions = [
...actions,
{
command: `git commit -m "Release commit for ${
argv.tag
}-${type} [ci skip]"`,