Skip to content

Commit 9811514

Browse files
committed
build: ignores/swap/concurrency
1 parent 6ea63d0 commit 9811514

File tree

28 files changed

+120
-55
lines changed

28 files changed

+120
-55
lines changed

Diff for: .github/CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ When testing local changes, you may notice you need to manually recompile TypeSc
3434

3535
To avoid this you can use the `--watch` parameter in the package build script to automatically recompile the project when changes are detected.
3636

37-
For example, to automatically recompile the `@discordjs/rest` project when changes are detected, run `yarn turbo run build --filter=@discordjs/rest -- --watch` in the root folder of where you cloned the discord.js repo.
37+
For example, to automatically recompile the `@discordjs/rest` project when changes are detected, run `yarn turbo run build --filter=@discordjs/rest --concurrency=3 -- --watch` in the root folder of where you cloned the discord.js repo.
3838

3939
## Adding new packages
4040

Diff for: .github/workflows/tests.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -29,35 +29,35 @@ jobs:
2929

3030
- name: Build dependencies (PR)
3131
if: ${{ github.event_name != 'push' }}
32-
run: yarn build --filter="...[origin/${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || 'main' }}]"
32+
run: yarn turbo build --filter="...[origin/${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || 'main' }}] --concurrency=3"
3333

3434
- name: Build dependencies (Push)
3535
if: ${{ github.event_name == 'push' }}
36-
run: yarn build --filter="...[HEAD^1]"
36+
run: yarn turbo build --filter="...[HEAD^1] --concurrency=3"
3737

3838
- name: ESLint (PR)
3939
if: ${{ github.event_name != 'push' }}
40-
run: yarn lint --filter="...[origin/${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || 'main' }}]" -- --format=compact
40+
run: yarn turbo lint --filter="...[origin/${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || 'main' }}]" --concurrency=3 -- --format=compact
4141

4242
- name: ESLint (Push)
4343
if: ${{ github.event_name == 'push' }}
44-
run: yarn lint --filter="...[HEAD^1]" -- --format=compact
44+
run: yarn turbo lint --filter="...[HEAD^1]" --concurrency=3 -- --format=compact
4545

4646
- name: Tests (PR)
4747
if: ${{ github.event_name != 'push' }}
48-
run: yarn test --filter="...[origin/${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || 'main' }}]"
48+
run: yarn turbo test --filter="...[origin/${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || 'main' }}]" --concurrency=3
4949

5050
- name: Tests (Push)
5151
if: ${{ github.event_name == 'push' }}
52-
run: yarn test --filter="...[HEAD^1]"
52+
run: yarn turbo test --filter="...[HEAD^1]" --concurrency=3
5353

5454
- name: Docs (PR)
5555
if: ${{ github.event_name != 'push' }}
56-
run: yarn docs --filter="...[origin/${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || 'main' }}]"
56+
run: yarn turbo docs --filter="...[origin/${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || 'main' }}]" --concurrency=3
5757

5858
- name: Docs (Push)
5959
if: ${{ github.event_name == 'push' }}
60-
run: yarn docs --filter="...[HEAD^1]"
60+
run: yarn turbo docs --filter="...[HEAD^1]" --concurrency=3
6161

6262
- name: Upload Coverage
6363
if: github.repository_owner == 'discordjs'

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ tsconfig.tsbuildinfo
3030
coverage
3131
out
3232
package.tgz
33+
tsup.config.bundled*
34+
vitest.config.ts.timestamp*
3335

3436
# Deno
3537
deno.lock

Diff for: .prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
CODEOWNERS
22
CHANGELOG.md
3+
tsup.config.bundled*
4+
vitest.config.ts.timestamp*

Diff for: apps/guide/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"dev:next": "next dev",
1818
"dev:css": "yarn generate:css --watch",
1919
"generate:css": "unocss 'src/**/*.tsx' 'contentlayer.config.ts' '../../packages/ui/src/lib/components/**/*.tsx' --out-file ./src/styles/unocss.css --config ../../unocss.config.ts",
20+
"generate:contentlayer": "contentlayer build",
2021
"lint": "prettier --check . && cross-env TIMING=1 eslint --format=pretty src",
2122
"format": "prettier --write . && cross-env TIMING=1 eslint --fix --format=pretty src",
2223
"fmt": "yarn format"

Diff for: apps/website/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"build:next": "next build",
1414
"build:css": "yarn generate:css",
1515
"build:search_indices": "yarn node scripts/generateAllIndices.js",
16-
"build:analyze": "turbo run docs && cross-env ANALYZE=true NEXT_PUBLIC_LOCAL_DEV=true yarn build:prod",
16+
"build:analyze": "turbo run docs --concurrency=3 && cross-env ANALYZE=true NEXT_PUBLIC_LOCAL_DEV=true yarn build:prod",
1717
"preview": "next start",
1818
"dev": "concurrently 'yarn dev:css' 'yarn dev:next'",
1919
"dev:next": "next dev",

