Skip to content

chore: upgrade lerna #2836

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 75 commits into from
May 22, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
590d035
chore: remove precompile and prewatch scripts
david-luna Nov 13, 2024
5d268b5
chore: remove lerna package
david-luna Nov 13, 2024
221fc4f
chore: update peer api check workflow
david-luna Nov 13, 2024
ae4ed34
chore: update release validate workflow
david-luna Nov 13, 2024
f38a38c
chore: update comment
david-luna Nov 13, 2024
4e229dc
chore: update comment in tests
david-luna Nov 13, 2024
fb4df28
chore: update release workflow
david-luna Nov 13, 2024
9f37712
chore: update docs
david-luna Nov 13, 2024
6b8d618
chore: update docs
david-luna Nov 13, 2024
362fb4f
chore: add bump version script
david-luna Nov 13, 2024
6d8aaa1
chore: update version script
david-luna Nov 13, 2024
629f866
chore: update version script
david-luna Nov 14, 2024
174d218
Merge branch 'main' into remove-lerna
david-luna Nov 18, 2024
23b7c71
Merge branch 'main' into remove-lerna
david-luna Nov 19, 2024
60400f0
Merge branch 'main' into remove-lerna
david-luna Nov 22, 2024
67723d6
Merge branch 'main' into remove-lerna
david-luna Nov 27, 2024
8972f4b
Merge branch 'main' into remove-lerna
david-luna Dec 2, 2024
05020c1
Merge branch 'main' into remove-lerna
david-luna Dec 4, 2024
0726e0c
Merge branch 'main' into remove-lerna
david-luna Dec 5, 2024
a60d5f4
chore: merge main
david-luna Jan 21, 2025
3887b70
chore: update package-lock.json
david-luna Jan 21, 2025
eae2663
Merge branch 'main' into remove-lerna
david-luna Jan 21, 2025
6f48e5b
chore: cleanup some scripts
david-luna Jan 21, 2025
1df01ae
chore: fix typo
david-luna Jan 21, 2025
d86b1f2
chore: update version script
david-luna Jan 22, 2025
ddf5b7f
chore: update version script
david-luna Jan 22, 2025
5e90af5
chore: update version script
david-luna Jan 22, 2025
6ee4863
chore: update version script
david-luna Jan 23, 2025
577d584
Merge branch 'main' into remove-lerna
david-luna Feb 3, 2025
c048ccd
Merge branch 'main' into remove-lerna
david-luna Feb 10, 2025
947a253
chore: update package-lock.json
david-luna Feb 10, 2025
a544ed3
Merge branch 'main' into remove-lerna
david-luna Mar 5, 2025
2433805
chore: update lock file
david-luna Mar 5, 2025
9d5e7e4
Merge branch 'main' into remove-lerna
david-luna Mar 19, 2025
96684c1
Merge branch 'main' into remove-lerna
david-luna Apr 3, 2025
534ed2a
chore: update deps
david-luna Apr 3, 2025
8dd6c23
Merge branch 'main' into remove-lerna
david-luna Apr 15, 2025
d48f9f9
Merge branch 'main' into remove-lerna
david-luna Apr 23, 2025
1eadc59
Merge branch 'main' into remove-lerna
david-luna May 19, 2025
b138e0d
chore: update package-lock
david-luna May 19, 2025
b1829bf
chore: upgrade lerna
david-luna May 19, 2025
a2ae0f1
chore: remove publish script
david-luna May 19, 2025
6e58cbf
chore: update comment
david-luna May 19, 2025
fee8a85
chore: update nx cache path
david-luna May 19, 2025
3a6b1dc
chore: update build cache path
david-luna May 19, 2025
1678af4
chore: set .nx as build artifact
david-luna May 19, 2025
022d36f
chore: update cache folder
david-luna May 19, 2025
057e093
chore: update cache folder
david-luna May 19, 2025
8900a76
chore: cleanup nx before downloading artifact
david-luna May 19, 2025
449fd3c
chore: use tar.gz file for build snapshots
david-luna May 19, 2025
302f079
chore: update paths
david-luna May 19, 2025
1de18b2
chore: fix caching in tav workflow
david-luna May 19, 2025
da0ce71
chore: add workflow logs
david-luna May 20, 2025
5d90ebc
chore: update build cache
david-luna May 20, 2025
a8f31d4
chore: fix path for build cache
david-luna May 20, 2025
3d3c1f8
chore: skip TAV for now
david-luna May 20, 2025
e45533c
chore: remove trailing slash
david-luna May 20, 2025
b5c182e
chore: use tar files for caching
david-luna May 20, 2025
e1c5799
chore: fix caching in workflows
david-luna May 20, 2025
8af5873
chore: use caching in browser tests
david-luna May 20, 2025
dc2ec97
Merge branch 'main' into dluna-upgrade-lerna
david-luna May 20, 2025
1b0560f
chore: remove usage of tar
david-luna May 20, 2025
1a6f774
chore: fixed download path
david-luna May 20, 2025
645054b
chore: remove comments and logs
david-luna May 20, 2025
f26493b
Update CONTRIBUTING.md
david-luna May 21, 2025
1773343
Update CONTRIBUTING.md
david-luna May 21, 2025
d8d8a71
Merge branch 'main' into dluna-upgrade-lerna
david-luna May 22, 2025
5525f8a
chore: add `setup:dev` script on each package
david-luna May 22, 2025
2e5b5ea
docs: fix lint issue
david-luna May 22, 2025
d76522c
Merge branch 'main' into dluna-upgrade-lerna
david-luna May 22, 2025
f655a20
Merge branch 'main' into dluna-upgrade-lerna
david-luna May 22, 2025
e49d69c
chore: update package-lock.json
david-luna May 22, 2025
3ebc8fb
chore: update package-lock.json
david-luna May 22, 2025
a0f5696
chore: run npm dedupe
david-luna May 22, 2025
8a79c9b
Update CONTRIBUTING.md
david-luna May 22, 2025
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
chore: update release validate workflow
  • Loading branch information
