@digigov/cli-lab 1.2.3 → 1.2.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.
- package/CHANGELOG.json +12 -0
- package/CHANGELOG.md +8 -1
- package/package.json +1 -1
- package/scripts/pin-dependencies-versions.mjs +0 -24
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/cli-lab",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"version": "1.2.4",
|
|
6
|
+
"tag": "@digigov/cli-lab_v1.2.4",
|
|
7
|
+
"date": "Wed, 16 Feb 2022 12:49:28 GMT",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "Move pin-dependencies-versions script from cli-lab to its own rush script. Enhance the script with the --fix argument."
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
},
|
|
4
16
|
{
|
|
5
17
|
"version": "1.2.3",
|
|
6
18
|
"tag": "@digigov/cli-lab_v1.2.3",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# Change Log - @digigov/cli-lab
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 16 Feb 2022 12:49:28 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 1.2.4
|
|
6
|
+
Wed, 16 Feb 2022 12:49:28 GMT
|
|
7
|
+
|
|
8
|
+
### Patches
|
|
9
|
+
|
|
10
|
+
- Move pin-dependencies-versions script from cli-lab to its own rush script. Enhance the script with the --fix argument.
|
|
4
11
|
|
|
5
12
|
## 1.2.3
|
|
6
13
|
Mon, 14 Feb 2022 09:56:29 GMT
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env zx
|
|
2
|
-
import "zx-extra";
|
|
3
|
-
import "../lib/extra/index.mjs";
|
|
4
|
-
|
|
5
|
-
const rushLib = require('@microsoft/rush-lib');
|
|
6
|
-
const rushConfiguration = rushLib.RushConfiguration.loadFromDefaultLocation({
|
|
7
|
-
startingFolder: process.cwd()
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
rushConfiguration.projects.forEach(project => {
|
|
11
|
-
for (const dependencyType of ['dependencies', 'devDependencies', 'peerDependencies']) {
|
|
12
|
-
const dependencies = project.packageJson[dependencyType];
|
|
13
|
-
if (dependencies) {
|
|
14
|
-
for (const dependencyName in dependencies) {
|
|
15
|
-
const dependencyVersion = dependencies[dependencyName];
|
|
16
|
-
if (!dependencyVersion.match(/^[0-9]/)) {
|
|
17
|
-
console.log(`${project.packageJson.name} ${dependencyType} ${dependencyName} ${dependencyVersion}`);
|
|
18
|
-
project.packageJsonEditor.addOrUpdateDependency(dependencyName, dependencyVersion.replace(/^./,''), dependencyType);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
project.packageJsonEditor.saveIfModified();
|
|
24
|
-
});
|