-
Notifications
You must be signed in to change notification settings - Fork 300
feat: upgrade lerna and enable local cache #7098
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
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
c5c51d3
feat: upgrade to lerna 6
zahin-mohammad 9c3212a
feat: upgrade to lerna 7
zahin-mohammad 1f7bcd8
feat: upgrade to lerna 8
zahin-mohammad d2830f2
feat: integrate lerna cache
zahin-mohammad 4486023
chore: express tests should clean up encryptedPrivKeys.json
zahin-mohammad 7306a1f
chore: add clean-cache command
zahin-mohammad f7023ec
feat: enable cache in CI
zahin-mohammad 2b37aa4
feat: skip cache during publish
zahin-mohammad dd62c38
fix(root): resolve nx cache configuration and github actions issues
zahin-mohammad d049b8c
fix(babylonlabs-io-btc-staking-ts): resolve build issue caused by dep…
zahin-mohammad 56ade92
refactor(root): extract nx cache key pattern to workflow environment …
zahin-mohammad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -18,3 +18,6 @@ modules/**/pack-scoped/ | |
| coverage | ||
| /.direnv/ | ||
| .claude/ | ||
| .nx/ | ||
| CLAUDE.sessions.md | ||
| sessions/ | ||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -8,3 +8,5 @@ CHANGELOG.md | |
| flake.lock | ||
|
|
||
| modules/babylonlabs-io-btc-staking-ts/ | ||
|
|
||
| /.nx/workspace-data | ||
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,12 +1,11 @@ | ||
| { | ||
| "version": "independent", | ||
| "npmClient": "yarn", | ||
| "useWorkspaces": true, | ||
| "command": { | ||
| "version": { | ||
| "message": "chore(root): publish modules" | ||
| } | ||
| }, | ||
| "$schema": "node_modules/lerna/schemas/lerna-schema.json", | ||
| "useNx": false | ||
| "useNx": true | ||
| } |
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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,84 @@ | ||
| { | ||
| "$schema": "./node_modules/nx/schemas/nx-schema.json", | ||
| "tasksRunnerOptions": { | ||
| "default": { | ||
| "runner": "nx/tasks-runners/default", | ||
| "options": { | ||
| "cacheableOperations": ["build", "unit-test", "integration-test"], | ||
| "cacheDirectory": ".nx/cache", | ||
| "parallel": 3, | ||
| "skipNxCache": false | ||
| } | ||
| } | ||
| }, | ||
| "targetDefaults": { | ||
| "build": { | ||
| "cache": true, | ||
| "dependsOn": ["^build"], | ||
| "inputs": [ | ||
| "production", | ||
| "{projectRoot}/**/*.json", | ||
| "{projectRoot}/tsconfig.json", | ||
| "{projectRoot}/package.json", | ||
| "{workspaceRoot}/tsconfig.json", | ||
| "{workspaceRoot}/tsconfig.packages.json" | ||
| ], | ||
| "outputs": [ | ||
| "{projectRoot}/dist" | ||
zahin-mohammad marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ] | ||
| }, | ||
| "unit-test": { | ||
| "cache": true, | ||
| "dependsOn": ["build"], | ||
| "inputs": [ | ||
| "default", | ||
| "{projectRoot}/**/*.ts", | ||
| "{projectRoot}/**/*.js", | ||
| "{projectRoot}/**/*.json", | ||
| "{projectRoot}/.mocharc.*", | ||
| "{projectRoot}/tsconfig.json", | ||
| "{projectRoot}/package.json", | ||
| "{workspaceRoot}/tsconfig.json" | ||
| ], | ||
| "outputs": [ | ||
| "{projectRoot}/.nyc_output", | ||
| "{projectRoot}/coverage" | ||
| ] | ||
| }, | ||
| "integration-test": { | ||
| "cache": true, | ||
| "dependsOn": ["build"], | ||
| "inputs": [ | ||
| "default", | ||
| "{projectRoot}/**/*.ts", | ||
| "{projectRoot}/**/*.js", | ||
| "{projectRoot}/**/*.json", | ||
| "{projectRoot}/.mocharc.*", | ||
| "{projectRoot}/tsconfig.json", | ||
| "{projectRoot}/package.json", | ||
| "{workspaceRoot}/tsconfig.json" | ||
| ], | ||
| "outputs": [ | ||
| "{projectRoot}/.nyc_output", | ||
| "{projectRoot}/coverage" | ||
| ] | ||
| } | ||
| }, | ||
| "namedInputs": { | ||
| "default": [ | ||
| "{projectRoot}/**/*", | ||
| "!{projectRoot}/**/*.md", | ||
| "!{projectRoot}/**/*.spec.ts", | ||
| "!{projectRoot}/**/*.spec.js", | ||
| "!{projectRoot}/**/test/**", | ||
| "!{projectRoot}/.nyc_output/**", | ||
| "!{projectRoot}/coverage/**", | ||
| "!{projectRoot}/dist/**", | ||
| "!{projectRoot}/lib/**", | ||
| "!{projectRoot}/node_modules/**" | ||
| ], | ||
| "production": [ | ||
| "default" | ||
| ] | ||
| } | ||
| } | ||
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.