Merge pull request #453 from janhq/fix/data-plugin

data-plugin force leveldown to 6.1.1
This commit is contained in:
hiento09 2023-10-25 18:01:05 +07:00 committed by GitHub
commit 696d516f63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

@ -88,7 +88,7 @@ jobs:
do do
echo $dir echo $dir
cd $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 if [[ $GITHUB_EVENT_NAME == 'push' && $GITHUB_EVENT_PULL_REQUEST_HEAD_REPO_FULL_NAME != $GITHUB_REPOSITORY ]]; then
npm publish --access public npm publish --access public
fi fi

View File

@ -5,4 +5,4 @@
- index.ts: Main entry point for the plugin. - index.ts: Main entry point for the plugin.
- module.ts: Defines the plugin module which would be executed by the main node process. - module.ts: Defines the plugin module which would be executed by the main node process.
- package.json: Defines the plugin metadata. - package.json: Defines the plugin metadata.
- tsconfig.json: Defines the typescript configuration. - tsconfig.json: Defines the typescript configuration.

View File

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