Skip to content

Commit 5e2cea7

Browse files
authored
chore: update root folder npm dependencies (#2443)
1 parent c859c84 commit 5e2cea7

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

.github/actions/changed-packages/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ outputs:
88
paths:
99
description: An array of relative paths to packages that were changed
1010
runs:
11-
using: node12
11+
using: node20
1212
main: main.js

.github/actions/changed-packages/main.js

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
require = require('esm')(module);
2-
31
const { relative, resolve } = require('path');
4-
const core = require('@actions/core')
2+
const core = require('@actions/core');
3+
4+
(async () => {
5+
const { root } = await import('../../../scripts/lib/repo.mjs');
6+
const { execute } = await import('../../../scripts/lib/cli.mjs');
7+
const { ls } = await import('../../../scripts/lib/lerna.mjs');
58

6-
const { root } = require('../../../scripts/lib/repo.mjs');
7-
const { execute } = require('../../../scripts/lib/cli.mjs');
8-
const { ls } = require('../../../scripts/lib/lerna.mjs');
9+
execute(async () => {
10+
const files = JSON.parse(core.getInput('files', '[]')).map(f => resolve(root, f));
11+
const packages = await ls();
12+
const changedPackages = packages.filter(pkg => files.some(f => f.startsWith(pkg.location)));
13+
const paths = JSON.stringify(changedPackages.map(pkg => relative(root, pkg.location)));
914

10-
execute(async () => {
11-
const files = JSON.parse(core.getInput('files', '[]')).map(f => resolve(root, f));
12-
const packages = await ls();
13-
const changedPackages = packages.filter(pkg => files.some(f => f.startsWith(pkg.location)));
14-
const paths = JSON.stringify(changedPackages.map(pkg => relative(root, pkg.location)));
15+
core.info(`Changed package paths: ${paths}`);
16+
core.setOutput('paths', paths);
17+
});
18+
})();
1519

16-
core.info(`Changed package paths: ${paths}`);
17-
core.setOutput('paths', paths);
18-
});

package.json

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,18 @@
2222
"ci:publish:dev": "lerna publish prerelease --conventional-commits --conventional-prerelease --preid dev-$(date +\"%Y%m%dT%H%M%S\") --force-publish --no-changelog --no-git-tag-version --dist-tag dev --no-push --yes"
2323
},
2424
"devDependencies": {
25-
"@actions/core": "^1.9.1",
26-
"@actions/http-client": "2.1.1",
25+
"@actions/core": "^1.11.1",
26+
"@actions/http-client": "^3.0.0",
2727
"@ionic/prettier-config": "^4.0.0",
28-
"@types/node": "~18.11.19",
29-
"@types/prompts": "^2.0.8",
30-
"cross-spawn": "^7.0.3",
31-
"esm": "^3.2.25",
32-
"glob": "^10.3.3",
33-
"lerna": "^7.1.3",
34-
"nx": "^16.3.1",
28+
"@types/node": "^24.10.1",
29+
"@types/prompts": "^2.4.9",
30+
"cross-spawn": "^7.0.6",
31+
"glob": "^11.0.3",
32+
"lerna": "^7.4.2",
33+
"nx": "^16.10.0",
3534
"prettier": "^3.6.2",
36-
"prompts": "^2.3.2",
37-
"typescript": "~4.1.5"
35+
"prompts": "^2.4.2",
36+
"typescript": "^5.9.3"
3837
},
3938
"prettier": "@ionic/prettier-config",
4039
"swiftlint": {
@@ -64,4 +63,4 @@
6463
"text-zoom",
6564
"toast"
6665
]
67-
}
66+
}

0 commit comments

Comments
 (0)