You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, mise task sources field doesn't support exclusion patterns. This means test files trigger rebuilds even when they're irrelevant for the task.
For example:
[build]
sources = ["src/**/*.ts", "tsconfig.json"] # Includes test filesrun = "npm run build"
When src/index.test.ts changes, the build task runs unnecessarily since test files aren't compiled.
I propose to support glob negation patterns in sources:
[build]
sources = ["src/**/*.ts", "!src/**/*.test.ts", "!src/**/*.spec.ts", "tsconfig.json"]
run = "npm run build"
Or alternatively, support a new field with excluded patterns:
[build]
sources = ["src/**/*.ts", "tsconfig.json"]
sources_exclude = ["**/*.test.ts", "**/*.spec.ts"]
run = "npm run build"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, mise task sources field doesn't support exclusion patterns. This means test files trigger rebuilds even when they're irrelevant for the task.
For example:
When
src/index.test.tschanges, the build task runs unnecessarily since test files aren't compiled.I propose to support glob negation patterns in sources:
Or alternatively, support a new field with excluded patterns:
Beta Was this translation helpful? Give feedback.
All reactions