Skip to content

Commit

Permalink
Merge pull request #72 from codecrafters-io/CC-1202
Browse files Browse the repository at this point in the history
CC-1202: add tsconfig.json to TS repos
  • Loading branch information
ryan-gang authored May 19, 2024
2 parents 825426d + 681eeed commit 6a2700f
Show file tree
Hide file tree
Showing 10 changed files with 77 additions and 27 deletions.
Binary file modified compiled_starters/typescript/bun.lockb
Binary file not shown.
21 changes: 12 additions & 9 deletions compiled_starters/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"name": "@codecrafters/build-your-own-grep",
"description": "Build your own Grep challenge, from CodeCrafters",
"type": "module",
"scripts": {
"dev": "bun run app/main.ts"
},
"dependencies": {
"fs-extra": "^11.2.0"
}
"name": "@codecrafters/build-your-own-grep",
"description": "Build your own Grep challenge, from CodeCrafters",
"type": "module",
"scripts": {
"dev": "bun run app/main.ts"
},
"dependencies": {
"fs-extra": "^11.2.0"
},
"devDependencies": {
"@types/node": "^20.12.12"
}
}
13 changes: 13 additions & 0 deletions compiled_starters/typescript/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "ES2022",
"moduleResolution": "node",
"esModuleInterop": true,
"strict": true,
"skipLibCheck": true,
},
"ts-node": {
"esm": true
}
}
Binary file modified solutions/typescript/01-cq2/code/bun.lockb
Binary file not shown.
21 changes: 12 additions & 9 deletions solutions/typescript/01-cq2/code/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"name": "@codecrafters/build-your-own-grep",
"description": "Build your own Grep challenge, from CodeCrafters",
"type": "module",
"scripts": {
"dev": "bun run app/main.ts"
},
"dependencies": {
"fs-extra": "^11.2.0"
}
"name": "@codecrafters/build-your-own-grep",
"description": "Build your own Grep challenge, from CodeCrafters",
"type": "module",
"scripts": {
"dev": "bun run app/main.ts"
},
"dependencies": {
"fs-extra": "^11.2.0"
},
"devDependencies": {
"@types/node": "^20.12.12"
}
}
13 changes: 13 additions & 0 deletions solutions/typescript/01-cq2/code/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "ES2022",
"moduleResolution": "node",
"esModuleInterop": true,
"strict": true,
"skipLibCheck": true,
},
"ts-node": {
"esm": true
}
}
2 changes: 2 additions & 0 deletions starter-repository-definitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@
target: package.json
- source: starter_templates/typescript/bun.lockb
target: bun.lockb
- source: starter_templates/typescript/tsconfig.json
target: tsconfig.json
- source: starter_templates/typescript/your_grep.sh
target: your_grep.sh
- source: starter_templates/.gitattributes
Expand Down
Binary file modified starter_templates/typescript/bun.lockb
Binary file not shown.
21 changes: 12 additions & 9 deletions starter_templates/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"name": "@codecrafters/build-your-own-grep",
"description": "Build your own Grep challenge, from CodeCrafters",
"type": "module",
"scripts": {
"dev": "bun run app/main.ts"
},
"dependencies": {
"fs-extra": "^11.2.0"
}
"name": "@codecrafters/build-your-own-grep",
"description": "Build your own Grep challenge, from CodeCrafters",
"type": "module",
"scripts": {
"dev": "bun run app/main.ts"
},
"dependencies": {
"fs-extra": "^11.2.0"
},
"devDependencies": {
"@types/node": "^20.12.12"
}
}
13 changes: 13 additions & 0 deletions starter_templates/typescript/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "ES2022",
"moduleResolution": "node",
"esModuleInterop": true,
"strict": true,
"skipLibCheck": true,
},
"ts-node": {
"esm": true
}
}

0 comments on commit 6a2700f

Please sign in to comment.