mirror of
https://github.com/outline/outline.git
synced 2026-06-13 03:14:59 +03:00
7cbd06541c
* Initial plan * Upgrade Yarn to 4.11.0 with node-modules linker and security settings Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com> * Restore rolldown resolution to package.json resolutions Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com> * Enable Corepack in CI workflow for Yarn 4.11.0 support Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com> * test * module resolution --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com> Co-authored-by: Tom Moor <tom@getoutline.com>
17 lines
550 B
JavaScript
17 lines
550 B
JavaScript
export default {
|
|
// Run prettier first for formatting, then oxlint for linting, and translation updates on changes to JS and
|
|
// TypeScript files
|
|
"**/*.[tj]s?(x)": [
|
|
(f) => `prettier --write ${f.join(" ")}`,
|
|
(f) =>
|
|
f.length > 20
|
|
? `yarn lint --fix`
|
|
: `oxlint ${f.join(" ")} --fix --type-aware`,
|
|
() => `yarn build:i18n`,
|
|
() => "git add shared/i18n/locales/en_US/translation.json",
|
|
],
|
|
|
|
// Automatically de-duplicate packages as yarn is terrible at it
|
|
"(yarn.lock|package.json)": () => `yarn dedupe`,
|
|
};
|