data-plugin force leveldown to 6.1.1

This commit is contained in:
Service Account 2023-10-25 17:57:28 +07:00
parent 0de9eb5aef
commit 7212fdb143
3 changed files with 6 additions and 3 deletions

View File

@ -88,7 +88,7 @@ jobs:
do
echo $dir
cd $dir
npm install && npm run build && ../../.github/scripts/auto-sign.sh
npm install && npm run postinstall && ../../.github/scripts/auto-sign.sh
if [[ $GITHUB_EVENT_NAME == 'push' && $GITHUB_EVENT_PULL_REQUEST_HEAD_REPO_FULL_NAME != $GITHUB_REPOSITORY ]]; then
npm publish --access public
fi

View File

@ -12,7 +12,7 @@
],
"scripts": {
"build": "tsc -b ./config/tsconfig.esm.json && tsc -b ./config/tsconfig.cjs.json && webpack --config webpack.config.js",
"postinstall": "rimraf *.tgz --glob && npm run build",
"postinstall": "npx npm-force-resolutions && rimraf *.tgz --glob && npm run build",
"build:publish": "npm pack && cpx *.tgz ../../electron/core/pre-install"
},
"exports": {
@ -45,6 +45,9 @@
"pouchdb-find": "^8.0.1",
"pouchdb-node": "^8.0.1"
},
"resolutions": {
"leveldown": "6.1.1"
},
"bundleDependencies": [
"pouchdb-node",
"pouchdb-find"