virmator 7.3.2 → 7.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/configs/.github/workflows/build-for-gh-pages.yml +1 -1
- package/configs/.github/workflows/tagged-release.yml +1 -1
- package/configs/.github/workflows/tests.yml +1 -1
- package/configs/.nvmrc +1 -1
- package/dist/api/run-command/check-npm-deps.js +10 -8
- package/dist/commands/frontend.command.js +1 -1
- package/dist/commands/upgrade-deps.command.js +1 -1
- package/package.json +9 -9
package/configs/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
20
|
|
@@ -37,8 +37,8 @@ async function updateDepsAsNeeded(inputs) {
|
|
|
37
37
|
const upgradeVersions = await getVersionsToUpgradeTo(inputs);
|
|
38
38
|
const depsToUpdate = upgradeVersions.filter(common_1.isTruthy);
|
|
39
39
|
await (0, common_1.awaitedForEach)(depsToUpdate, async (depDetails) => {
|
|
40
|
-
const depToInstall = `${depDetails.name}@${depDetails.
|
|
41
|
-
|
|
40
|
+
const depToInstall = `${depDetails.name}@${depDetails.exactVersion}`;
|
|
41
|
+
node_js_1.log.info(`Installing ${depToInstall}...`);
|
|
42
42
|
await (0, node_js_1.runShellCommand)(`npm i ${depDetails.type === define_command_inputs_1.NpmDepTypeEnum.Dev ? '-D' : ''} ${depToInstall}`, {
|
|
43
43
|
cwd: inputs.repoDir,
|
|
44
44
|
rejectOnError: true,
|
|
@@ -69,18 +69,20 @@ async function getVersionsToUpgradeTo({ repoDir, packageDir, npmDeps: neededNpmD
|
|
|
69
69
|
};
|
|
70
70
|
return neededNpmDeps.map((npmDep) => {
|
|
71
71
|
const currentRepoVersion = cleanDepVersion(currentRepoDepVersions[npmDep.name]);
|
|
72
|
-
const virmatorDepVersion =
|
|
73
|
-
|
|
72
|
+
const virmatorDepVersion = packageDepVersions[npmDep.name];
|
|
73
|
+
const cleanVirmatorDepVersion = cleanDepVersion(virmatorDepVersion);
|
|
74
|
+
if (!cleanVirmatorDepVersion || !virmatorDepVersion) {
|
|
74
75
|
throw new Error(`No npm dep version listed for "${npmDep.name}" in ${packageBinName}'s dependencies.`);
|
|
75
76
|
}
|
|
76
77
|
if (currentRepoVersion !== '*' &&
|
|
77
78
|
(!currentRepoVersion ||
|
|
78
|
-
semver.gt(
|
|
79
|
-
(
|
|
80
|
-
|
|
79
|
+
semver.gt(cleanVirmatorDepVersion, currentRepoVersion) ||
|
|
80
|
+
(virmatorDepVersion.match(/^\d/) &&
|
|
81
|
+
cleanVirmatorDepVersion !== currentRepoVersion))) {
|
|
81
82
|
return {
|
|
82
83
|
...npmDep,
|
|
83
|
-
|
|
84
|
+
cleanVersion: cleanVirmatorDepVersion,
|
|
85
|
+
exactVersion: virmatorDepVersion,
|
|
84
86
|
};
|
|
85
87
|
}
|
|
86
88
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "virmator",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.4.1",
|
|
4
4
|
"description": "Handle common package configs, commands, and dependencies.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"automation",
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
"test:types": "tsc --noEmit"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@augment-vir/common": "^16.4.
|
|
47
|
-
"@augment-vir/node-js": "^16.4.
|
|
46
|
+
"@augment-vir/common": "^16.4.1",
|
|
47
|
+
"@augment-vir/node-js": "^16.4.1",
|
|
48
48
|
"ansi-colors": "^4.1.3",
|
|
49
49
|
"concurrently": "^8.2.1",
|
|
50
50
|
"glob": "^8.1.0",
|
|
51
51
|
"glob-promise": "^6.0.3",
|
|
52
52
|
"semver": "^7.5.4",
|
|
53
53
|
"simple-git": "^3.19.1",
|
|
54
|
-
"type-fest": "^4.
|
|
54
|
+
"type-fest": "^4.3.1"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@electrovir/nyc": "15.1.0-fix0",
|
|
@@ -61,15 +61,15 @@
|
|
|
61
61
|
"@types/fs-extra": "^11.0.1",
|
|
62
62
|
"@types/glob": "^8.1.0",
|
|
63
63
|
"@types/mocha": "^10.0.1",
|
|
64
|
-
"@types/node": "^20.5.
|
|
65
|
-
"@types/semver": "^7.5.
|
|
64
|
+
"@types/node": "^20.5.8",
|
|
65
|
+
"@types/semver": "^7.5.1",
|
|
66
66
|
"@web/dev-server-esbuild": "^0.4.1",
|
|
67
|
-
"@web/test-runner": "^0.17.
|
|
67
|
+
"@web/test-runner": "^0.17.1",
|
|
68
68
|
"@web/test-runner-commands": "^0.8.0",
|
|
69
69
|
"@web/test-runner-playwright": "^0.10.1",
|
|
70
70
|
"@web/test-runner-visual-regression": "^0.8.2",
|
|
71
71
|
"chai": "^4.3.8",
|
|
72
|
-
"cspell": "^7.
|
|
72
|
+
"cspell": "^7.3.2",
|
|
73
73
|
"element-vir": "^16.3.1",
|
|
74
74
|
"esbuild": "^0.19.2",
|
|
75
75
|
"fs-extra": "^11.1.1",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"ts-node": "^10.9.1",
|
|
92
92
|
"tsconfig-paths": "^4.2.0",
|
|
93
93
|
"typescript": "^5.2.2",
|
|
94
|
-
"virmator": "^7.
|
|
94
|
+
"virmator": "^7.4.0",
|
|
95
95
|
"vite": "^4.4.9",
|
|
96
96
|
"vite-tsconfig-paths": "^4.2.0"
|
|
97
97
|
},
|