barrelize 1.5.0 → 1.5.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/lib/index.js +3 -3
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -591,7 +591,7 @@ class CAC extends EventEmitter {
591
591
  }
592
592
  const cac = (name2 = "") => new CAC(name2);
593
593
  const name = "barrelize";
594
- const version = "1.4.2";
594
+ const version = "1.5.0";
595
595
  function cliInit() {
596
596
  const cli = cac(name);
597
597
  cli.command("[config path]", `Generate barrel files`).action(async (config) => {
@@ -16869,8 +16869,8 @@ async function generateBarrels(configDir, configPath, config) {
16869
16869
  }
16870
16870
  const oldExportPaths = await getExportedPathsFromContent(barrelizeContent ?? oldFileContent);
16871
16871
  const { insertions, deletions } = pathsDifferences(
16872
- oldExportPaths,
16873
- newExportPaths.map((x) => x.modifiedPath)
16872
+ newExportPaths.map((x) => x.modifiedPath),
16873
+ oldExportPaths
16874
16874
  );
16875
16875
  const insertionsText = insertions.length > 0 ? `, ${insertions.length} insertion${plural(insertions)}` : "";
16876
16876
  const deletionsText = deletions.length > 0 ? `, ${deletions.length} deletion${plural(deletions)}` : "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barrelize",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Automatically generating index (barrel) files",
5
5
  "scripts": {
6
6
  "build": "npm run schema && vite build",