Skip to content

Commit

Permalink
chore: upgrade equipped
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinand11 committed Jul 7, 2024
1 parent 009eb01 commit cd9070f
Show file tree
Hide file tree
Showing 14 changed files with 463 additions and 28 deletions.
5 changes: 3 additions & 2 deletions bin/generate-schemas.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
const { generateJSONSchema } = require('equipped')
const fs = require('fs')
const { dirname, join, resolve } = require('path')

const paths = process.argv.slice(2)

paths.forEach((path) => {
try {
const root = join(__dirname, '../services', path)
console.log(`Starting schema generation for ${path} service`)
const { generateJSONSchema } = require(`${root}/node_modules/equipped`)

const entry = resolve(__dirname, `../services/${path}/src/application`)
const entry = resolve(`${root}/src/application`)
const outputFile = join(entry, `schema.json`)
const routesEntry = join(entry, 'routes')

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"@types/node": "^20.12.5",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"equipped": "5.0.0-alpha.13",
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
Expand Down
Loading

0 comments on commit cd9070f

Please sign in to comment.