File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ COPY bunfig.toml bunfig.toml
2828COPY package.json package.json
2929COPY test-setup.ts test-setup.ts
3030COPY tsconfig.json tsconfig.json
31+ COPY package.json package.json
3132
3233# tests & build
3334ENV NODE_ENV=production
Original file line number Diff line number Diff line change 11import { cors } from '@elysiajs/cors' ;
22import { openapi } from '@elysiajs/openapi' ;
33import { Elysia } from 'elysia' ;
4+ import packageJson from '../package.json' ;
45import { GitHubDecorator } from './decorators/github' ;
56import { JwtDecorator } from './decorators/jwt' ;
67import { GitHubApiError , GitHubAuthUnauthorizedError , NullishError } from './errors' ;
@@ -12,11 +13,7 @@ import {
1213} from './handlers/auth/github' ;
1314import { authJwks } from './handlers/auth/jwks' ;
1415
15- const {
16- version : appVersion ,
17- name : appName ,
18- description : appDescription
19- } = await Bun . file ( './package.json' ) . json ( ) ;
16+ const { version : appVersion , name : appName , description : appDescription } = packageJson ;
2017
2118export const app = new Elysia ( )
2219 . error ( {
@@ -64,4 +61,6 @@ export const app = new Elysia()
6461 )
6562 . listen ( 3000 ) ;
6663
67- console . log ( `🛰️ Juno API is running at ${ app . server ?. hostname } :${ app . server ?. port } ` ) ;
64+ console . log (
65+ `🛰️ Juno API (v${ appVersion } ) is running at ${ app . server ?. hostname } :${ app . server ?. port } `
66+ ) ;
Original file line number Diff line number Diff line change 3737 ] /* Specify type package names to be included without being referenced in a source file. */ ,
3838 // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
3939 // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
40- // "resolveJsonModule": true, /* Enable importing .json files. */
40+ "resolveJsonModule" : true /* Enable importing .json files. */ ,
4141 // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
4242
4343 /* JavaScript Support */
You can’t perform that action at this time.
0 commit comments