Skip to content

Commit 6a59bda

Browse files
committed
Bump bun version
1 parent 9cd0e72 commit 6a59bda

File tree

15 files changed

+93
-61
lines changed

15 files changed

+93
-61
lines changed

compiled_starters/typescript/.codecrafters/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99
set -e # Exit on failure
1010

11-
exec bun run app/main.ts "$@"
11+
exec bun run $(dirname $0)/app/main.ts "$@"
726 Bytes
Binary file not shown.
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
{
2-
"name": "@codecrafters/build-your-own-http-server",
3-
"description": "Build your own HTTP Server challenge, from CodeCrafters",
2+
"name": "@codecrafters/http-server",
3+
"description": "Build your own HTTP server challenge, from CodeCrafters",
44
"type": "module",
55
"scripts": {
66
"dev": "bun run app/main.ts"
77
},
8-
"dependencies": {
9-
"async": "^3.2.0"
10-
},
118
"devDependencies": {
12-
"@types/node": "^20.12.11"
9+
"@types/bun": "latest"
1310
}
14-
}
11+
}
Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
11
{
2-
"compilerOptions": {
3-
"target": "ES2020",
4-
"module": "ES2020",
5-
"moduleResolution": "node",
6-
"esModuleInterop": true,
7-
"strict": true,
8-
"skipLibCheck": true,
9-
},
10-
"ts-node": {
11-
"esm": true
12-
}
2+
"compilerOptions": {
3+
// Enable latest features
4+
"lib": ["ESNext", "DOM"],
5+
"target": "ESNext",
6+
"module": "ESNext",
7+
"moduleDetection": "force",
8+
"jsx": "react-jsx",
9+
"allowJs": true,
10+
11+
// Bundler mode
12+
"moduleResolution": "bundler",
13+
"allowImportingTsExtensions": true,
14+
"verbatimModuleSyntax": true,
15+
"noEmit": true,
16+
17+
// Best practices
18+
"strict": true,
19+
"skipLibCheck": true,
20+
"noFallthroughCasesInSwitch": true,
21+
22+
// Some stricter flags (disabled by default)
23+
"noUnusedLocals": false,
24+
"noUnusedParameters": false,
25+
"noPropertyAccessFromIndexSignature": false
26+
}
1327
}

compiled_starters/typescript/your_program.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ set -e # Exit early if any commands fail
1212
#
1313
# - Edit this to change how your program runs locally
1414
# - Edit .codecrafters/run.sh to change how your program runs remotely
15-
exec bun run app/main.ts "$@"
15+
exec bun run $(dirname $0)/app/main.ts "$@"

dockerfiles/bun-1.1.Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# syntax=docker/dockerfile:1.7-labs
2-
FROM oven/bun:1.1.4-alpine
2+
FROM oven/bun:1.1-alpine
33

4-
# Re-build image if any of these files change
54
ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="package.json,bun.lockb"
65

76
WORKDIR /app

solutions/typescript/01-at4/code/.codecrafters/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99
set -e # Exit on failure
1010

11-
exec bun run app/main.ts "$@"
11+
exec bun run $(dirname $0)/app/main.ts "$@"
726 Bytes
Binary file not shown.
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
{
2-
"name": "@codecrafters/build-your-own-http-server",
3-
"description": "Build your own HTTP Server challenge, from CodeCrafters",
2+
"name": "@codecrafters/http-server",
3+
"description": "Build your own HTTP server challenge, from CodeCrafters",
44
"type": "module",
55
"scripts": {
66
"dev": "bun run app/main.ts"
77
},
8-
"dependencies": {
9-
"async": "^3.2.0"
10-
},
118
"devDependencies": {
12-
"@types/node": "^20.12.11"
9+
"@types/bun": "latest"
1310
}
14-
}
11+
}
Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
11
{
2-
"compilerOptions": {
3-
"target": "ES2020",
4-
"module": "ES2020",
5-
"moduleResolution": "node",
6-
"esModuleInterop": true,
7-
"strict": true,
8-
"skipLibCheck": true,
9-
},
10-
"ts-node": {
11-
"esm": true
12-
}
2+
"compilerOptions": {
3+
// Enable latest features
4+
"lib": ["ESNext", "DOM"],
5+
"target": "ESNext",
6+
"module": "ESNext",
7+
"moduleDetection": "force",
8+
"jsx": "react-jsx",
9+
"allowJs": true,
10+
11+
// Bundler mode
12+
"moduleResolution": "bundler",
13+
"allowImportingTsExtensions": true,
14+
"verbatimModuleSyntax": true,
15+
"noEmit": true,
16+
17+
// Best practices
18+
"strict": true,
19+
"skipLibCheck": true,
20+
"noFallthroughCasesInSwitch": true,
21+
22+
// Some stricter flags (disabled by default)
23+
"noUnusedLocals": false,
24+
"noUnusedParameters": false,
25+
"noPropertyAccessFromIndexSignature": false
26+
}
1327
}

0 commit comments

Comments
 (0)