Skip to content

Commit bd1dd3e

Browse files
committed
chore: add @types/unidecode dependency and enhance postinstall script for building and linking workspace packages
1 parent eb4b5e7 commit bd1dd3e

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ To install all dependencies, run in the root of the project:
117117
bun install
118118
```
119119

120+
> **Note**: This will automatically build all workspace packages (database, song, thumbnail, sounds) via the `postinstall` hook to ensure proper workspace dependency linking.
121+
120122
---
121123

122124
## Running the Project

bun.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@
193193
},
194194
"devDependencies": {
195195
"@types/bun": "latest",
196+
"@types/unidecode": "^1.1.0",
196197
"typescript": "^5",
197198
},
198199
"peerDependencies": {
@@ -1008,6 +1009,8 @@
10081009

10091010
"@types/tailwindcss": ["@types/[email protected]", "", { "dependencies": { "tailwindcss": "*" } }, "sha512-JxPzrm609hzvF4nmOI3StLjbBEP3WWQxDDJESqR1nh94h7gyyy3XSl0hn5RBMJ9mPudlLjtaXs5YEBtLw7CnPA=="],
10101011

1012+
"@types/unidecode": ["@types/[email protected]", "", {}, "sha512-NTIsFsTe9WRek39/8DDj7KiQ0nU33DHMrKwNHcD1rKlUvn4N0Rc4Di8q/Xavs8bsDZmBa4MMtQA8+HNgwfxC/A=="],
1013+
10111014
"@types/unist": ["@types/[email protected]", "", {}, "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q=="],
10121015

10131016
"@types/uuid": ["@types/[email protected]", "", {}, "sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA=="],

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
}
3737
},
3838
"scripts": {
39+
"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",
3942
"dev:docker": "docker-compose -f docker-compose-dev.yml up -d && bun run dev && docker-compose down",
4043
"build:server": "bun run build:data && cd apps/backend && bun run build",
4144
"build:web": "cd ./apps/frontend && bun run build",
@@ -46,7 +49,7 @@
4649
"dev:server": "cd ./apps/backend && bun run start:dev",
4750
"dev:web": "cd ./apps/frontend && bun run start",
4851
"lint": "eslint \"**/*.{ts,tsx}\" --fix",
49-
"test": "cd ./apps/backend && bun test",
52+
"test": "bun run build:packages && cd ./apps/backend && bun test",
5053
"cy:open": "bun run test:cy",
5154
"test:cy": "cd ./tests && bun run cy:open",
5255
"prettier": "prettier --write ."

packages/song/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
},
2727
"devDependencies": {
2828
"@types/bun": "latest",
29+
"@types/unidecode": "^1.1.0",
2930
"typescript": "^5"
3031
},
3132
"dependencies": {

0 commit comments

Comments
 (0)