monorepo-next 12.5.2 → 12.5.3
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/README.md +1 -1
- package/package.json +1 -1
- package/src/build-change-graph.js +8 -4
package/README.md
CHANGED
@@ -15,7 +15,7 @@ module.exports = {
|
|
15
15
|
// will be a git-ignored dir, so we can't use that. Use this to
|
16
16
|
// allow us to still find changes to your package. This appends
|
17
17
|
// to your existing NPM tracked files.
|
18
|
-
changeTrackingFiles: ['src'],
|
18
|
+
changeTrackingFiles: ['src/**'],
|
19
19
|
}
|
20
20
|
```
|
21
21
|
|
package/package.json
CHANGED
@@ -41,12 +41,16 @@ async function getPackageChangedFiles({
|
|
41
41
|
|
42
42
|
committedChanges = getLinesFromOutput(committedChanges).reduce((committedChanges, line) => {
|
43
43
|
let isDeleted = line[0] === 'D';
|
44
|
-
let
|
44
|
+
let isRename = line[0] === 'R';
|
45
|
+
let shouldExclude = shouldExcludeDeleted && (isDeleted || isRename);
|
46
|
+
line = line.split('\t');
|
45
47
|
|
46
48
|
if (!shouldExclude) {
|
47
|
-
|
48
|
-
|
49
|
-
|
49
|
+
committedChanges.add(line[1]);
|
50
|
+
}
|
51
|
+
if (isRename) {
|
52
|
+
// renames are denoted by `R[01 - 100] <old filename> <new filename>` so we need to grab <new filename> as well`
|
53
|
+
committedChanges.add(line[2]);
|
50
54
|
}
|
51
55
|
|
52
56
|
return committedChanges;
|