Skip to content

Commit

Permalink
Merge pull request #4 from rustymotors/switch-to-ts
Browse files Browse the repository at this point in the history
feat: add initial project setup with README and TypeScript configuration
  • Loading branch information
drazisil authored Dec 15, 2024
2 parents 6bc2d9e + aa37b6a commit a7411e5
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 52 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# project-lotus

To install dependencies:

```bash
bun install
```

To run:

```bash
bun run index.js
```

This project was created using `bun init` in bun v1.1.38. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
Binary file added bun.lockb
Binary file not shown.
2 changes: 2 additions & 0 deletions generated/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions generated/index.d.ts.map

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

1 change: 1 addition & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log("Hello via Bun!");
45 changes: 0 additions & 45 deletions package-lock.json

This file was deleted.

8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,11 @@
"dependencies": {
"@types/node": "^22.10.2",
"typescript": "^5.7.2"
},
"devDependencies": {
"@types/bun": "latest"
},
"peerDependencies": {
"typescript": "^5.0.0"
}
}
}
20 changes: 14 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
{
"compilerOptions": {
"target": "es2016",
"module": "commonjs",
"lib": ["ESNext"],
"target": "ESNext",
"module": "ESNext",
"moduleDetection": "force",
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"emitDeclarationOnly": true,
"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noPropertyAccessFromIndexSignature": true,
"rootDirs": [],
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"outDir": "./dist",
"declarationDir": "./generated",
"isolatedModules": true,
"verbatimModuleSyntax": true,
"isolatedDeclarations": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipDefaultLibCheck": true,
"skipLibCheck": true
}
}

0 comments on commit a7411e5

Please sign in to comment.