Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Upgrade repo infrastructure #215

Merged
merged 22 commits into from
Dec 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
More stuff
patricklafrance committed Dec 11, 2024
commit 17ea709956e31b01e83be6e9e5161be0f1599c31
31 changes: 31 additions & 0 deletions .syncpackrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// @ts-check

/** @type {import("syncpack").RcFile} */
export default {
"lintFormatting": false,
"dependencyTypes": ["prod", "dev"],
"semverGroups": [
{
"range": "^",
"dependencyTypes": ["prod"],
"dependencies": ["**"],
"packages": ["@workleap/**"]
},
{
"range": "",
"dependencyTypes": ["prod", "dev"],
"dependencies": ["**"],
"packages": ["**"],
"label": "packages version should be pinned"
},
],
"versionGroups": [
{
"dependencyTypes": ["prod", "dev"],
"preferVersion": "highestSemver",
"dependencies": ["**"],
"packages": ["**"],
"label": "packages should have a single version across the repository"
}
]
};
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -19,8 +19,8 @@
"lint": "turbo run lint --continue",
"eslint": "eslint . --ignore-pattern packages --ignore-pattern sample --max-warnings=-0 --cache --cache-location node_modules/.cache/eslint",
"typecheck": "tsc",
"knip": "",
"syncpack": "",
"syncpack": "syncpack lint",
"knip": "knip --cache --cache-location ./node_modules/.cache/knip",
"test": "turbo run test --continue",
"changeset": "changeset",
"publish-pkg": "changeset publish",
@@ -41,7 +41,7 @@
"pkg-pr-new": "0.0.35",
"prettier": "3.4.2",
"retypeapp": "3.6.0",
"stylelint": "16.11.0",
"syncpack": "13.0.0",
"turbo": "2.3.3",
"typescript": "5.5.4"
},
222 changes: 219 additions & 3 deletions pnpm-lock.yaml
4 changes: 3 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@
"persistent": true
},
"lint": {
"dependsOn": ["eslint", "typecheck"]
"dependsOn": ["eslint", "typecheck", "//#syncpack", "//#knip"]
},
"//#eslint": {
"dependsOn": ["@workleap/eslint-plugin#build"],
@@ -45,6 +45,8 @@
"dependsOn": ["^typecheck", "//#typecheck"],
"outputs": ["node_modules/.cache/tsbuildinfo.json"]
},
"//#syncpack": {},
"//#knip": {},
"@sample/app#test": {
"dependsOn": ["@workleap/swc-configs#build", "@sample/tsup-lib#build"],
"outputs": ["node_modules/.cache/jest/**"]