Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// @ts-check
const path = require('path');
const { cleanTask } = require('just-scripts');
exports.clean = cleanTask(
[
'lib',
'temp',
'dist',
'lib-amd',
'lib-commonjs',
'lib-es2015', // Keep this in clean for actually cleaning up legacy content.
'coverage',
'src/**/*.scss.ts'
].map(p => path.join(process.cwd(), p))
);
task('clean', () => {
return cleanTask(
['jest', 'Libraries', 'RNTester', 'lib'].map(p =>
path.join(process.cwd(), p),
),
);
});
task('clean', () => {
return cleanTask(
['dist', 'flow', 'flow-typed', 'jest', 'Libraries', 'RNTester', 'lib'].map(
p => path.join(process.cwd(), p),
),
);
});
task('clean', () => {
return cleanTask(['lib', 'temp', 'dist', 'coverage'].map(p => path.join(process.cwd(), p)));
});