Skip to content

Commit 7457253

Browse files
committed
chore: add configs package to package.json and update build and link scripts to include configs
1 parent 0704c54 commit 7457253

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
"import": "./apps/frontend/dist/index.js",
1919
"types": "./apps/frontend/dist/index.d.ts"
2020
},
21+
"./config": {
22+
"import": "./packages/configs/dist/index.js",
23+
"types": "./packages/configs/dist/index.d.ts"
24+
},
2125
"./database": {
2226
"import": "./packages/database/dist/index.js",
2327
"types": "./packages/database/dist/index.d.ts"
@@ -37,8 +41,8 @@
3741
},
3842
"scripts": {
3943
"postinstall": "bun run build:packages && bun run link:packages",
40-
"build:packages": "cd packages/database && bun run build && cd ../song && bun run build && cd ../thumbnail && bun run build && cd ../sounds && bun run build",
41-
"link:packages": "mkdir -p apps/backend/node_modules/@nbw && cd apps/backend/node_modules/@nbw && ln -sf ../../../../packages/database database && ln -sf ../../../../packages/song song && ln -sf ../../../../packages/thumbnail thumbnail && ln -sf ../../../../packages/sounds sounds",
44+
"build:packages": "cd packages/configs && bun run build && cd ../database && bun run build && cd ../song && bun run build && cd ../thumbnail && bun run build && cd ../sounds && bun run build",
45+
"link:packages": "mkdir -p apps/backend/node_modules/@nbw && cd apps/backend/node_modules/@nbw && ln -sf ../../../../packages/configs config && ln -sf ../../../../packages/database database && ln -sf ../../../../packages/song song && ln -sf ../../../../packages/thumbnail thumbnail && ln -sf ../../../../packages/sounds sounds",
4246
"dev:docker": "docker-compose -f docker-compose-dev.yml up -d && bun run dev && docker-compose down",
4347
"build:server": "bun run build:data && cd apps/backend && bun run build",
4448
"build:web": "cd ./apps/frontend && bun run build",

0 commit comments

Comments
 (0)