mirror of
https://github.com/zhigang1992/yarn.git
synced 2026-06-17 05:49:56 +08:00
* Remove crappy folders from node_modules in dist tarballs * add windows version of scripts/clean-node-modules
12 lines
339 B
PowerShell
Executable File
12 lines
339 B
PowerShell
Executable File
# sometimes folders may not exist according to node/npm version etc so ignore them
|
|
$ErrorActionPreference = 'Continue'
|
|
|
|
# random browser builds that aren't used
|
|
rm node_modules/core-js/client -Recurse
|
|
|
|
# remove typescript files
|
|
rm node_modules/rx/ts -Recurse
|
|
|
|
# naughty modules that have their test folders
|
|
rm node_modules/*/test -Recurse
|