virmator 11.3.3 → 11.3.4
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.
|
@@ -68,24 +68,29 @@ async function getVersionsToUpgradeTo({ repoDir, packageDir, npmDeps: neededNpmD
|
|
|
68
68
|
...virmatorPackageJson.dependencies,
|
|
69
69
|
};
|
|
70
70
|
return neededNpmDeps.map((npmDep) => {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
try {
|
|
72
|
+
const currentRepoVersion = cleanDepVersion(currentRepoDepVersions[npmDep.name]);
|
|
73
|
+
const virmatorDepVersion = packageDepVersions[npmDep.name];
|
|
74
|
+
const cleanVirmatorDepVersion = cleanDepVersion(virmatorDepVersion);
|
|
75
|
+
if (!cleanVirmatorDepVersion || !virmatorDepVersion) {
|
|
76
|
+
throw new Error(`No npm dep version listed for "${npmDep.name}" in ${packageBinName}'s dependencies.`);
|
|
77
|
+
}
|
|
78
|
+
if (currentRepoVersion !== '*' &&
|
|
79
|
+
(!currentRepoVersion ||
|
|
80
|
+
semver.gt(cleanVirmatorDepVersion, currentRepoVersion) ||
|
|
81
|
+
(virmatorDepVersion.match(/^\d/) &&
|
|
82
|
+
cleanVirmatorDepVersion !== currentRepoVersion))) {
|
|
83
|
+
return {
|
|
84
|
+
...npmDep,
|
|
85
|
+
cleanVersion: cleanVirmatorDepVersion,
|
|
86
|
+
exactVersion: virmatorDepVersion,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
return undefined;
|
|
91
|
+
}
|
|
76
92
|
}
|
|
77
|
-
|
|
78
|
-
(!currentRepoVersion ||
|
|
79
|
-
semver.gt(cleanVirmatorDepVersion, currentRepoVersion) ||
|
|
80
|
-
(virmatorDepVersion.match(/^\d/) &&
|
|
81
|
-
cleanVirmatorDepVersion !== currentRepoVersion))) {
|
|
82
|
-
return {
|
|
83
|
-
...npmDep,
|
|
84
|
-
cleanVersion: cleanVirmatorDepVersion,
|
|
85
|
-
exactVersion: virmatorDepVersion,
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
93
|
+
catch (error) {
|
|
89
94
|
return undefined;
|
|
90
95
|
}
|
|
91
96
|
});
|
|
@@ -145,7 +145,6 @@ exports.depsCommandDefinition = (0, define_command_1.defineCommand)({
|
|
|
145
145
|
await (await Promise.resolve().then(() => __importStar(require('npm-check-updates')))).run({
|
|
146
146
|
...config,
|
|
147
147
|
cwd: repoDir,
|
|
148
|
-
json: false,
|
|
149
148
|
workspaces: !!repoPackageJson.workspaces,
|
|
150
149
|
format: [],
|
|
151
150
|
}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "virmator",
|
|
3
|
-
"version": "11.3.
|
|
3
|
+
"version": "11.3.4",
|
|
4
4
|
"description": "Handle common package configs, commands, and dependencies.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"automation",
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"test:types": "tsc --noEmit"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@augment-vir/common": "^23.3.
|
|
47
|
-
"@augment-vir/node-js": "^23.3.
|
|
46
|
+
"@augment-vir/common": "^23.3.4",
|
|
47
|
+
"@augment-vir/node-js": "^23.3.4",
|
|
48
48
|
"ansi-colors": "^4.1.3",
|
|
49
49
|
"concurrently": "^8.2.2",
|
|
50
50
|
"glob": "^8.1.0",
|
|
51
51
|
"glob-promise": "^6.0.5",
|
|
52
|
-
"mono-vir": "^0.
|
|
52
|
+
"mono-vir": "^1.0.0",
|
|
53
53
|
"semver": "^7.6.0",
|
|
54
54
|
"simple-git": "^3.22.0",
|
|
55
55
|
"type-fest": "^4.10.2"
|
|
@@ -70,26 +70,26 @@
|
|
|
70
70
|
"@web/test-runner-playwright": "^0.11.0",
|
|
71
71
|
"@web/test-runner-visual-regression": "^0.9.0",
|
|
72
72
|
"chai": "^4.3.10",
|
|
73
|
-
"cspell": "^8.
|
|
74
|
-
"dependency-cruiser": "^16.2.
|
|
75
|
-
"element-vir": "^20.0.
|
|
76
|
-
"esbuild": "^0.20.
|
|
73
|
+
"cspell": "^8.4.0",
|
|
74
|
+
"dependency-cruiser": "^16.2.1",
|
|
75
|
+
"element-vir": "^20.0.9",
|
|
76
|
+
"esbuild": "^0.20.1",
|
|
77
77
|
"fs-extra": "^11.2.0",
|
|
78
|
-
"istanbul-smart-text-reporter": "^1.1.
|
|
79
|
-
"markdown-code-example-inserter": "^0.
|
|
78
|
+
"istanbul-smart-text-reporter": "^1.1.4",
|
|
79
|
+
"markdown-code-example-inserter": "^1.0.0",
|
|
80
80
|
"mocha": "^10.3.0",
|
|
81
81
|
"mocha-spec-reporter-with-file-names": "^0.0.3",
|
|
82
82
|
"npm-check-updates": "~16.12.3",
|
|
83
83
|
"prettier": "^3.2.5",
|
|
84
|
-
"prettier-plugin-interpolated-html-tags": "^1.0.
|
|
84
|
+
"prettier-plugin-interpolated-html-tags": "^1.0.5",
|
|
85
85
|
"prettier-plugin-jsdoc": "^1.3.0",
|
|
86
|
-
"prettier-plugin-multiline-arrays": "^3.0.
|
|
86
|
+
"prettier-plugin-multiline-arrays": "^3.0.4",
|
|
87
87
|
"prettier-plugin-organize-imports": "^3.2.4",
|
|
88
88
|
"prettier-plugin-packagejson": "^2.4.11",
|
|
89
89
|
"prettier-plugin-sort-json": "^3.1.0",
|
|
90
90
|
"prettier-plugin-toml": "^2.0.1",
|
|
91
|
-
"test-as-package": "^0.0
|
|
92
|
-
"test-established-expectations": "^0.
|
|
91
|
+
"test-as-package": "^1.0.0",
|
|
92
|
+
"test-established-expectations": "^1.0.0",
|
|
93
93
|
"ts-node": "^10.9.2",
|
|
94
94
|
"tsconfig-paths": "^4.2.0",
|
|
95
95
|
"typedoc": "^0.25.8",
|