monorepo-next 7.2.1 → 7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monorepo-next",
3
- "version": "7.2.1",
3
+ "version": "7.2.4",
4
4
  "description": "Detach monorepo packages from normal linking",
5
5
  "bin": {
6
6
  "next": "bin/next.js"
@@ -64,8 +64,8 @@
64
64
  "execa": "^5.0.0",
65
65
  "glob": "^7.1.4",
66
66
  "inquirer": "^8.0.0",
67
- "minimatch": "^3.0.4",
68
- "npm-packlist": "^3.0.0",
67
+ "minimatch": "^5.0.0",
68
+ "npm-packlist": "^4.0.0",
69
69
  "rfc6902": "^5.0.0",
70
70
  "semver": "7.3.5",
71
71
  "standard-version": "9.3.2",
@@ -153,7 +153,7 @@ async function buildChangeGraph({
153
153
 
154
154
  let dag = buildDAG(workspaceMeta, _package.packageName);
155
155
 
156
- packagesWithChanges[dag.packageName] = {
156
+ packagesWithChanges[_package.packageName] = {
157
157
  changedFiles: newFiles,
158
158
  changedReleasableFiles,
159
159
  dag,
@@ -51,6 +51,7 @@ async function init({
51
51
  shouldVersionBump = true,
52
52
  }) {
53
53
  let {
54
+ isPackage,
54
55
  packageName: name,
55
56
  cwd,
56
57
  } = dag;
@@ -72,7 +73,7 @@ async function init({
72
73
  }
73
74
 
74
75
  let canBumpVersion = !!(version && name);
75
- let canPublish = dag.isPackage;
76
+ let canPublish = isPackage;
76
77
  let shouldBumpVersion = canBumpVersion && shouldVersionBump;
77
78
  let shouldPublish = canPublish && shouldBumpVersion;
78
79
 
package/src/detach.js CHANGED
@@ -68,7 +68,7 @@ async function detach({
68
68
  choices,
69
69
  }]);
70
70
 
71
- let dependencts = answers.map(answer => {
71
+ let dependents = answers.map(answer => {
72
72
  // switch to key/value instead of array?
73
73
  let isPackage = answer !== workspaceKey;
74
74
 
@@ -80,7 +80,7 @@ async function detach({
80
80
  // prevent loops
81
81
  const attach = require('./attach');
82
82
 
83
- for (let node of dependencts) {
83
+ for (let node of dependents) {
84
84
  await attach({
85
85
  package: path.basename(cwd),
86
86
  cwd: node.cwd,