-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
38 lines (38 loc) · 1.82 KB
/
Copy pathpackage.json
File metadata and controls
38 lines (38 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
"name": "djs-core",
"type": "module",
"private": true,
"version": "6.0.0",
"packageManager": "bun@1.3.14",
"workspaces": {
"packages": [
"packages/*",
"plugins/*",
"app"
],
"catalog": {
"discord.js": "14.27.0"
}
},
"devDependencies": {
"@biomejs/biome": "2.5.7",
"@changesets/cli": "2.31.1",
"@djs-core/testing": "workspace:*",
"knip": "6.32.0",
"turbo": "^2.10.12",
"typescript": "7.0.2"
},
"scripts": {
"check": "biome check",
"build": "turbo build types --filter=./packages/* --filter=./plugins/*",
"test": "bun run build && bun test",
"dev": "turbo dev --filter=./packages/* --filter=./app",
"dev:app": "bun --cwd app dev",
"dev:packages": "turbo dev --filter=./packages/* --filter=./plugins/*",
"types": "turbo types --filter=./packages/* --filter=./plugins/*",
"changeset": "changeset",
"ci:version": "changeset version && bun update",
"ci:publish": "FAILED=0; for dir in packages/*; do if [ -d \"$dir\" ] && [ -f \"$dir/package.json\" ]; then (cd \"$dir\" && NAME=$(node -p \"require('./package.json').name\") && VERSION=$(node -p \"require('./package.json').version\") && PRIVATE=$(node -p \"require('./package.json').private === true ? 'true' : 'false'\") && if [ \"$PRIVATE\" = \"true\" ]; then echo \"Skipping $NAME@$VERSION (private)\"; elif npm view \"$NAME@$VERSION\" version >/dev/null 2>&1; then echo \"Skipping $NAME@$VERSION (already published)\"; else PACK_FILE=$(bun pm pack --quiet | grep '\\.tgz$' | tail -n 1) && echo \"Publishing $NAME@$VERSION from $dir/$PACK_FILE\" && if [ -n \"$GITHUB_ACTIONS$GITLAB_CI\" ]; then npm publish \"$PACK_FILE\" --access public --provenance; else npm publish \"$PACK_FILE\" --access public; fi; fi) || FAILED=1; fi; done; [ \"$FAILED\" -eq 0 ] && changeset tag; [ \"$FAILED\" -eq 0 ]",
"ci:publish:plugins": "bun scripts/publish-plugins.ts"
}
}