Skip to content

Commit 392885f

Browse files
committed
tt-upgrade and lint:fix
1 parent d35e076 commit 392885f

File tree

96 files changed

+1398
-2768
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+1398
-2768
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
"access": "public",
88
"baseBranch": "main",
99
"updateInternalDependencies": "patch",
10-
"ignore": ["@example/*"]
10+
"ignore": ["@example/*", "@repo/*"]
1111
}

.deepsource.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,3 @@ name = "javascript"
1717
"vitest",
1818
"browser"
1919
]
20-
21-
[[transformers]]
22-
name = "prettier"

.github/workflows/docs.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,24 @@ jobs:
3131
if: env.file_changed == 'true'
3232
run: exit 0
3333

34-
- uses: actions/setup-node@v4
34+
- uses: pnpm/action-setup@v4
35+
name: Install pnpm
36+
with:
37+
run_install: true
38+
39+
- name: Install Node.js
40+
uses: actions/setup-node@v4
3541
with:
36-
registry-url: https://registry.npmjs.org
3742
node-version: 20
43+
cache: "pnpm"
44+
3845
- name: Setup Git
3946
run: |
4047
git config --global user.name "mayank1513"
4148
git config --global user.email "[email protected]"
4249
git fetch
4350
git checkout main
4451
git pull
45-
- run: npm i -g pnpm && pnpm i --no-frozen-lockfile
46-
name: Install dependencies
4752
- run: git stash --include-untracked
4853
name: clean up working directory
4954
- name: Generate/update docs

.github/workflows/manual-publish.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,20 @@ jobs:
1717
with:
1818
token: ${{ secrets.GITHUB_TOKEN }}
1919

20-
- uses: actions/setup-node@v4
20+
- uses: pnpm/action-setup@v4
21+
name: Install pnpm
22+
with:
23+
run_install: true
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v4
2126
with:
2227
node-version: 20
23-
registry-url: https://registry.npmjs.org
28+
registry-url: "https://registry.npmjs.org"
29+
cache: "pnpm"
2430
- name: Setup Git
2531
run: |
2632
git config --global user.name "mayank1513"
2733
git config --global user.email "[email protected]"
28-
- run: npm i -g pnpm && pnpm i
29-
name: Install dependencies
3034
# fail and not publish if any of the unit tests are failing
3135
- name: Test
3236
run: pnpm test
@@ -36,7 +40,7 @@ jobs:
3640
- name: Copy Readme file
3741
run: cp ./README.md ./lib # todo: uncomment this line while rebranding
3842
- name: Apply changesets, publish and create release, branches and tags
39-
run: node ./scripts/manual-publish.js
43+
run: pnpm tsx ./scripts/manual-publish.ts
4044
env:
4145
BRANCH: ${{ github.ref_name }}
4246
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}

.github/workflows/publish.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,27 @@ jobs:
2222
with:
2323
token: ${{ secrets.GITHUB_TOKEN }}
2424

25-
- uses: actions/setup-node@v4
25+
- uses: pnpm/action-setup@v4
26+
name: Install pnpm
27+
with:
28+
run_install: true
29+
- name: Install Node.js
30+
uses: actions/setup-node@v4
2631
with:
2732
node-version: 20
28-
registry-url: https://registry.npmjs.org
33+
registry-url: "https://registry.npmjs.org"
34+
cache: "pnpm"
2935
- name: Setup Git
3036
run: |
3137
git config --global user.name "mayank1513"
3238
git config --global user.email "[email protected]"
33-
- run: npm i -g pnpm && pnpm i
34-
name: Install dependencies
35-
# fail and not publish if any of the unit tests are failing
3639
- name: Test
3740
run: pnpm test
3841
working-directory: ./lib
3942
- name: Copy Readme file
4043
run: cp ./README.md ./lib # will be uncommented while rebranding
4144
- name: Apply changesets, publish and create release, branches and tags
42-
run: node ./scripts/publish.js
45+
run: pnpm tsx ./scripts/publish.ts
4346
env:
4447
BRANCH: ${{ github.ref_name }}
4548
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}

.github/workflows/test.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,15 @@ jobs:
1313
contents: read
1414
steps:
1515
- uses: actions/checkout@v4
16-
- uses: actions/setup-node@v4
16+
- uses: pnpm/action-setup@v4
17+
name: Install pnpm
18+
with:
19+
run_install: true
20+
- name: Install Node.js
21+
uses: actions/setup-node@v4
1722
with:
1823
node-version: 20
19-
- run: npm i -g pnpm && pnpm i --no-frozen-lockfile
20-
name: Install dependencies
24+
cache: "pnpm"
2125
- name: Run unit tests
2226
run: pnpm test
2327
working-directory: ./lib

.github/workflows/upgrade.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Update dependencies
33
on:
44
schedule:
55
- cron: "0 */8 * * *"
6+
workflow_dispatch:
7+
68
jobs:
79
update-deps:
810
runs-on: ubuntu-latest
@@ -13,22 +15,25 @@ jobs:
1315
with:
1416
token: ${{ secrets.GITHUB_TOKEN }}
1517

16-
- uses: actions/setup-node@v4
18+
- uses: pnpm/action-setup@v4
19+
name: Install pnpm
20+
with:
21+
run_install: true
22+
- name: Install Node.js
23+
uses: actions/setup-node@v4
1724
with:
18-
registry-url: https://registry.npmjs.org
1925
node-version: 20
26+
cache: "pnpm"
2027
- name: Setup Git
2128
run: |
2229
git config --global user.name "mayank1513"
2330
git config --global user.email "[email protected]"
2431
git fetch
2532
git checkout main
2633
git pull
27-
- run: npm i -g pnpm && pnpm i --no-frozen-lockfile
28-
name: Install dependencies
2934
- run: git stash --include-untracked
3035
name: clean up working directory
31-
- run: pnpx @turbo/codemod update . && node ./scripts/upgrade.js
36+
- run: pnpm upgrade
3237
name: Update dependencies
3338
- run: pnpm build --filter @example/nextjs
3439
name: Build all apps to make sure it is not broken due to dependency upgrades

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm lint:fix && git add .

.turborepo-template.lst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
dd921f8f3ca60718cbc1b9b5d6617cd27bd9a499
1+
33fe7b14b4c4b5aa476d4d707657209f28b4f569

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"recommendations": ["esbenp.prettier-vscode", "mayank1513.trello-kanban-task-board"]
2+
"recommendations": ["mayank1513.trello-kanban-task-board"]
33
}

0 commit comments

Comments
 (0)