Skip to content

Commit

Permalink
💚 [api]: Fix CI build #146
Browse files Browse the repository at this point in the history
  • Loading branch information
apolkingg8 committed Nov 15, 2021
1 parent f3f61ba commit db20e2a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions libs/shared/util-event/src/generateEventInterface.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import { compile, compileFromFile } from 'json-schema-to-typescript'
import { readFile, write, writeFile } from 'fs-extra'
import { compileFromFile } from 'json-schema-to-typescript'
import path from 'path'
import { readdir } from 'fs-extra'
import { ensureDir, readdir, writeFile } from "fs-extra";

export const generateEventInterface = async () => {
const interfaceFolderPath = path.resolve(__dirname, '..', 'interface')
const schemaFolderPath = path.resolve(__dirname, '..', 'schema')
const schemaFileNames = await readdir(schemaFolderPath)
let indexStr = ``

await ensureDir(interfaceFolderPath)

for (const schemaFileName of schemaFileNames) {
try {
const schemaFilePath = path.resolve(schemaFolderPath, schemaFileName)
Expand Down

0 comments on commit db20e2a

Please sign in to comment.