diff --git a/compiled_starters/typescript/bun.lockb b/compiled_starters/typescript/bun.lockb index 75ec761..1b830cd 100755 Binary files a/compiled_starters/typescript/bun.lockb and b/compiled_starters/typescript/bun.lockb differ diff --git a/compiled_starters/typescript/package.json b/compiled_starters/typescript/package.json index 4ed8246..54632d5 100644 --- a/compiled_starters/typescript/package.json +++ b/compiled_starters/typescript/package.json @@ -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" + } } \ No newline at end of file diff --git a/compiled_starters/typescript/tsconfig.json b/compiled_starters/typescript/tsconfig.json new file mode 100644 index 0000000..4fce359 --- /dev/null +++ b/compiled_starters/typescript/tsconfig.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "ES2022", + "moduleResolution": "node", + "esModuleInterop": true, + "strict": true, + "skipLibCheck": true, + }, + "ts-node": { + "esm": true + } +} diff --git a/solutions/typescript/01-cq2/code/bun.lockb b/solutions/typescript/01-cq2/code/bun.lockb index 75ec761..1b830cd 100755 Binary files a/solutions/typescript/01-cq2/code/bun.lockb and b/solutions/typescript/01-cq2/code/bun.lockb differ diff --git a/solutions/typescript/01-cq2/code/package.json b/solutions/typescript/01-cq2/code/package.json index 4ed8246..54632d5 100644 --- a/solutions/typescript/01-cq2/code/package.json +++ b/solutions/typescript/01-cq2/code/package.json @@ -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" + } } \ No newline at end of file diff --git a/solutions/typescript/01-cq2/code/tsconfig.json b/solutions/typescript/01-cq2/code/tsconfig.json new file mode 100644 index 0000000..4fce359 --- /dev/null +++ b/solutions/typescript/01-cq2/code/tsconfig.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "ES2022", + "moduleResolution": "node", + "esModuleInterop": true, + "strict": true, + "skipLibCheck": true, + }, + "ts-node": { + "esm": true + } +} diff --git a/starter-repository-definitions.yml b/starter-repository-definitions.yml index e711244..fd58c69 100644 --- a/starter-repository-definitions.yml +++ b/starter-repository-definitions.yml @@ -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 diff --git a/starter_templates/typescript/bun.lockb b/starter_templates/typescript/bun.lockb index 75ec761..1b830cd 100755 Binary files a/starter_templates/typescript/bun.lockb and b/starter_templates/typescript/bun.lockb differ diff --git a/starter_templates/typescript/package.json b/starter_templates/typescript/package.json index 4ed8246..54632d5 100644 --- a/starter_templates/typescript/package.json +++ b/starter_templates/typescript/package.json @@ -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" + } } \ No newline at end of file diff --git a/starter_templates/typescript/tsconfig.json b/starter_templates/typescript/tsconfig.json new file mode 100644 index 0000000..4fce359 --- /dev/null +++ b/starter_templates/typescript/tsconfig.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "ES2022", + "moduleResolution": "node", + "esModuleInterop": true, + "strict": true, + "skipLibCheck": true, + }, + "ts-node": { + "esm": true + } +}