david-luna committed Nov 13, 2024
commit ae4ed34d630426ba14e669e02db80c9c63c98d50
4 changes: 2 additions & 2 deletions .github/workflows/release-please-validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Install lerna
run: npm install -g [email protected]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note to reviewer: the script check-release-please.mjs does not depend on lerna anymore. Making the install faster and reducing time in CI

- name: Install glob
run: npm install glob

- name: Ensure Release Please Config and Manifest are in sync with the repository
run: node scripts/check-release-please.mjs
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@
"eslint-plugin-import": "2.27.5",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-prettier": "4.2.1",
"glob": "^10.3.10",
"glob": "^10.4.5",
"lerna-changelog": "2.2.0",
"markdownlint-cli2": "0.13.0",
"minimatch": "^9.0.3",
"nx": "15.9.7",
"mocha": "^10.7.3",
"nx": "15.9.7",
"prettier": "2.8.8",
"process": "0.11.10",
"semver": "^7.6.0",
Expand Down
37 changes: 20 additions & 17 deletions scripts/check-release-please.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { strict as assert } from 'assert';
import * as childProcess from 'child_process';
import path from 'path';
import { readFileSync } from 'fs';
import { globSync } from 'glob';

/*
Enumerates through
Expand All @@ -23,28 +22,32 @@ const PROJECT_ROOT = process.cwd();
const readJson = (filePath) => {
return JSON.parse(readFileSync(filePath));
};
const getProcessOutput = (cmd, args) => {
const result = childProcess.spawnSync(cmd, args);
assert(!result.error, result.error);
return result.stdout.toString('utf8');

const getPackages = () => {
const TOP = process.cwd();
const pj = readJson(path.join(TOP, 'package.json'));
return pj.workspaces
.map((wsGlob) => globSync(path.join(wsGlob, 'package.json')))
.flat()
.map((p) => {
const pkgInfo = readJson(p);
pkgInfo.location = path.dirname(p);
pkgInfo.relativeLocation = path.relative(PROJECT_ROOT, pkgInfo.location);
return pkgInfo;
});
}

const lernaList = JSON
.parse(getProcessOutput('npx', ['lerna', 'list', '--json', '-a']))
.map((pkgInfo) => {
pkgInfo.relativeLocation = path.relative(PROJECT_ROOT, pkgInfo.location);
return pkgInfo;
});
const pkgList = getPackages();
const manifest = readJson('.release-please-manifest.json');
const config = readJson('release-please-config.json');

const lernaPackages = new Set(
lernaList.map((pkgInfo) => pkgInfo.relativeLocation)
const packageLocations = new Set(
pkgList.map((pkgInfo) => pkgInfo.relativeLocation)
);
const manifestPackages = new Set(Object.keys(manifest));
const configPackages = new Set(Object.keys(config.packages));

lernaList.forEach((pkgInfo) => {
pkgList.forEach((pkgInfo) => {
const relativeLocation = pkgInfo.relativeLocation
if (pkgInfo.private) {
// Should be in config, with `skip-github-release` option.
Expand All @@ -71,14 +74,14 @@ lernaList.forEach((pkgInfo) => {

manifestPackages.forEach((relativeLocation) => {
logErrorIf(
!lernaPackages.has(relativeLocation),
!packageLocations.has(relativeLocation),
`Extraneous path ${relativeLocation} in .release-please-manifest.json`
);
});

configPackages.forEach((relativeLocation) => {
logErrorIf(
!lernaPackages.has(relativeLocation),
!packageLocations.has(relativeLocation),
`Extraneous path ${relativeLocation} in release-please-config.json`
);
});
Expand Down