1
mirror of https://github.com/cocktailpeanut/dalai synced 2024-11-23 04:16:53 +01:00
dalai/setup.js
cocktailpeanut bc49b5ac0f 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.
2023-03-17 16:56:47 -04:00

9 lines
181 B
JavaScript

const Dalai = require("./index")
new Dalai().setup().then(() => {
console.log("executed setup")
process.exit(0)
}).catch((e) => {
console.log("Error", e)
process.exit(1)
})