Skip to content

Commit

Permalink
BugFix: create __generated__ folder if it doesn't exists
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenSanzas committed Jul 25, 2024
1 parent fbe0233 commit ab37b79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/web/scripts/compile-ajv-validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const tokenListAjv = new Ajv({ code: { source: true, esm: true } })
addFormats(tokenListAjv)
const validateTokenList = tokenListAjv.compile(schema)
let tokenListModuleCode = standaloneCode(tokenListAjv, validateTokenList)
fs.mkdirSync(path.join(__dirname, '../src/utils/__generated__'), { recursive: true })
fs.writeFileSync(path.join(__dirname, '../src/utils/__generated__/validateTokenList.js'), tokenListModuleCode)

const tokensAjv = new Ajv({ code: { source: true, esm: true } })
Expand Down

0 comments on commit ab37b79

Please sign in to comment.