From 08c4f844ecbff3657a12ec678985c37d1fa84f80 Mon Sep 17 00:00:00 2001 From: Aetherinox Date: Thu, 4 Apr 2024 17:16:51 -0700 Subject: [PATCH] change: add dev-legacy / set-legacy to package scripts Due to some outdated packages, some users may attempt to run dev and experience the error "error:0308010C:digital envelope routines::unsupported" If npm run dev does not work; use npm run dev-legacy --- package.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index b1763338..b9bdf445 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "keeweb", - "version": "1.18.6", + "version": "1.18.7", "description": "Free cross-platform password manager compatible with KeePass", "main": "Gruntfile.js", "private": true, @@ -110,15 +110,18 @@ }, "scripts": { "start": "grunt", + "lint": "grunt eslint", "test": "grunt test", "build-beta": "grunt --beta && cp dist/index.html ../keeweb-beta/index.html && cd ../keeweb-beta && git add index.html && git commit -a -m 'beta' && git push origin master", "electron": "cross-env KEEWEB_IS_PORTABLE=0 ELECTRON_DISABLE_SECURITY_WARNINGS=1 KEEWEB_EMULATE_HARDWARE_ENCRYPTION=persistent KEEWEB_HTML_PATH=http://localhost:8085 electron desktop --no-sandbox", "dev": "grunt dev", + "dev-legacy": "cross-env NODE_OPTIONS='--openssl-legacy-provider' grunt dev", "dev-desktop-macos": "grunt dev-desktop-darwin --skip-sign", "dev-desktop-macos-signed": "grunt dev-desktop-darwin-signed", "dev-desktop-windows": "grunt dev-desktop-win32 --skip-sign", "dev-desktop-linux": "grunt dev-desktop-linux --skip-sign", - "babel-helpers": "babel-external-helpers -l 'slicedToArray,toConsumableArray,defineProperty,typeof' -t global > app/lib/babel-helpers.js" + "babel-helpers": "babel-external-helpers -l 'slicedToArray,toConsumableArray,defineProperty,typeof' -t global > app/lib/babel-helpers.js", + "set-legacy": "export NODE_OPTIONS=--openssl-legacy-provider" }, "author": { "name": "Antelle", @@ -140,4 +143,4 @@ "last 1 ChromeAndroid version", "Electron > 6.0.1" ] -} +} \ No newline at end of file