Learn how to solve CodeCrafters challenges in TypeScript
bun
installed. Our test runners use Bun v1.1 (as of May 2024).
The script for your challenge (like ./your_grep.sh
) will run your code using this version of bun
. It’ll
look something like this:
app/
directory.app/main.ts
is the entrypoint for the program.app/
. The test runner will include them when compiling your code.
For example, if you add a file at app/foo.ts
, you could use it like so:
export
keyword to functions and variables that you want
to export.bun add
.
For example, to add zod
as a dependency, run the following command:
package.json
file:
bun.lockb
file.