@digigov/cli-lab 1.2.5 → 1.2.6
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/lib/changed-packages/index.mjs +23 -0
- package/misc/html-types.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/cli-lab",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"version": "1.2.6",
|
|
6
|
+
"tag": "@digigov/cli-lab_v1.2.6",
|
|
7
|
+
"date": "Thu, 17 Mar 2022 10:24:06 GMT",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "Add changed-packages lib"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
},
|
|
4
16
|
{
|
|
5
17
|
"version": "1.2.5",
|
|
6
18
|
"tag": "@digigov/cli-lab_v1.2.5",
|
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 Thu, 17 Mar 2022 10:24:06 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 1.2.6
|
|
6
|
+
Thu, 17 Mar 2022 10:24:06 GMT
|
|
7
|
+
|
|
8
|
+
### Patches
|
|
9
|
+
|
|
10
|
+
- Add changed-packages lib
|
|
4
11
|
|
|
5
12
|
## 1.2.5
|
|
6
13
|
Tue, 01 Mar 2022 10:56:06 GMT
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#!/usr/bin/env zx
|
|
2
|
+
import "zx-extra";
|
|
3
|
+
import "../extra/index.mjs";
|
|
4
|
+
export default async function changedPackages() {
|
|
5
|
+
const rushJSON = await readJSON(await findUp('rush.json'));
|
|
6
|
+
const getDiffedPackages = reduceScripts(rushJSON.projects);
|
|
7
|
+
return getDiffedPackages;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function reduceScripts(projects) {
|
|
11
|
+
return projects.reduce((allPackages, project) => {
|
|
12
|
+
const {
|
|
13
|
+
packageName,
|
|
14
|
+
projectFolder
|
|
15
|
+
} = project
|
|
16
|
+
const { stdout } = spawn('git', ['diff', 'main', '--', projectFolder])
|
|
17
|
+
if (!stdout.toString().trim()) {
|
|
18
|
+
return allPackages
|
|
19
|
+
}
|
|
20
|
+
allPackages.push(projectFolder)
|
|
21
|
+
return allPackages;
|
|
22
|
+
}, [])
|
|
23
|
+
}
|
package/misc/html-types.js
CHANGED
|
@@ -104,7 +104,7 @@ const htmlTypes = {
|
|
|
104
104
|
td: 'HTMLTableDataCellElement',
|
|
105
105
|
textarea: 'HTMLTextAreaElement',
|
|
106
106
|
tfoot: 'HTMLTableSectionElement',
|
|
107
|
-
th: '
|
|
107
|
+
th: 'HTMLTableHeadCellElement',
|
|
108
108
|
thead: 'HTMLTableSectionElement',
|
|
109
109
|
time: 'HTMLElement',
|
|
110
110
|
title: 'HTMLTitleElement',
|