monorepo-next 11.0.0 → 11.0.2
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 +9 -9
- package/src/changed-files.js +2 -1
- 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.
|
3
|
+
"version": "11.0.2",
|
4
4
|
"description": "Detach monorepo packages from normal linking",
|
5
5
|
"bin": {
|
6
6
|
"next": "bin/next.js"
|
@@ -58,14 +58,14 @@
|
|
58
58
|
"node": ">=18.12"
|
59
59
|
},
|
60
60
|
"dependencies": {
|
61
|
-
"conventional-changelog": "
|
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": "^
|
66
|
+
"inquirer": "^9.0.0",
|
67
67
|
"js-yaml": "^4.0.0",
|
68
|
-
"minimatch": "^
|
68
|
+
"minimatch": "^9.0.0",
|
69
69
|
"npm-packlist": "^6.0.0",
|
70
70
|
"rfc6902": "^5.0.0",
|
71
71
|
"semver": "^7.5.3",
|
@@ -75,23 +75,23 @@
|
|
75
75
|
"yargs": "^17.0.0"
|
76
76
|
},
|
77
77
|
"devDependencies": {
|
78
|
-
"@crowdstrike/commitlint": "^
|
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": "^
|
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": "^
|
90
|
+
"git-fixtures": "^8.0.0",
|
91
91
|
"mocha": "^10.0.0",
|
92
|
-
"mocha-helpers": "^
|
92
|
+
"mocha-helpers": "^9.0.0",
|
93
93
|
"remark-cli": "^11.0.0",
|
94
|
-
"remark-preset-lint-crowdstrike": "^
|
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/changed-files.js
CHANGED
@@ -7,7 +7,6 @@ const fs = { ...require('fs'), ...require('fs').promises };
|
|
7
7
|
const {
|
8
8
|
getWorkspaceCwd,
|
9
9
|
} = require('./git');
|
10
|
-
const minimatch = require('minimatch');
|
11
10
|
|
12
11
|
const { builder } = require('../bin/commands/changed-files');
|
13
12
|
|
@@ -29,6 +28,8 @@ async function changedFiles({
|
|
29
28
|
exts = [],
|
30
29
|
globs = [],
|
31
30
|
} = {}) {
|
31
|
+
const { minimatch } = await import('minimatch');
|
32
|
+
|
32
33
|
let workspaceCwd = await getWorkspaceCwd(cwd);
|
33
34
|
|
34
35
|
let workspaceMeta = await buildDepGraph({ workspaceCwd });
|
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
|
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
|
+
});
|