Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiled_starters/typescript/.codecrafters/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

set -e # Exit on failure

exec bun run $(dirname $0)/app/main.ts "$@"
exec bun run "$(dirname "$0")/app/main.ts" "$@"
2 changes: 1 addition & 1 deletion compiled_starters/typescript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ That's all!

Note: This section is for stages 2 and beyond.

1. Ensure you have `bun (1.2)` installed locally
1. Ensure you have `bun (1.3)` installed locally
1. Run `./your_program.sh` to run your Kafka broker, which is implemented in
`app/main.ts`.
1. Commit your changes and run `git push origin master` to submit your solution
Expand Down
21 changes: 21 additions & 0 deletions compiled_starters/typescript/bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions compiled_starters/typescript/codecrafters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ debug: false
# Use this to change the TypeScript version used to run your code
# on Codecrafters.
#
# Available versions: bun-1.2
buildpack: bun-1.2
# Available versions: bun-1.3
buildpack: bun-1.3
2 changes: 1 addition & 1 deletion compiled_starters/typescript/your_program.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ set -e # Exit early if any commands fail
#
# - Edit this to change how your program runs locally
# - Edit .codecrafters/run.sh to change how your program runs remotely
exec bun run $(dirname $0)/app/main.ts "$@"
exec bun run "$(dirname "$0")/app/main.ts" "$@"
20 changes: 20 additions & 0 deletions dockerfiles/bun-1.3.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# syntax=docker/dockerfile:1.7-labs
FROM oven/bun:1.3-alpine

ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="package.json,bun.lock"

RUN apk add --no-cache --upgrade 'bash>=5.2'

WORKDIR /app

# .git & README.md are unique per-repository. We ignore them on first copy to prevent cache misses
COPY --exclude=.git --exclude=README.md . /app

# For reproducible builds.
# This will install the exact versions of each package specified in the lockfile.
# If package.json disagrees with bun.lockb, Bun will exit with an error. The lockfile will not be updated.
RUN bun install --frozen-lockfile

# If the node_modules directory exists, move it to /app-cached
RUN mkdir -p /app-cached
RUN if [ -d "/app/node_modules" ]; then mv /app/node_modules /app-cached; fi
2 changes: 1 addition & 1 deletion solutions/typescript/01-vi6/code/.codecrafters/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

set -e # Exit on failure

exec bun run $(dirname $0)/app/main.ts "$@"
exec bun run "$(dirname "$0")/app/main.ts" "$@"
2 changes: 1 addition & 1 deletion solutions/typescript/01-vi6/code/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ That's all!

Note: This section is for stages 2 and beyond.

1. Ensure you have `bun (1.2)` installed locally
1. Ensure you have `bun (1.3)` installed locally
1. Run `./your_program.sh` to run your Kafka broker, which is implemented in
`app/main.ts`.
1. Commit your changes and run `git push origin master` to submit your solution
Expand Down
21 changes: 21 additions & 0 deletions solutions/typescript/01-vi6/code/bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions solutions/typescript/01-vi6/code/codecrafters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ debug: false
# Use this to change the TypeScript version used to run your code
# on Codecrafters.
#
# Available versions: bun-1.2
buildpack: bun-1.2
# Available versions: bun-1.3
buildpack: bun-1.3
2 changes: 1 addition & 1 deletion solutions/typescript/01-vi6/code/your_program.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ set -e # Exit early if any commands fail
#
# - Edit this to change how your program runs locally
# - Edit .codecrafters/run.sh to change how your program runs remotely
exec bun run $(dirname $0)/app/main.ts "$@"
exec bun run "$(dirname "$0")/app/main.ts" "$@"
2 changes: 1 addition & 1 deletion starter_templates/typescript/code/.codecrafters/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

set -e # Exit on failure

exec bun run $(dirname $0)/app/main.ts "$@"
exec bun run "$(dirname "$0")/app/main.ts" "$@"
21 changes: 21 additions & 0 deletions starter_templates/typescript/code/bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion starter_templates/typescript/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
attributes:
required_executable: bun (1.2)
required_executable: bun (1.3)
user_editable_file: app/main.ts
Loading