@rollup/plugin-commonjs 27.0.0 → 28.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.
package/dist/cjs/index.js CHANGED
@@ -6,12 +6,12 @@ var path = require('path');
6
6
  var pluginutils = require('@rollup/pluginutils');
7
7
  var fs = require('fs');
8
8
  var getCommonDir = require('commondir');
9
- var glob = require('glob');
9
+ var fdir = require('fdir');
10
10
  var estreeWalker = require('estree-walker');
11
11
  var MagicString = require('magic-string');
12
12
  var isReference = require('is-reference');
13
13
 
14
- var version = "27.0.0";
14
+ var version = "28.0.1";
15
15
  var peerDependencies = {
16
16
  rollup: "^2.68.0||^3.0.0||^4.0.0"
17
17
  };
@@ -178,8 +178,13 @@ function getDynamicRequireModules(patterns, dynamicRequireRoot) {
178
178
  isNegated
179
179
  ? dynamicRequireModules.delete(targetPath)
180
180
  : dynamicRequireModules.set(targetPath, resolvedPath);
181
- for (const path$1 of glob.glob
182
- .sync(isNegated ? pattern.substr(1) : pattern)
181
+ // eslint-disable-next-line new-cap
182
+ for (const path$1 of new fdir.fdir()
183
+ .withBasePath()
184
+ .withDirs()
185
+ .glob(isNegated ? pattern.substr(1) : pattern)
186
+ .crawl()
187
+ .sync()
183
188
  .sort((a, b) => a.localeCompare(b, 'en'))) {
184
189
  const resolvedPath = path.resolve(path$1);
185
190
  const requirePath = normalizePathSlashes(resolvedPath);
package/dist/es/index.js CHANGED
@@ -2,12 +2,12 @@ import { basename, extname, dirname, relative, resolve, join, sep } from 'path';
2
2
  import { makeLegalIdentifier, createFilter, attachScopes, extractAssignedNames } from '@rollup/pluginutils';
3
3
  import { existsSync, readFileSync, statSync } from 'fs';
4
4
  import getCommonDir from 'commondir';
5
- import { glob } from 'glob';
5
+ import { fdir } from 'fdir';
6
6
  import { walk } from 'estree-walker';
7
7
  import MagicString from 'magic-string';
8
8
  import isReference from 'is-reference';
9
9
 
10
- var version = "27.0.0";
10
+ var version = "28.0.1";
11
11
  var peerDependencies = {
12
12
  rollup: "^2.68.0||^3.0.0||^4.0.0"
13
13
  };
@@ -174,8 +174,13 @@ function getDynamicRequireModules(patterns, dynamicRequireRoot) {
174
174
  isNegated
175
175
  ? dynamicRequireModules.delete(targetPath)
176
176
  : dynamicRequireModules.set(targetPath, resolvedPath);
177
- for (const path of glob
178
- .sync(isNegated ? pattern.substr(1) : pattern)
177
+ // eslint-disable-next-line new-cap
178
+ for (const path of new fdir()
179
+ .withBasePath()
180
+ .withDirs()
181
+ .glob(isNegated ? pattern.substr(1) : pattern)
182
+ .crawl()
183
+ .sync()
179
184
  .sort((a, b) => a.localeCompare(b, 'en'))) {
180
185
  const resolvedPath = resolve(path);
181
186
  const requirePath = normalizePathSlashes(resolvedPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollup/plugin-commonjs",
3
- "version": "27.0.0",
3
+ "version": "28.0.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -50,9 +50,10 @@
50
50
  "@rollup/pluginutils": "^5.0.1",
51
51
  "commondir": "^1.0.1",
52
52
  "estree-walker": "^2.0.2",
53
- "glob": "^10.4.1",
53
+ "fdir": "^6.2.0",
54
54
  "is-reference": "1.2.1",
55
- "magic-string": "^0.30.3"
55
+ "magic-string": "^0.30.3",
56
+ "picomatch": "^4.0.2"
56
57
  },
57
58
  "devDependencies": {
58
59
  "@rollup/plugin-json": "^5.0.0",