From 93d7af271d045fc1a8fa4d86854a44b8a922597b Mon Sep 17 00:00:00 2001 From: "Ricardo (XenGi) Band" Date: Tue, 17 Oct 2023 23:12:33 +0200 Subject: [PATCH] init bun project --- bun.lockb | Bin 0 -> 1677 bytes package.json | 14 ++++++++++++++ server.ts | 1 + tsconfig.json | 22 ++++++++++++++++++++++ 4 files changed, 37 insertions(+) create mode 100755 bun.lockb create mode 100644 package.json create mode 100644 server.ts create mode 100644 tsconfig.json diff --git a/bun.lockb b/bun.lockb new file mode 100755 index 0000000000000000000000000000000000000000..866b4804cd0a78d684ee3a6d2da87ab388b62ad2 GIT binary patch literal 1677 zcmY#Z)GsYA(of3F(@)JSQ%EY!;{sycoc!eMw9K4T-L(9o+{6;yG6OCq1_p-ptCq}- z-P^L@%p(iaDOEAMk6v|oA5hn zWS}S)5OXpxfE57Q4P29D+4`<2OH{u}KieVnT4}y&gN}AJ3 zz|3O`XxDn~Z&G8<*uUZ-`A? z7;sqhy2VlNSv7AyUIW?Ni8m6VE6zv+W=a+paxcP zYHnF-k)CTsNorAEVoq>LQD$Dcoq{34dJ81$ONv3I4Fki0-y%zkrc4k46?`Bu{(FmU z-pLm3Dk&~bEdrVsds(3|D9!taFHkKH(7i1dre_!{`2Hn8-S8Fe7LZ>Jae0-Yq_QBj zIJqdZpafK`f_WJwB?ZM+`uatw>6yhPMU{Ga1-V(pdih1^`fxS+x(K$eAuxc<^h(mJ eAdZDN5RWMcJAuX^IJ%~KMnDKO2OI)}kN^O!xh84= literal 0 HcmV?d00001 diff --git a/package.json b/package.json new file mode 100644 index 0000000..6b2d4e4 --- /dev/null +++ b/package.json @@ -0,0 +1,14 @@ +{ + "name": "sanic", + "module": "server.ts", + "type": "module", + "scripts": { + "start": "bun run server.ts" + }, + "devDependencies": { + "bun-types": "latest" + }, + "peerDependencies": { + "typescript": "^5.0.0" + } +} diff --git a/server.ts b/server.ts new file mode 100644 index 0000000..f67b2c6 --- /dev/null +++ b/server.ts @@ -0,0 +1 @@ +console.log("Hello via Bun!"); \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..7556e1d --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "lib": ["ESNext"], + "module": "esnext", + "target": "esnext", + "moduleResolution": "bundler", + "moduleDetection": "force", + "allowImportingTsExtensions": true, + "noEmit": true, + "composite": true, + "strict": true, + "downlevelIteration": true, + "skipLibCheck": true, + "jsx": "react-jsx", + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "allowJs": true, + "types": [ + "bun-types" // add Bun global + ] + } +}