mirror of https://github.com/cocktailpeanut/dalai
setup postinstall script fix
The path `node ./bin/cli setup` isn't working on some operating systems such as windows, because the forward slash is not recognized. Just create a setup.js file in the root path and call it without any path issues.
This commit is contained in:
parent
6c18f02431
commit
bc49b5ac0f
|
@ -1,12 +1,13 @@
|
|||
{
|
||||
"name": "dalai",
|
||||
"version": "0.2.9",
|
||||
"version": "0.2.21",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "dalai",
|
||||
"version": "0.2.9",
|
||||
"version": "0.2.21",
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"7zip-min": "^1.4.4",
|
||||
|
@ -27,6 +28,9 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"prettier": "^2.8.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@cronvel/get-pixels": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "dalai",
|
||||
"version": "0.2.20",
|
||||
"version": "0.2.21",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"author": "cocktailpeanut",
|
||||
|
@ -13,7 +13,7 @@
|
|||
"start": "./dalai serve",
|
||||
"just:run": "wrap () { yarn && yarn dalai:llama $1 && yarn start; }; wrap",
|
||||
"just:fix": "npx prettier --write .",
|
||||
"postinstall": "node ./bin/cli setup"
|
||||
"postinstall": "node setup"
|
||||
},
|
||||
"dependencies": {
|
||||
"7zip-min": "^1.4.4",
|
||||
|
|
Loading…
Reference in New Issue