Projektstart
This commit is contained in:
16
backend/node_modules/@fastify/swagger/lib/util/read-package-json.js
generated
vendored
Normal file
16
backend/node_modules/@fastify/swagger/lib/util/read-package-json.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
'use strict'
|
||||
|
||||
const fs = require('node:fs')
|
||||
const path = require('node:path')
|
||||
|
||||
function readPackageJson () {
|
||||
try {
|
||||
return JSON.parse(fs.readFileSync(path.join(__dirname, '..', '..', 'package.json')))
|
||||
} catch {
|
||||
return {}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
readPackageJson
|
||||
}
|
||||
Reference in New Issue
Block a user