mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
Simplify monorepo setup
Remove concurrently and unused root dependencies. Update postinstall script to install dependencies directly within sub-packages. Add a check for process.stdin in the server REPL to prevent errors when run without an available input stream.
This commit is contained in:
parent
16e0b52a48
commit
955a22cd64
14
package.json
14
package.json
@ -3,20 +3,10 @@
|
|||||||
"license": "ComtyLicense",
|
"license": "ComtyLicense",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "concurrently -k \"yarn dev:client\" \"yarn dev:server\"",
|
"dev": "npm run dev:client & npm run dev:server",
|
||||||
"dev:server": "cd packages/server && npm run dev",
|
"dev:server": "cd packages/server && npm run dev",
|
||||||
"dev:client": "cd packages/app && npm run dev",
|
"dev:client": "cd packages/app && npm run dev",
|
||||||
"postinstall": "node ./scripts/post-install.js"
|
"postinstall": "cd packages/app && npm install && cd ../server && npm install"
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"7zip-min": "1.4.3",
|
|
||||||
"@ragestudio/hermes": "^1.0.0",
|
|
||||||
"axios": "^1.4.0",
|
|
||||||
"concurrently": "^7.5.0",
|
|
||||||
"dotenv": "16.0.3",
|
|
||||||
"form-data": "^4.0.0",
|
|
||||||
"mintlify": "^4.0.206",
|
|
||||||
"octokit": "^2.0.14"
|
|
||||||
},
|
},
|
||||||
"_web_app_path": "packages/app"
|
"_web_app_path": "packages/app"
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,13 @@ export default class RELP {
|
|||||||
}
|
}
|
||||||
|
|
||||||
initCommandLine() {
|
initCommandLine() {
|
||||||
|
if (!process.stdin) {
|
||||||
|
console.error(
|
||||||
|
"Failed to initialize command line: stdin is not available",
|
||||||
|
)
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
// Configure line-by-line input mode
|
// Configure line-by-line input mode
|
||||||
process.stdin.setEncoding("utf8")
|
process.stdin.setEncoding("utf8")
|
||||||
process.stdin.resume()
|
process.stdin.resume()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user