Skip to content

Commit 6bf0a33

Browse files
authored
Remove node_modules after copying dependencies
Remove 'node_modules' directory after copying dependencies.
1 parent 2a40742 commit 6bf0a33

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

js/postinstall.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,7 @@ if (fs.existsSync('node_modules')) {
2929
dependencies.forEach(({ src, dest }) => {
3030
execSync(`copyfiles -V -f ${src} ${dest}`, { stdio: 'inherit' });
3131
});
32+
33+
fs.rmSync('node_modules', { recursive: true, force: true });
34+
console.log('node_modules removed');
3235
}

0 commit comments

Comments
 (0)