Diff for: package.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
"description": "A powerful library for interacting with the Discord API",
66
"private": true,
77
"scripts": {
8-
"build": "turbo run build",
9-
"build:affected": "turbo run build --filter='...[origin/main]'",
10-
"build:apps": "turbo run build:local --filter='...{apps/*}'",
11-
"build:apps:affected": "turbo run build:local --filter='...{apps/*}[origin/main]'",
12-
"test": "turbo run test",
13-
"test:affected": "turbo run test --filter='...[origin/main]'",
14-
"lint": "turbo run lint",
15-
"lint:affected": "turbo run lint --filter='...[origin/main]'",
16-
"format": "turbo run format",
17-
"format:affected": "turbo run format --filter='...[origin/main]'",
18-
"fmt": "turbo run format",
19-
"fmt:affected": "turbo run format --filter='...[origin/main]'",
20-
"docs": "turbo run docs",
21-
"docs:affected": "turbo run docs --filter='...[origin/main]'",
8+
"build": "turbo run build --concurrency=3",
9+
"build:affected": "turbo run build --filter='...[origin/main]' --concurrency=3",
10+
"build:apps": "turbo run build:local --filter='...{apps/*}' --concurrency=3",
11+
"build:apps:affected": "turbo run build:local --filter='...{apps/*}[origin/main]' --concurrency=3",
12+
"test": "turbo run test --concurrency=3",
13+
"test:affected": "turbo run test --filter='...[origin/main]' --concurrency=3",
14+
"lint": "turbo run lint --concurrency=3",
15+
"lint:affected": "turbo run lint --filter='...[origin/main]' --concurrency=3",
16+
"format": "turbo run format --concurrency=3",
17+
"format:affected": "turbo run format --filter='...[origin/main]' --concurrency=3",
18+
"fmt": "turbo run format --concurrency=3",
19+
"fmt:affected": "turbo run format --filter='...[origin/main]' --concurrency=3",
20+
"docs": "turbo run docs --concurrency=3",
21+
"docs:affected": "turbo run docs --filter='...[origin/main]' --concurrency=3",
2222
"postinstall": "is-ci || husky install",
2323
"update": "yarn upgrade-interactive",
2424
"create-package": "turbo gen create-package"

Diff for: packages/actions/.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.turbo
22
coverage
33
dist
4+
tsup.config.bundled*

Diff for: packages/actions/src/yarnCache/action.yml

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ description: 'Run yarn install with node_modules linker and cache enabled'
33
runs:
44
using: 'composite'
55
steps:
6+
- name: Set up swap space
7+
if: runner.os == 'Linux'
8+
uses: pierotofy/[email protected]
9+
with:
10+
swap-size-gb: 10
11+
612
- name: Expose yarn config as "$GITHUB_OUTPUT"
713
id: yarn-config
814
shell: bash

Diff for: packages/api-extractor-utils/.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.turbo
22
coverage
33
dist
4+
tsup.config.bundled*

Diff for: packages/brokers/.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ dist
44
dist-docs
55
docs/docs.api.json
66
CHANGELOG.md
7+
tsup.config.bundled*

Diff for: packages/builders/.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ dist
44
dist-docs
55
docs/docs.api.json
66
CHANGELOG.md
7+
tsup.config.bundled*

Diff for: packages/collection/.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ dist
44
dist-docs
55
docs/docs.api.json
66
CHANGELOG.md
7+
tsup.config.bundled*

Diff for: packages/core/.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ dist
44
dist-docs
55
docs/docs.api.json
66
CHANGELOG.md
7+
tsup.config.bundled*

Diff for: packages/create-discord-bot/.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ docs/**/*
66
!docs/index.yml
77
!docs/README.md
88
coverage/
9+
tsup.config.bundled*

Diff for: packages/docgen/.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.turbo
22
dist
33
coverage
4+
tsup.config.bundled*

Diff for: packages/formatters/.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ dist
44
dist-docs
55
docs/docs.api.json
66
CHANGELOG.md
7+
tsup.config.bundled*

Diff for: packages/next/.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ dist
44
dist-docs
55
docs/docs.api.json
66
CHANGELOG.md
7+
tsup.config.bundled*

Diff for: packages/proxy-container/.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.turbo
22
dist
3+
tsup.config.bundled*

Diff for: packages/proxy/.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ dist
44
dist-docs
55
docs/docs.api.json
66
CHANGELOG.md
7+
tsup.config.bundled*

Diff for: packages/rest/.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ dist
44
dist-docs
55
docs/docs.api.json
66
CHANGELOG.md
7+
tsup.config.bundled*
8+
vitest.config.ts.timestamp*

Diff for: packages/scripts/.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
.turbo
22
coverage
33
dist
4+
turbo
5+
tsup.config.bundled*
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.turbo coverage dist dist-docs docs/docs.api.json CHANGELOG.md
1+
.turbo coverage dist dist-docs docs/docs.api.json CHANGELOG.md tsup.config.bundled*

Diff for: packages/ui/.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
coverage
33
dist
44
storybook-static
5+
tsup.config.bundled*
6+
vite.config.ts.timestamp*

Diff for: packages/util/.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ dist
44
dist-docs
55
docs/docs.api.json
66
CHANGELOG.md
7+
tsup.config.bundled*

Diff for: packages/voice/.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ dist
44
dist-docs
55
docs/docs.api.json
66
CHANGELOG.md
7+
tsup.config.bundled*

Diff for: packages/ws/.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ dist
44
dist-docs
55
docs/docs.api.json
66
CHANGELOG.md
7+
tsup.config.bundled*

0 commit comments

Comments
 (0)