diff --git a/plugins/data-plugin/README.md b/plugins/data-plugin/README.md index 42caeb1aa..2197d9ad2 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. \ No newline at end of file +- tsconfig.json: Defines the typescript configuration. diff --git a/plugins/data-plugin/package.json b/plugins/data-plugin/package.json index ec0916446..bebc69202 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": "npx npm-force-resolutions && rimraf *.tgz --glob && npm run build", + "postinstall": "npm install leveldown@5.6.0 --build-from-source --arch=arm64 && rimraf *.tgz --glob && npm run build", "build:publish": "npm pack && cpx *.tgz ../../electron/core/pre-install" }, "exports": { @@ -41,13 +41,9 @@ ], "dependencies": { "@janhq/core": "^0.1.7", - "leveldown": "^6.1.1", "pouchdb-find": "^8.0.1", "pouchdb-node": "^8.0.1" }, - "resolutions": { - "leveldown": "6.1.1" - }, "bundleDependencies": [ "pouchdb-node", "pouchdb-find"