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
This commit is contained in:
Aetherinox 2024-04-04 17:16:51 -07:00
parent ae4bce3a11
commit 08c4f844ec
No known key found for this signature in database
GPG Key ID: CB5C4C30CD0D4028
1 changed files with 6 additions and 3 deletions

View File

@ -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"
]
}
}