From 7212fdb143003c6cb256acb115be14a8a062e261 Mon Sep 17 00:00:00 2001 From: Service Account Date: Wed, 25 Oct 2023 17:57:28 +0700 Subject: [PATCH] data-plugin force leveldown to 6.1.1 --- .github/workflows/jan-plugins.yml | 2 +- plugins/data-plugin/README.md | 2 +- plugins/data-plugin/package.json | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/jan-plugins.yml b/.github/workflows/jan-plugins.yml index e60685410..4b36bdead 100644 --- a/.github/workflows/jan-plugins.yml +++ b/.github/workflows/jan-plugins.yml @@ -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 diff --git a/plugins/data-plugin/README.md b/plugins/data-plugin/README.md index 2197d9ad2..42caeb1aa 100644 --- a/plugins/data-plugin/README.md +++ b/plugins/data-plugin/README.md @@ -5,4 +5,4 @@ - index.ts: Main entry point for the plugin. - module.ts: Defines the plugin module which would be executed by the main node process. - package.json: Defines the plugin metadata. -- tsconfig.json: Defines the typescript configuration. +- tsconfig.json: Defines the typescript configuration. \ No newline at end of file diff --git a/plugins/data-plugin/package.json b/plugins/data-plugin/package.json index a1499a6f0..9b81750d2 100644 --- a/plugins/data-plugin/package.json +++ b/plugins/data-plugin/package.json @@ -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"