rolldown-pnpm-config 0.2.0 → 0.2.2

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.
@@ -14,7 +14,7 @@ const root = Command.make("rolldown-pnpm-config").pipe(Command.withSubcommands([
14
14
  ]));
15
15
  Command.run(root, {
16
16
  name: "rolldown-pnpm-config",
17
- version: "0.2.0"
17
+ version: "0.2.2"
18
18
  })(process.argv).pipe(Effect.provide(NodeContext.layer), NodeRuntime.runMain);
19
19
 
20
20
  //#endregion
package/cli/plan.js CHANGED
@@ -24,7 +24,8 @@ function planEntry(entry, versions) {
24
24
  }
25
25
  parsed.sort((a, b) => a.compare(b));
26
26
  const maxOf = (list) => list.length ? list[list.length - 1] : null;
27
- const current = yield* parseOrNull(entry.currentRange.replace(/^[\^~]/, ""));
27
+ const currentStripped = entry.currentRange.replace(/^[\^~]/, "");
28
+ const current = yield* parseOrNull(currentStripped);
28
29
  const currentMajor = current?.major ?? 0;
29
30
  const inRangeMax = range ? maxOf(parsed.filter((v) => range.test(v))) : null;
30
31
  const overallMax = maxOf(parsed);
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
+ import "effect";
1
2
  import { Plugin } from "rolldown";
2
-
3
3
  //#region src/catalogs.d.ts
4
4
  /**
5
5
  * How the `upgrade` CLI recomputes a materialized peer range when the package
@@ -90,7 +90,7 @@ interface PluginConfig {
90
90
  * folder detection is independent and unaffected.
91
91
  */
92
92
  readonly localPatchesDir?: string;
93
- } & { readonly [K in keyof PluginConfig]?: PluginConfig[K] | LocalDirective<PluginConfig[K]> };
93
+ } & { readonly [K in keyof PluginConfig]?: PluginConfig[K] | LocalDirective<PluginConfig[K]>; };
94
94
  /** Whether pnpm prompts before purging `node_modules`. */
95
95
  readonly confirmModulesPurge?: FieldInput<boolean>;
96
96
  /** Per-package manifest overrides merged into the dependency graph. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rolldown-pnpm-config",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "private": false,
5
5
  "description": "A dogfooding example of our plugin",
6
6
  "repository": {
@@ -34,16 +34,24 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@effect/cli": "^0.75.2",
37
+ "@effect/cluster": "^0.59.0",
38
+ "@effect/experimental": "^0.60.0",
37
39
  "@effect/platform": "^0.96.2",
38
40
  "@effect/platform-node": "^0.107.0",
41
+ "@effect/printer": "^0.49.0",
42
+ "@effect/printer-ansi": "^0.49.0",
43
+ "@effect/rpc": "^0.75.1",
44
+ "@effect/sql": "^0.51.1",
45
+ "@effect/typeclass": "^0.40.0",
46
+ "@effect/workflow": "^0.18.2",
39
47
  "effect": "^3.21.4",
40
48
  "ink": "^7.1.0",
41
49
  "ink-tab": "^5.2.0",
42
- "oxc-parser": "^0.137.0",
50
+ "oxc-parser": "^0.139.0",
43
51
  "react": "^19.2.7",
44
- "semver-effect": "^0.2.1",
45
- "std-env": "^4.1.0",
46
- "std-osc8": "^0.1.0",
52
+ "semver-effect": "^0.3.1",
53
+ "std-env": "^4.2.0",
54
+ "std-osc8": "^0.2.0",
47
55
  "yaml": "^2.9.0"
48
56
  },
49
57
  "peerDependencies": {