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.
This commit is contained in:
Ong Yong Xin 2021-06-12 12:27:09 +08:00
parent cb41a72b5b
commit 86a605932f
3 changed files with 23630 additions and 1 deletions

23622
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -35,7 +35,7 @@
"devDependencies": {
"dateformat": "2.0.0",
"fs-extra": "3.0.1",
"grunt": "^0.4.5",
"grunt": "^1.0.0",
"grunt-casperjs": "^2.2.1",
"grunt-cli": "^1.3.2",
"grunt-contrib-clean": "1.1.0",

7
patch_tmpdir.sh Executable file
View File

@ -0,0 +1,7 @@
#!/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