|
| 1 | +// @ts-check |
| 2 | +/** @type {import("syncpack").RcFile} */ |
| 3 | +const config = { |
| 4 | + indent: '\t', |
| 5 | + lintFormatting: false, // handled by prettier |
| 6 | + versionGroups: [ |
| 7 | + { |
| 8 | + label: 'local packages', |
| 9 | + packages: ['**'], |
| 10 | + dependencies: ['@repo/*'], |
| 11 | + dependencyTypes: ['!local'], // Exclude the local package itself |
| 12 | + pinVersion: 'workspace:*', |
| 13 | + }, |
| 14 | + { |
| 15 | + label: 'Sentry types that are compatible with toucan-js', |
| 16 | + dependencies: ['@sentry/types', '@sentry/tracing'], |
| 17 | + pinVersion: '7.76.0', |
| 18 | + }, |
| 19 | + { |
| 20 | + label: 'toucan-js that is compatible with pinned sentry types', |
| 21 | + dependencies: ['toucan-js'], |
| 22 | + pinVersion: '3.3.1', |
| 23 | + }, |
| 24 | + { |
| 25 | + label: 'pin vitest compatible with @cloudflare/vitest-pool-workers', |
| 26 | + dependencies: ['vitest', '@vitest/ui'], |
| 27 | + pinVersion: '3.0.9', |
| 28 | + }, |
| 29 | + { |
| 30 | + label: 'pin typescript for eslint', |
| 31 | + dependencies: ['typescript'], |
| 32 | + pinVersion: '5.5.4', |
| 33 | + }, |
| 34 | + { |
| 35 | + label: `pin eslint and all it's plugins for eslint v8`, |
| 36 | + dependencies: [ |
| 37 | + 'eslint', |
| 38 | + '@types/eslint', |
| 39 | + 'eslint-config-prettier', |
| 40 | + 'eslint-plugin-react-hooks', |
| 41 | + 'eslint-plugin-unused-imports', |
| 42 | + '@typescript-eslint/eslint-plugin', |
| 43 | + '@typescript-eslint/parser', |
| 44 | + ], |
| 45 | + // snapTo removes it from syncpack update list, which is the main goal |
| 46 | + snapTo: ['@repo/eslint-config'], |
| 47 | + }, |
| 48 | + ], |
| 49 | + semverGroups: [ |
| 50 | + { |
| 51 | + label: 'pin all deps', |
| 52 | + range: '', |
| 53 | + dependencies: ['**'], |
| 54 | + packages: ['**'], |
| 55 | + }, |
| 56 | + ], |
| 57 | +} |
| 58 | + |
| 59 | +module.exports = config |
0 commit comments