monorepo-next 11.0.1 → 11.0.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/package.json +2 -2
- package/src/build-change-graph.js +1 -1
- package/src/build-release-graph.js +1 -1
- package/src/changed-files.js +2 -1
- package/src/config.js +4 -3
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "monorepo-next",
|
3
|
-
"version": "11.0.
|
3
|
+
"version": "11.0.3",
|
4
4
|
"description": "Detach monorepo packages from normal linking",
|
5
5
|
"bin": {
|
6
6
|
"next": "bin/next.js"
|
@@ -65,7 +65,7 @@
|
|
65
65
|
"glob": "^8.0.0",
|
66
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",
|
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/config.js
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
const
|
3
|
+
const { promisify } = require('util');
|
4
|
+
const glob = promisify(require('glob'));
|
4
5
|
const path = require('path');
|
5
6
|
|
6
|
-
function loadPackageConfig(cwd) {
|
7
|
-
const [configFile] = glob
|
7
|
+
async function loadPackageConfig(cwd) {
|
8
|
+
const [configFile] = await glob('monorepo-next.config.{cjs,js}', { cwd });
|
8
9
|
|
9
10
|
return {
|
10
11
|
shouldBumpVersion: true,
|