-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: improve monorepo package confs (#475)
* chore: remove uncessary ignore `eslint` comment * build: make it node 16 * build: add postinstall command * build: improve the post install script * chore: format * build: add `syncpack` * chore: add new deps format * ci: add deps check job * fix: catalog removal issues * build: update `lock`
- Loading branch information
Showing
19 changed files
with
2,199 additions
and
2,355 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: CI | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
jobs: | ||
format: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/pnpm-install | ||
- name: check dependencies | ||
# if it errors out, u need to run `pnpm deps:format && pnpm deps:fix` locally before u push | ||
run: pnpm deps:check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"dependencyTypes": [ | ||
"prod", | ||
"dev" | ||
], | ||
"source": [ | ||
"package.json", | ||
"packages/*/package.json", | ||
"apps/*/package.json", | ||
"tooling/*/package.json" | ||
], | ||
"semverGroups": [ | ||
{ | ||
"label": "use exact versions for production dependencies", | ||
"dependencyTypes": [ | ||
"prod" | ||
], | ||
"dependencies": [ | ||
"**" | ||
], | ||
"range": "" | ||
}, | ||
{ | ||
"label": "use caret ranges for development dependencies", | ||
"dependencyTypes": [ | ||
"dev" | ||
], | ||
"dependencies": [ | ||
"**" | ||
], | ||
"range": "^" | ||
} | ||
], | ||
"versionGroups": [ | ||
{ | ||
"label": "ensure react packages are in sync", | ||
"dependencies": [ | ||
"react", | ||
"react-dom", | ||
"@types/react", | ||
"@types/react-dom" | ||
], | ||
"packages": [ | ||
"**" | ||
], | ||
"dependencyTypes": [ | ||
"prod", | ||
"dev", | ||
"peer" | ||
], | ||
"pinVersion": "catalog:react18" | ||
} | ||
], | ||
"sortFirst": [ | ||
"name", | ||
"version", | ||
"private", | ||
"scripts" | ||
], | ||
"sortAz": [ | ||
"dependencies", | ||
"devDependencies", | ||
"peerDependencies", | ||
"scripts" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.