Skip to content

Commit

Permalink
Require vs import due to file location (#3161)
Browse files Browse the repository at this point in the history
* Require vs import due to file location
  • Loading branch information
abtestingalpha authored Sep 20, 2024
1 parent c262b01 commit c32b70b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/rest-api/src/swagger.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import swaggerJsdoc from 'swagger-jsdoc'

import { version } from '../package.json'
// eslint-disable-next-line @typescript-eslint/no-var-requires
const packageJson = require('../package.json')

const isDevelopment = process.env.NODE_ENV === 'development'
const serverUrl = isDevelopment
Expand All @@ -12,7 +13,7 @@ const options: swaggerJsdoc.Options = {
openapi: '3.0.0',
info: {
title: 'Syanpse Protocol REST API',
version,
version: packageJson.version,
description: 'API documentation for the Synapse Protocol REST API',
},
servers: [
Expand Down

0 comments on commit c32b70b

Please sign in to comment.