mirror of
https://github.com/outline/outline.git
synced 2025-03-14 10:07:11 +00:00
13 lines
456 B
JavaScript
13 lines
456 B
JavaScript
export default {
|
|
// Efficiently run prettier and translation updates on changes to JS and
|
|
// TypeScript files
|
|
"**/*.[tj]s?(x)": [
|
|
(f) => (f.length > 20 ? `yarn lint --fix` : `eslint ${f.join(" ")} --fix`),
|
|
() => `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 yarn-deduplicate yarn.lock`,
|
|
};
|