Merge pull request #413 from janhq/chore/fix-data-plugin-unable-to-load-from-npm

Fix data-plugin install failed on mac silicon from npm
This commit is contained in:
hiento09 2023-10-20 12:24:07 +07:00 committed by GitHub
commit c4a73d1ae0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -15,7 +15,7 @@ on:
- "!plugins/*/package.json" - "!plugins/*/package.json"
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: mac-silicon
environment: production environment: production
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4

View File

@ -7,9 +7,7 @@
"module": "dist/cjs/module.js", "module": "dist/cjs/module.js",
"author": "Jan <service@jan.ai>", "author": "Jan <service@jan.ai>",
"license": "MIT", "license": "MIT",
"activationPoints": [ "activationPoints": ["init"],
"init"
],
"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 ./data-plugin*.tgz && npm run build", "postinstall": "rimraf ./data-plugin*.tgz && npm run build",