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:
commit
c4a73d1ae0
2
.github/workflows/jan-plugins.yml
vendored
2
.github/workflows/jan-plugins.yml
vendored
@ -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
|
||||||
|
|||||||
@ -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",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user