Skip to content

Commit

Permalink
[WIP] import latest fluid config
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMason committed Oct 26, 2024
1 parent ea9d12c commit 2f61943
Showing 1 changed file with 147 additions and 27 deletions.
174 changes: 147 additions & 27 deletions fixtures/fluid-framework/.syncpackrc.json
Original file line number Diff line number Diff line change
@@ -1,55 +1,175 @@
{
"indent": "\\t",
"customTypes": {
"engines": {
"path": "engines",
"strategy": "versionsByName"
},
"packageManager": {
"path": "packageManager",
"strategy": "name@version"
}
"engines": { "path": "engines", "strategy": "versionsByName" },
"packageManager": { "path": "packageManager", "strategy": "name@version" }
},
"source": [
"**/package.json"
],
"semverGroups": [
{
"dependencyTypes": [
"dev"
],
"label": "Version compatibility workarounds should be used, or removed from syncpack.config.cjs if no longer needed.",
"dependencies": ["@oclif/core"],
"dependencyTypes": ["pnpmOverrides"],
"packages": ["**"],
"range": "~"
},
{
"label": "engines.node should always use >= ranges",
"dependencyTypes": ["engines"],
"dependencies": ["node"],
"packages": ["**"],
"range": ">="
},
{
"label": "engines.npm should always use caret ranges",
"dependencyTypes": ["engines"],
"dependencies": ["npm"],
"packages": ["**"],
"range": "^"
},
{
"dependencyTypes": [
"prod"
"label": "packageManager should always use exact dependency ranges",
"dependencyTypes": ["packageManager"],
"dependencies": ["**"],
"packages": ["**"],
"range": ""
},
{
"dependencies": ["**"],
"packages": ["@fluid-experimental/property-*"],
"isIgnored": true
},
{
"label": "Overridden server dependencies should always be exact versions",
"dependencyTypes": ["pnpmOverrides"],
"dependencies": [
"@fluidframework/gitresources",
"@fluidframework/protocol-base",
"@fluidframework/server-*"
],
"packages": ["**"],
"range": ""
},
{
"label": "Deps in pnpm overrides can use whatever dependency ranges they need",
"dependencyTypes": ["pnpmOverrides"],
"dependencies": ["**"],
"packages": ["**"],
"isIgnored": true
},
{
"label": "Must use exact dependency ranges",
"dependencies": [
"@tiny-calc/*",
"@graphql-codegen/cli",
"@graphql-codegen/typescript",
"@material-ui/*",
"@microsoft/api-extractor",
"@types/chrome",
"@types/codemirror",
"@types/expect-puppeteer",
"@types/jest-environment-puppeteer",
"@types/jest",
"@types/puppeteer",
"@types/url-parse",
"fake-indexeddb",
"json-stringify-safe",
"yargs"
],
"packages": ["**"],
"range": ""
},
{
"label": "Must use tilde dependency ranges",
"dependencies": [
"@biomejs/biome",
"eslint-plugin-*",
"eslint-config-prettier",
"eslint",
"less",
"prettier",
"typescript",
"vue",
"webpack-dev-server",
"@cerner/duplicate-package-checker-webpack-plugin",
"socket.io-client"
],
"packages": ["**"],
"range": "~"
},
{
"label": "Dependencies should use caret dependency ranges",
"dependencies": ["**"],
"dependencyTypes": ["dev", "peer", "prod"],
"packages": ["**"],
"range": "^"
}
],
"versionGroups": [
{
"label": "Ignore TypeScript",
"label": "Version compatibility workarounds should be used, or removed from syncpack.config.cjs if no longer needed.",
"dependencies": [
"!fluid-framework"
"react-virtualized-auto-sizer",
"@types/react",
"@types/react-dom"
],
"packages": ["**"],
"isIgnored": true
},
{
"label": "Ignore private workaround package @types/jest-environment-puppeteer",
"dependencies": ["@types/jest-environment-puppeteer"],
"dependencyTypes": ["dev", "prod"],
"packages": ["**"],
"isIgnored": true
},
{
"label": "Snap Biome",
"label": "Versions of common Fluid packages should all match",
"dependencies": [
"@biomejs/biome"
"@fluid-internal/eslint-plugin-fluid",
"@fluid-tools/benchmark",
"@fluid-tools/build-cli",
"@fluidframework/build-common",
"@fluidframework/build-tools",
"@fluidframework/common-utils",
"@fluidframework/eslint-config-fluid",
"@fluidframework/protocol-definitions",
"@fluidframework/test-tools"
],
"snapTo": [
"@fluidframework/azure-local-service"
]
"packages": ["**"]
},
{
"label": "Pin arethetypeswrong",
"dependencies": [
"@arethetypeswrong/cli"
"label": "Versions in engines field should all match",
"dependencyTypes": ["engines"],
"dependencies": ["**"],
"packages": ["**"]
},
{
"label": "Versions in packageManager field should all match",
"dependencyTypes": ["packageManager"],
"dependencies": ["**"],
"packages": ["**"]
},
{
"label": "Ignore interdependencies on other Fluid packages. This is needed because syncpack doesn't understand our >= < semver ranges",
"isIgnored": true,
"packages": [
"@fluid-example/**",
"@fluid-experimental/**",
"@fluid-internal/**",
"@fluid-private/**",
"@fluid-tools/**",
"@fluidframework/**",
"fluid-framework"
],
"pinVersion": "~0.2.2"
"dependencies": [
"@fluid-example/**",
"@fluid-experimental/**",
"@fluid-internal/**",
"@fluid-private/**",
"@fluid-tools/**",
"@fluidframework/**",
"fluid-framework"
]
}
]
}

0 comments on commit 2f61943

Please sign in to comment.