mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-04 14:41:14 +00:00
Add development config files and wiring to include them in the shell build. Creates packages/napcat-develop/config/.env and packages/napcat-develop/config/onebot11.json, adds a root script `build🐚config` that builds napcat-shell and then runs napcat-develop's `copy-env` script. Update packages/napcat-develop/package.json to add the `copy-env` script (uses xcopy to copy config into the napcat-shell dist), tidy exports and metadata. This ensures dev configuration is packaged into napcat-shell during the build process.
28 lines
505 B
JSON
28 lines
505 B
JSON
{
|
|
"name": "napcat-develop",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"type": "module",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"dev": "powershell ./nodeTest.ps1",
|
|
"copy-env": "xcopy config ..\\napcat-shell\\dist\\config /E /I /Y"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"require": "./index.js"
|
|
},
|
|
"./*": {
|
|
"require": "./*"
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"fs-extra": "^11.3.2"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.0.1"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.0.0"
|
|
}
|
|
} |