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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monorepo-next",
3
- "version": "11.0.8",
3
+ "version": "11.0.10",
4
4
  "description": "Detach monorepo packages from normal linking",
5
5
  "bin": {
6
6
  "next": "bin/next.js"
@@ -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 => line.substr(3));
36
+ dirtyChanges = getLinesFromOutput(dirtyChanges).map(line => {
37
+ line = line.substr(3);
37
38
 
38
- // if filename has space like `sample index.js`, if its modified and uncommited, that file will have double quotes in git status
39
- // example: '"packages/package-a/sample index.js"'. We need to strip `"` for that reason.
40
- dirtyChanges = dirtyChanges.map(line => line.replace(/"/g, ''));
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
 
@@ -103,7 +103,7 @@ async function _getChangelog({
103
103
  preset: require('standard-version/lib/preset-loader')(defaults),
104
104
  tagPrefix,
105
105
  releaseCount,
106
- pkg: { path: cwd },
106
+ pkg: { path: path.join(cwd, 'package.json') },
107
107
  path: cwd,
108
108
  },
109
109
  context,