piskel/patch_tmpdir.sh
Ong Yong Xin 86a605932f Fix build process: conflicting dependencies
* package.json listed grunt ^0.4.5, which conflicts with grunt-nw-builder (requires grunt ^1.0.1).
* Node versions 7 and above deprecated os.tmpDir, which is used in several dependencies such as temp (outdated deps?)
  To patch this, run 'npm install' as usual, then execute the shell script 'patch_tmpdir.sh' in the root of this repo.
2021-06-12 12:27:09 +08:00

8 lines
138 B
Bash
Executable File

#!/bin/bash
grep -rl "os.tmpDir" node_modules --include \*.js | while read -r file; do
sed -i 's/os.tmpDir/os.tmpdir/g' $file
done