@strapi/upgrade 5.0.0-rc.16 → 5.0.0-rc.18

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/cli.js CHANGED
@@ -10,7 +10,7 @@ const utils = require("@strapi/utils");
10
10
  const fp = require("lodash/fp");
11
11
  const fse = require("fs-extra");
12
12
  const assert = require("node:assert");
13
- const glob = require("glob");
13
+ const fastglob = require("fast-glob");
14
14
  const Runner = require("jscodeshift/src/Runner");
15
15
  const node = require("esbuild-register/dist/node");
16
16
  const CliTable3 = require("cli-table3");
@@ -23,6 +23,7 @@ const path__default = /* @__PURE__ */ _interopDefault(path$1);
23
23
  const simpleGit__default = /* @__PURE__ */ _interopDefault(simpleGit);
24
24
  const fse__default = /* @__PURE__ */ _interopDefault(fse);
25
25
  const assert__default = /* @__PURE__ */ _interopDefault(assert);
26
+ const fastglob__default = /* @__PURE__ */ _interopDefault(fastglob);
26
27
  const CliTable3__default = /* @__PURE__ */ _interopDefault(CliTable3);
27
28
  class Logger {
28
29
  isDebug;
@@ -339,7 +340,9 @@ class FileScanner {
339
340
  this.cwd = cwd;
340
341
  }
341
342
  scan(patterns) {
342
- const filenames = glob.glob.sync(patterns, { cwd: this.cwd });
343
+ const filenames = fastglob__default.default.sync(patterns, {
344
+ cwd: this.cwd
345
+ });
343
346
  return filenames.map((filename) => path__default.default.join(this.cwd, filename));
344
347
  }
345
348
  }
@@ -529,6 +532,8 @@ class AppProject extends Project {
529
532
  return [
530
533
  // App default files
531
534
  `./${allowedRootPaths}/**/*.${allowedExtensions}`,
535
+ `!./**/node_modules/**/*`,
536
+ `!./**/dist/**/*`,
532
537
  // Root package.json file
533
538
  PROJECT_PACKAGE_JSON
534
539
  ];
@@ -602,6 +607,8 @@ class PluginProject extends Project {
602
607
  return [
603
608
  // Plugin default files
604
609
  `./${allowedRootPaths}/**/*.${allowedExtensions}`,
610
+ `!./**/node_modules/**/*`,
611
+ `!./**/dist/**/*`,
605
612
  // Root package.json file
606
613
  PROJECT_PACKAGE_JSON,
607
614
  // Plugin root files
@@ -1470,7 +1477,7 @@ When executed on a Strapi plugin project, it shows every codemods.
1470
1477
  return listCodemods(options);
1471
1478
  });
1472
1479
  };
1473
- const version = "5.0.0-rc.16";
1480
+ const version = "5.0.0-rc.18";
1474
1481
  register$1(commander.program);
1475
1482
  register(commander.program);
1476
1483
  commander.program.usage("<command> [options]").on("command:*", ([invalidCmd]) => {