Merge pull request #454 from janhq/chore/data-plugin-rebuild-darwin-arm64

data-plugin force leveldown back to 5.6.0 and rebuild for darwin arm64
This commit is contained in:
hiento09 2023-10-25 18:52:29 +07:00 committed by GitHub
commit 7e041a64ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

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": "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"