monorepo-next 11.0.8 → 11.0.10
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/package.json
CHANGED
@@ -33,11 +33,15 @@ async function getPackageChangedFiles({
|
|
33
33
|
|
34
34
|
let dirtyChanges = await git(['status', '--porcelain', '--untracked-files', packageCwd], options);
|
35
35
|
|
36
|
-
dirtyChanges = getLinesFromOutput(dirtyChanges).map(line =>
|
36
|
+
dirtyChanges = getLinesFromOutput(dirtyChanges).map(line => {
|
37
|
+
line = line.substr(3);
|
37
38
|
|
38
|
-
|
39
|
-
|
40
|
-
|
39
|
+
// if filename has space like `sample index.js`, if its modified and uncommited, that file will have double quotes in git status
|
40
|
+
// example: '"packages/package-a/sample index.js"'. We need to strip `"` for that reason.
|
41
|
+
line = line.replaceAll('"', '');
|
42
|
+
|
43
|
+
return line;
|
44
|
+
});
|
41
45
|
|
42
46
|
let changedFiles = Array.from(new Set(committedChanges).union(dirtyChanges));
|
43
47
|
|
package/src/get-changelog.js
CHANGED