Skip to content

Support default exports from config files + typing cleanup#875

Merged
ecraig12345 merged 1 commit into
mainfrom
stuff
Jun 11, 2026
Merged

Support default exports from config files + typing cleanup#875
ecraig12345 merged 1 commit into
mainfrom
stuff

Conversation

@ecraig12345

Copy link
Copy Markdown
Member

If just.config.* only has a default export, use that as the config. (A config file can also export named task functions, and theoretically a task could be called "default", so ignore the default export if there are other exports alongside it.)

Add proper types in various places instead of any:

  • webpackTask: Declare types for loading the config. Specify type of WebpackTaskOptions.onCompile stats. Remove WebpackTaskOptions.env which hasn't been used for a long time (seems like a leftover from when the task was CLI-based).
  • Specify real types for ApiExtractorOptions.onResult
  • Various internal typing fixes in just-task

@ecraig12345 ecraig12345 merged commit 3e960f7 into main Jun 11, 2026
7 checks passed
@ecraig12345 ecraig12345 deleted the stuff branch June 11, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant