everything-dev 1.13.1 → 1.14.0

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/src/cli.ts CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env bun
1
+ #!/usr/bin/env node
2
2
  import { findCommandDescriptor } from "./cli/catalog";
3
3
  import { printHelp } from "./cli/help";
4
4
  import { parseCommandInput } from "./cli/parse";
@@ -4,6 +4,19 @@ import { glob } from "glob";
4
4
 
5
5
  const FRAMEWORK_PACKAGES = ["every-plugin", "everything-dev"] as const;
6
6
 
7
+ const CATALOG_TOOL_PACKAGES = [
8
+ "@rspack/core",
9
+ "@rspack/cli",
10
+ "@rsbuild/core",
11
+ "@rsbuild/plugin-react",
12
+ "@module-federation/enhanced",
13
+ "@module-federation/node",
14
+ "@module-federation/rsbuild-plugin",
15
+ "@module-federation/runtime-core",
16
+ "@module-federation/sdk",
17
+ "@module-federation/dts-plugin",
18
+ ] as const;
19
+
7
20
  type PackageJson = Record<string, unknown>;
8
21
 
9
22
  type NormalizationSpec = {
@@ -72,13 +85,12 @@ function normalizeDependencyMap(
72
85
  spec: NormalizationSpec,
73
86
  options: NormalizeManifestOptions,
74
87
  ) {
88
+ const catalogPackages = new Set<string>([...FRAMEWORK_PACKAGES, ...CATALOG_TOOL_PACKAGES]);
89
+
75
90
  let modified = false;
76
91
 
77
92
  for (const [name, version] of Object.entries(map)) {
78
- if (
79
- options.preserveCatalogRefs &&
80
- FRAMEWORK_PACKAGES.includes(name as (typeof FRAMEWORK_PACKAGES)[number])
81
- ) {
93
+ if (options.preserveCatalogRefs && catalogPackages.has(name)) {
82
94
  if (version !== "catalog:") {
83
95
  map[name] = "catalog:";
84
96
  modified = true;
package/cli.js DELETED
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env node
2
- import { existsSync } from "node:fs";
3
- import { dirname, join } from "node:path";
4
- import { fileURLToPath } from "node:url";
5
-
6
- const __dirname = dirname(fileURLToPath(import.meta.url));
7
- const distEntry = join(__dirname, "dist", "cli.js");
8
- const srcEntry = join(__dirname, "src", "cli.ts");
9
-
10
- await import(existsSync(distEntry) ? distEntry : srcEntry);