Skip to content

Commit cb88ffe

Browse files
committed
chore: prepare 2024, migrate to tsx from ts-node
1 parent edeb62f commit cb88ffe

File tree

167 files changed

+1746
-1139
lines changed

Some content is hidden

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

167 files changed

+1746
-1139
lines changed

.github/badges/python/2024.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"schemaVersion": 1,
3+
"label": "Advent of Python 2024",
4+
"message": "0/25",
5+
"color": "red"
6+
}

.github/badges/rust/2024.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"schemaVersion": 1,
3+
"label": "Advent of Rust 2024",
4+
"message": "0/25",
5+
"color": "red"
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"schemaVersion": 1,
3+
"label": "Advent of TypeScript 2024",
4+
"message": "0/25",
5+
"color": "orange"
6+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
"remark-cli": "^12.0.1",
131131
"stylelint": "^16.11.0",
132132
"svelte-check": "^4.1.0",
133-
"ts-node": "^10.9.2",
133+
"tsx": "^4.19.2",
134134
"turbo": "^2.3.3",
135135
"turbo-ignore": "^2.3.3",
136136
"typedoc": "^0.27.2",

pnpm-lock.yaml

Lines changed: 1078 additions & 771 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ packages:
99
- 'solutions/typescript/2021/*'
1010
- 'solutions/typescript/2022/*'
1111
- 'solutions/typescript/2023/*'
12+
- 'solutions/typescript/2024/*'
1213
link-workspace-packages: 'deep'

readme.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ resources
3434
│ └── 25
3535
│ └── input.txt
3636
│ ...
37-
└── 2023
37+
└── 2024
3838
├── 01
3939
│ ├── example.1.txt
4040
│ ├── example.2.txt
@@ -56,6 +56,7 @@ git clone --recurse-submodules -j8 [email protected]:AlexAegis/advent-of-code.git
5656

5757
## [TypeScript](./solutions/typescript)
5858

59+
[![2024 TypeScript Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/typescript/2024.json)](/solutions/typescript/2024/)
5960
[![2023 TypeScript Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/typescript/2023.json)](/solutions/typescript/2023/)
6061
[![2022 TypeScript Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/typescript/2022.json)](/solutions/typescript/2022/)
6162
[![2021 TypeScript Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/typescript/2021.json)](/solutions/typescript/2021/)
@@ -78,7 +79,7 @@ pnpm install
7879

7980
```sh
8081
# Navigate to the solution
81-
cd solutions/typescript/2023/01
82+
cd solutions/typescript/2024/01
8283
pnpm p1
8384
pnpm p2
8485
```
@@ -97,15 +98,15 @@ pnpm test
9798

9899
```sh
99100
# Navigate to the solution
100-
cd solutions/typescript/2023/01
101+
cd solutions/typescript/2024/01
101102
pnpm test
102103
```
103104

104105
### Benchmarking individual TypeScript solutions
105106

106107
```sh
107108
# Navigate to the solution
108-
cd solutions/typescript/2023/01
109+
cd solutions/typescript/2024/01
109110
pnpm bench
110111
```
111112

@@ -119,14 +120,15 @@ pnpm lint
119120

120121
```sh
121122
# Navigate to the solution
122-
cd solutions/typescript/2023/01
123+
cd solutions/typescript/2024/01
123124
pnpm lint:tsc
124125
pnpm lint:es
125126
pnpm lint:format
126127
```
127128

128129
## [Rust](./solutions/rust)
129130

131+
![2024 Rust Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/rust/2024.json)
130132
![2023 Rust Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/rust/2023.json)
131133
![2022 Rust Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/rust/2022.json)
132134
![2021 Rust Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/rust/2021.json)
@@ -139,6 +141,7 @@ pnpm lint:format
139141

140142
## [Python](./solutions/python)
141143

144+
![2024 Python Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/python/2024.json)
142145
![2023 Python Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/python/2023.json)
143146
[![2022 Python Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/python/2022.json)](/solutions/python/year2022/)
144147
![2021 Python Progress](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/AlexAegis/advent-of-code/master/.github/badges/python/2021.json)

solutions/typescript/2015/01/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
"build-lib_": "vite build",
4242
"format": "turbo run format_ --concurrency 16 --filter @alexaegis/advent-of-code-2015-01",
4343
"format_": "prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --write .",
44-
"p1": "RUN=1 NODE_NO_WARNINGS=1 ts-node-esm src/p1.ts",
45-
"p2": "RUN=1 NODE_NO_WARNINGS=1 ts-node-esm src/p2.ts"
44+
"p1": "RUN=1 NODE_NO_WARNINGS=1 tsx src/p1.ts",
45+
"p2": "RUN=1 NODE_NO_WARNINGS=1 tsx src/p2.ts"
4646
},
4747
"exports": {
4848
"./p1": {
@@ -67,7 +67,6 @@
6767
"@alexaegis/vite": "^0.12.0",
6868
"@alexaegis/vitest": "^0.12.0",
6969
"@types/node": "^22.10.1",
70-
"ts-node": "^10.9.2",
7170
"vite": "^6.0.1",
7271
"vitest": "^2.1.6"
7372
}

solutions/typescript/2015/02/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
"build-lib_": "vite build",
4242
"format": "turbo run format_ --concurrency 16 --filter @alexaegis/advent-of-code-2015-02",
4343
"format_": "prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --write .",
44-
"p1": "RUN=1 NODE_NO_WARNINGS=1 ts-node-esm src/p1.ts",
45-
"p2": "RUN=1 NODE_NO_WARNINGS=1 ts-node-esm src/p2.ts"
44+
"p1": "RUN=1 NODE_NO_WARNINGS=1 tsx src/p1.ts",
45+
"p2": "RUN=1 NODE_NO_WARNINGS=1 tsx src/p2.ts"
4646
},
4747
"exports": {
4848
"./p1": {

solutions/typescript/2015/03/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
"build-lib_": "vite build",
4242
"format": "turbo run format_ --concurrency 16 --filter @alexaegis/advent-of-code-2015-03",
4343
"format_": "prettier --cache-location .cache/prettier --plugin prettier-plugin-svelte --plugin prettier-plugin-tailwindcss --write .",
44-
"p1": "RUN=1 NODE_NO_WARNINGS=1 ts-node-esm src/p1.ts",
45-
"p2": "RUN=1 NODE_NO_WARNINGS=1 ts-node-esm src/p2.ts"
44+
"p1": "RUN=1 NODE_NO_WARNINGS=1 tsx src/p1.ts",
45+
"p2": "RUN=1 NODE_NO_WARNINGS=1 tsx src/p2.ts"
4646
},
4747
"exports": {
4848
"./p1": {

0 commit comments

Comments
 (0)