Disable installation of NPM package that requires compilation (#3196)

* prevent peer dependencies not to be installed automatically (new behavior in npm > 7.0)

* updated discord dependency

* changed flag, because discord-rpc 3.2.0 changed peer deps to opt deps
This commit is contained in:
ronny1982 2021-04-02 20:57:46 +02:00 committed by GitHub
parent 5bedd8e195
commit e8f19a419b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@
"win-7zip": "latest"
},
"scripts": {
"postinstall": "cd src/app && npm install",
"postinstall": "cd src/app && npm install --no-optional",
"start": "npm run start:dev",
"start:dev": "electron . --update-url=DISABLED --cache-directory=./src/web --disable-http-cache",
"start:build": "npm run build:web && electron . --update-url=DISABLED --cache-directory=./build/latest",

View File

@ -11,8 +11,8 @@
"main": "main.js",
"dependencies": {
"@logtrine/logtrine": "latest",
"discord-rpc": "^3.2.0",
"fs-extra": "latest",
"jszip": "latest",
"discord-rpc": "^3.1.1"
"jszip": "latest"
}
}