Skip to content

Conversation

gallayl
Copy link
Contributor

@gallayl gallayl commented Jun 2, 2024

After updating glob to ^10.x.x, named exports where removed
There was 1 global import left in the factory that prevented the generation from code-level with the following stack:

There was an error generating schema from ./src/models/config/*.ts TypeError: glob.sync is not a function
    at createProgram (file:///home/runner/work/pi-rat/pi-rat/node_modules/ts-json-schema-generator/dist/factory/program.js:51:1[6](https://github.com/furystack/pi-rat/actions/runs/9336662958/job/25697493845?pr=57#step:7:7))
    at createGenerator (file:///home/runner/work/pi-rat/pi-rat/node_modules/ts-json-schema-generator/dist/factory/generator.js:8:21)
    at file:///home/runner/work/pi-rat/pi-rat/common/dist/bin/create-schemas.js:92:28
    at Array.map (<anonymous>)
    at exec (file:///home/runner/work/pi-rat/pi-rat/common/dist/bin/create-schemas.js:8[7](https://github.com/furystack/pi-rat/actions/runs/9336662958/job/25697493845?pr=57#step:7:8):55)
    at file:///home/runner/work/pi-rat/pi-rat/common/dist/bin/create-schemas.js:105:1
    at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:123:5)

This little PR fixes the invalid import

Version

Published prerelease version: v2.3.0-next.5

Changelog

🎉 This release contains work from a new contributor! 🎉

Thank you, Lajos (@gallayl), for all your work!

🚀 Enhancement

🐛 Bug Fix

  • fix(factory): Fix deprecated glob import that prevents using from code after glob upgrade #1981 (@gallayl)
  • fix: Unknown type "undefined" when using generics without base type #1978 (@arthurfiorette)

🔩 Dependency Updates

Authors: 4

Copy link

github-actions bot commented Jun 5, 2024

🚀 PR was released in v2.3.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants