monorepo-next 11.0.0 → 11.0.1

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.
Files changed (2) hide show
  1. package/package.json +8 -8
  2. package/src/detach.js +10 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monorepo-next",
3
- "version": "11.0.0",
3
+ "version": "11.0.1",
4
4
  "description": "Detach monorepo packages from normal linking",
5
5
  "bin": {
6
6
  "next": "bin/next.js"
@@ -58,12 +58,12 @@
58
58
  "node": ">=18.12"
59
59
  },
60
60
  "dependencies": {
61
- "conventional-changelog": "3.1.25",
61
+ "conventional-changelog": "5.1.0",
62
62
  "conventional-recommended-bump": "6.1.0",
63
63
  "debug": "^4.3.1",
64
64
  "execa": "^5.0.0",
65
65
  "glob": "^8.0.0",
66
- "inquirer": "^8.0.0",
66
+ "inquirer": "^9.0.0",
67
67
  "js-yaml": "^4.0.0",
68
68
  "minimatch": "^5.0.0",
69
69
  "npm-packlist": "^6.0.0",
@@ -75,23 +75,23 @@
75
75
  "yargs": "^17.0.0"
76
76
  },
77
77
  "devDependencies": {
78
- "@crowdstrike/commitlint": "^6.0.0",
78
+ "@crowdstrike/commitlint": "^7.0.0",
79
79
  "chai": "^4.2.0",
80
80
  "chai-as-promised": "^7.1.1",
81
81
  "common-tags": "^1.8.2",
82
82
  "eslint": "^8.0.0",
83
83
  "eslint-config-crowdstrike": "10.1.0",
84
84
  "eslint-config-crowdstrike-node": "3.0.1",
85
- "eslint-plugin-json-files": "^2.0.0",
85
+ "eslint-plugin-json-files": "^4.0.0",
86
86
  "eslint-plugin-mocha": "^10.2.0",
87
87
  "eslint-plugin-node": "^11.0.0",
88
88
  "fixturify": "^3.0.0",
89
89
  "fs-extra": "^11.1.1",
90
- "git-fixtures": "^7.0.0",
90
+ "git-fixtures": "^8.0.0",
91
91
  "mocha": "^10.0.0",
92
- "mocha-helpers": "^7.0.0",
92
+ "mocha-helpers": "^9.0.0",
93
93
  "remark-cli": "^11.0.0",
94
- "remark-preset-lint-crowdstrike": "^2.0.0",
94
+ "remark-preset-lint-crowdstrike": "^3.0.0",
95
95
  "renovate-config-standard": "^2.0.0",
96
96
  "sinon": "^15.0.0",
97
97
  "sinon-chai": "^3.5.0",
package/src/detach.js CHANGED
@@ -3,7 +3,6 @@
3
3
  const path = require('path');
4
4
  const writeJson = require('./json').write;
5
5
  const semver = require('semver');
6
- const inquirer = require('inquirer');
7
6
  const buildDepGraph = require('./build-dep-graph');
8
7
  const buildDAG = require('./build-dag');
9
8
  const dependencyTypes = require('./dependency-types');
@@ -27,6 +26,12 @@ function updateDependencyVersion(packageJson, name) {
27
26
  }
28
27
  }
29
28
 
29
+ async function inquirerPrompt() {
30
+ const { default: inquirer } = await import('inquirer');
31
+
32
+ return inquirer.prompt(...arguments);
33
+ }
34
+
30
35
  async function detach({
31
36
  package: _package,
32
37
  cwd = process.cwd(),
@@ -61,7 +66,7 @@ async function detach({
61
66
  return dependent.node.packageName ?? path.basename(dependent.node.cwd);
62
67
  });
63
68
 
64
- let { answers } = await inquirer.prompt([{
69
+ let { answers } = await module.exports.inquirerPrompt([{
65
70
  type: 'checkbox',
66
71
  message: 'Would you like to attach any of these dependents to this newly detached package while you\'re at it?',
67
72
  name: 'answers',
@@ -93,3 +98,6 @@ async function detach({
93
98
  }
94
99
 
95
100
  module.exports = detach;
101
+ Object.assign(module.exports, {
102
+ inquirerPrompt,
103
+ });