rolldown-pnpm-config 3.0.0 → 3.0.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.
- package/catalogs.js +1 -1
- package/cli/commands/export.js +7 -7
- package/cli/commands/preview.js +5 -5
- package/cli/commands/upgrade.js +8 -9
- package/cli/cwd.js +1 -1
- package/cli/diff/render.js +1 -1
- package/cli/discover.js +2 -2
- package/cli/drift.js +1 -1
- package/cli/evaluate.js +1 -1
- package/cli/interop-live.js +1 -1
- package/cli/interop.js +1 -1
- package/cli/load-config.js +2 -2
- package/cli/main.js +3 -3
- package/cli/peer-range.js +1 -1
- package/cli/plan.js +2 -2
- package/cli/preview-views.js +1 -1
- package/cli/release-age.js +1 -1
- package/cli/render/legend.js +1 -1
- package/cli/render/print.js +1 -1
- package/cli/resolve.js +2 -2
- package/cli/root.js +2 -2
- package/cli/select-file.js +2 -2
- package/cli/simulated-view.js +3 -3
- package/cli/summary.js +1 -1
- package/cli/ui/preview-screen.js +1 -1
- package/cli/ui/screens.js +2 -2
- package/cli/ui/walk-screen.js +3 -3
- package/cli/validate.js +1 -1
- package/cli/version.js +1 -1
- package/cli/walk-plan.js +1 -1
- package/cli/workspace-resolve.js +4 -4
- package/package.json +11 -11
- package/patches/build.js +1 -1
- package/patches/discover.js +3 -3
- package/patches/reconcile.js +1 -1
- package/plugin/allowed-versions.js +2 -2
- package/plugin/freeze.js +4 -5
- package/plugin/index.js +1 -1
- package/plugin/overrides-from-catalogs.js +3 -3
- package/runtime/ctx.js +1 -1
- package/semver-util.js +1 -1
package/catalogs.js
CHANGED
package/cli/commands/export.js
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import { existsSync } from "node:fs";
|
|
2
|
+
import { dirname, relative } from "node:path";
|
|
3
|
+
import { CliDoc, CliMessage } from "@effected/cli-kit";
|
|
4
|
+
import { AtomicFile } from "@effected/files";
|
|
5
|
+
import { PnpmWorkspaceFile } from "@effected/pnpm";
|
|
6
|
+
import { Data, Effect, Option, Predicate } from "effect";
|
|
7
|
+
import { Argument, Command, Flag } from "effect/cli";
|
|
1
8
|
import { discoverOwnedPatches, withResolvedBuildPatches } from "../../patches/build.js";
|
|
2
9
|
import { reconcilePatches } from "../../patches/reconcile.js";
|
|
3
10
|
import { freeze } from "../../plugin/freeze.js";
|
|
@@ -13,13 +20,6 @@ import { printView } from "../render/print.js";
|
|
|
13
20
|
import { failureDoc } from "../render/report.js";
|
|
14
21
|
import { findConfigFiles, pickConfigCandidate } from "../select-file.js";
|
|
15
22
|
import { overlayWorkspace } from "../workspace-overlay.js";
|
|
16
|
-
import { Data, Effect, Option, Predicate } from "effect";
|
|
17
|
-
import { dirname, relative } from "node:path";
|
|
18
|
-
import { CliDoc, CliMessage } from "@effected/cli-kit";
|
|
19
|
-
import { PnpmWorkspaceFile } from "@effected/pnpm";
|
|
20
|
-
import { existsSync } from "node:fs";
|
|
21
|
-
import { Argument, Command, Flag } from "effect/cli";
|
|
22
|
-
import { AtomicFile } from "@effected/files";
|
|
23
23
|
|
|
24
24
|
// src/cli/commands/export.ts
|
|
25
25
|
/**
|
package/cli/commands/preview.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import { dirname } from "node:path";
|
|
2
|
+
import { CliDoc, CliInteractive } from "@effected/cli-kit";
|
|
3
|
+
import { CliUi } from "@effected/cli-kit/ui";
|
|
4
|
+
import { Data, Effect, Option } from "effect";
|
|
5
|
+
import { Argument, Command } from "effect/cli";
|
|
1
6
|
import { freeze } from "../../plugin/freeze.js";
|
|
2
7
|
import { WORKSPACE_FIELDS } from "../../registry.js";
|
|
3
8
|
import { resolveRootName } from "../../runtime/ctx.js";
|
|
@@ -9,11 +14,6 @@ import { printView } from "../render/print.js";
|
|
|
9
14
|
import { failureDoc } from "../render/report.js";
|
|
10
15
|
import { findConfigFiles, pickConfigCandidate } from "../select-file.js";
|
|
11
16
|
import { previewScreen } from "../ui/screens.js";
|
|
12
|
-
import { Data, Effect, Option } from "effect";
|
|
13
|
-
import { dirname } from "node:path";
|
|
14
|
-
import { CliDoc, CliInteractive } from "@effected/cli-kit";
|
|
15
|
-
import { Argument, Command } from "effect/cli";
|
|
16
|
-
import { CliUi } from "@effected/cli-kit/ui";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/preview.ts
|
|
19
19
|
/** Typed failure for the preview run. @internal */
|
package/cli/commands/upgrade.js
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import { dirname } from "node:path";
|
|
2
|
+
import { CliDoc, CliExit, CliFormat, CliInteractive, CliMessage, Doc, Fmt } from "@effected/cli-kit";
|
|
3
|
+
import { CliUi } from "@effected/cli-kit/ui";
|
|
4
|
+
import { AtomicFile } from "@effected/files";
|
|
5
|
+
import { ReleaseAgeGate } from "@effected/pnpm";
|
|
6
|
+
import { Clock, Data, Effect, FileSystem, Option, Result } from "effect";
|
|
7
|
+
import { Argument, Command, Flag } from "effect/cli";
|
|
1
8
|
import { bareVersion } from "../../semver-util.js";
|
|
2
9
|
import { WorkingDirectory } from "../cwd.js";
|
|
3
10
|
import { discoverCatalogEntries } from "../discover.js";
|
|
@@ -18,13 +25,6 @@ import { validateEdits } from "../validate.js";
|
|
|
18
25
|
import { versionKeyOf } from "../version-key.js";
|
|
19
26
|
import { buildWalkItems } from "../walk-plan.js";
|
|
20
27
|
import { findWorkspaceRoot, makeWorkspaceResolver } from "../workspace-resolve.js";
|
|
21
|
-
import { Clock, Data, Effect, FileSystem, Option, Result } from "effect";
|
|
22
|
-
import { dirname } from "node:path";
|
|
23
|
-
import { CliDoc, CliExit, CliFormat, CliInteractive, CliMessage, Doc, Fmt } from "@effected/cli-kit";
|
|
24
|
-
import { ReleaseAgeGate } from "@effected/pnpm";
|
|
25
|
-
import { Argument, Command, Flag } from "effect/cli";
|
|
26
|
-
import { AtomicFile } from "@effected/files";
|
|
27
|
-
import { CliUi } from "@effected/cli-kit/ui";
|
|
28
28
|
|
|
29
29
|
// src/cli/commands/upgrade.ts
|
|
30
30
|
/**
|
|
@@ -667,11 +667,10 @@ function resolveForWalk(entries, resolver, gate, workspaceResolver, report) {
|
|
|
667
667
|
const interopModels = /* @__PURE__ */ new Map();
|
|
668
668
|
if (interopByCatalog.size > 0) {
|
|
669
669
|
const fetchPeer = makePeerFetcher(resolver);
|
|
670
|
-
const total = interopByCatalog.size;
|
|
671
670
|
yield* report({
|
|
672
671
|
_tag: "Phase",
|
|
673
672
|
label: "Resolving peer dependencies",
|
|
674
|
-
total
|
|
673
|
+
total: interopByCatalog.size
|
|
675
674
|
});
|
|
676
675
|
for (const [catalog, group] of interopByCatalog) {
|
|
677
676
|
const candByPkg = /* @__PURE__ */ new Map();
|
package/cli/cwd.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Context, Effect } from "effect";
|
|
2
1
|
import { join } from "node:path";
|
|
3
2
|
import { locateWorkspaceRootSync } from "@effected/workspaces";
|
|
4
3
|
import { nodeSyncOps } from "@effected/workspaces/node-sync";
|
|
4
|
+
import { Context, Effect } from "effect";
|
|
5
5
|
|
|
6
6
|
// src/cli/cwd.ts
|
|
7
7
|
/**
|
package/cli/diff/render.js
CHANGED
package/cli/discover.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { REWRITABLE_RANGE_RE } from "../catalogs.js";
|
|
2
|
-
import { findPluginArg, keyName, prop } from "./ast.js";
|
|
3
1
|
import { Data } from "effect";
|
|
4
2
|
import { parseSync } from "oxc-parser";
|
|
3
|
+
import { REWRITABLE_RANGE_RE } from "../catalogs.js";
|
|
4
|
+
import { findPluginArg, keyName, prop } from "./ast.js";
|
|
5
5
|
|
|
6
6
|
// src/cli/discover.ts
|
|
7
7
|
/**
|
package/cli/drift.js
CHANGED
package/cli/evaluate.js
CHANGED
package/cli/interop-live.js
CHANGED
package/cli/interop.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { bareVersion, parseRange, parseVersion } from "../semver-util.js";
|
|
2
1
|
import { Effect } from "effect";
|
|
2
|
+
import { bareVersion, parseRange, parseVersion } from "../semver-util.js";
|
|
3
3
|
|
|
4
4
|
// src/cli/interop.ts
|
|
5
5
|
/** Maximum number of concurrent peerDependencies fetches inside runInterop. @internal */
|
package/cli/load-config.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { evaluatePluginConfig } from "./evaluate.js";
|
|
2
|
-
import { Effect, FileSystem, Predicate } from "effect";
|
|
3
1
|
import { Fmt } from "@effected/cli-kit";
|
|
4
2
|
import { PnpmWorkspaceFile } from "@effected/pnpm";
|
|
3
|
+
import { Effect, FileSystem, Predicate } from "effect";
|
|
4
|
+
import { evaluatePluginConfig } from "./evaluate.js";
|
|
5
5
|
|
|
6
6
|
// src/cli/load-config.ts
|
|
7
7
|
/**
|
package/cli/main.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { NodeRuntime, NodeServices } from "@effect/platform-node";
|
|
2
|
+
import { CliAudience, CliRuntime } from "@effected/cli-kit";
|
|
3
|
+
import { Effect } from "effect";
|
|
1
4
|
import { WorkingDirectory } from "./cwd.js";
|
|
2
5
|
import { EXIT_CODES } from "./exit-codes.js";
|
|
3
6
|
import { RegistryResolverLive } from "./resolve.js";
|
|
4
7
|
import { rootCommand } from "./root.js";
|
|
5
8
|
import { CLI_VERSION } from "./version.js";
|
|
6
|
-
import { Effect } from "effect";
|
|
7
|
-
import { CliAudience, CliRuntime } from "@effected/cli-kit";
|
|
8
|
-
import { NodeRuntime, NodeServices } from "@effect/platform-node";
|
|
9
9
|
|
|
10
10
|
// src/cli/main.ts
|
|
11
11
|
/**
|
package/cli/peer-range.js
CHANGED
package/cli/plan.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { Range, SemVer } from "@effected/semver";
|
|
2
|
+
import { Effect, Option } from "effect";
|
|
1
3
|
import { bareVersion, parseRange, parseVersion } from "../semver-util.js";
|
|
2
4
|
import { derivePeerRange } from "./peer-range.js";
|
|
3
|
-
import { Effect, Option } from "effect";
|
|
4
|
-
import { Range, SemVer } from "@effected/semver";
|
|
5
5
|
|
|
6
6
|
// src/cli/plan.ts
|
|
7
7
|
/**
|
package/cli/preview-views.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { PnpmWorkspaceFile } from "@effected/pnpm";
|
|
1
2
|
import { WORKSPACE_FIELDS } from "../registry.js";
|
|
2
3
|
import { buildDiff } from "./diff/build.js";
|
|
3
4
|
import { renderExportDiff } from "./diff/render.js";
|
|
4
5
|
import { effectiveManaged, vanillaManaged } from "./effective.js";
|
|
5
6
|
import { renderSimulated } from "./simulated-view.js";
|
|
6
7
|
import { overlayWorkspace } from "./workspace-overlay.js";
|
|
7
|
-
import { PnpmWorkspaceFile } from "@effected/pnpm";
|
|
8
8
|
|
|
9
9
|
// src/cli/preview-views.ts
|
|
10
10
|
/**
|
package/cli/release-age.js
CHANGED
package/cli/render/legend.js
CHANGED
package/cli/render/print.js
CHANGED
package/cli/resolve.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Context, Data, DateTime, Effect, FileSystem, Layer, Option, Path } from "effect";
|
|
2
|
-
import { PnpmNpmConfig, PnpmSettings } from "@effected/pnpm";
|
|
3
1
|
import { NpmRegistry } from "@effected/npm";
|
|
4
2
|
import { NpmHttpClient } from "@effected/npm/node";
|
|
3
|
+
import { PnpmNpmConfig, PnpmSettings } from "@effected/pnpm";
|
|
4
|
+
import { Context, Data, DateTime, Effect, FileSystem, Layer, Option, Path } from "effect";
|
|
5
5
|
|
|
6
6
|
// src/cli/resolve.ts
|
|
7
7
|
/**
|
package/cli/root.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { CliAudience } from "@effected/cli-kit";
|
|
2
|
+
import { Command } from "effect/cli";
|
|
1
3
|
import { exportCommand } from "./commands/export.js";
|
|
2
4
|
import { previewCommand } from "./commands/preview.js";
|
|
3
5
|
import { upgradeCommand } from "./commands/upgrade.js";
|
|
4
|
-
import { CliAudience } from "@effected/cli-kit";
|
|
5
|
-
import { Command } from "effect/cli";
|
|
6
6
|
|
|
7
7
|
// src/cli/root.ts
|
|
8
8
|
/**
|
package/cli/select-file.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { discoverCatalogEntries } from "./discover.js";
|
|
2
|
-
import { Effect, FileSystem, Result } from "effect";
|
|
3
1
|
import { join } from "node:path";
|
|
4
2
|
import { GlobPattern, GlobPatternOptions } from "@effected/glob";
|
|
5
3
|
import { descendSync } from "@effected/walker";
|
|
6
4
|
import { nodeWalkerSyncOps } from "@effected/walker/node-sync";
|
|
5
|
+
import { Effect, FileSystem, Result } from "effect";
|
|
6
|
+
import { discoverCatalogEntries } from "./discover.js";
|
|
7
7
|
|
|
8
8
|
// src/cli/select-file.ts
|
|
9
9
|
/** Top-level `.ts` FILES of a directory, no dotfiles, sorted. */
|
package/cli/simulated-view.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { scalarText } from "./diff/render.js";
|
|
2
|
-
import { row, tone } from "./render/tone.js";
|
|
3
|
-
import { Predicate } from "effect";
|
|
4
1
|
import { Doc } from "@effected/cli-kit";
|
|
5
2
|
import { PnpmWorkspaceFile } from "@effected/pnpm";
|
|
3
|
+
import { Predicate } from "effect";
|
|
4
|
+
import { scalarText } from "./diff/render.js";
|
|
5
|
+
import { row, tone } from "./render/tone.js";
|
|
6
6
|
|
|
7
7
|
// src/cli/simulated-view.ts
|
|
8
8
|
/**
|
package/cli/summary.js
CHANGED
package/cli/ui/preview-screen.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { legend, simulatedLegend } from "../render/legend.js";
|
|
2
1
|
import { Doc } from "@effected/cli-kit";
|
|
3
2
|
import { DocView, KeyHelp, KeyTable, Styled, Tabs, Viewport, useKeys, useTerminalSize, useTheme } from "@effected/cli-kit/ui";
|
|
4
3
|
import { Box, Text } from "ink";
|
|
5
4
|
import { useEffect, useState } from "react";
|
|
5
|
+
import { legend, simulatedLegend } from "../render/legend.js";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
// src/cli/ui/preview-screen.tsx
|
package/cli/ui/screens.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { initialProgress, reduceProgress } from "./progress.js";
|
|
2
|
-
import { Effect, PubSub } from "effect";
|
|
3
1
|
import { CliUi } from "@effected/cli-kit/ui";
|
|
2
|
+
import { Effect, PubSub } from "effect";
|
|
3
|
+
import { initialProgress, reduceProgress } from "./progress.js";
|
|
4
4
|
|
|
5
5
|
// src/cli/ui/screens.ts
|
|
6
6
|
/** The interactive upgrade table, loaded on mount. @internal */
|
package/cli/ui/walk-screen.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { computeGroupPeers } from "../interop-live.js";
|
|
2
|
-
import { TONES } from "../render/tone.js";
|
|
3
|
-
import { cellTone, displayCandidates, initTable, peerFor, tableDecisions, tableLayout, tableStep } from "../walk-reducer.js";
|
|
4
1
|
import { Fmt } from "@effected/cli-kit";
|
|
5
2
|
import { KeyHelp, KeyTable, Styled, useKeys, useTerminalSize } from "@effected/cli-kit/ui";
|
|
6
3
|
import { Box, Text } from "ink";
|
|
7
4
|
import { useRef, useState } from "react";
|
|
5
|
+
import { computeGroupPeers } from "../interop-live.js";
|
|
6
|
+
import { TONES } from "../render/tone.js";
|
|
7
|
+
import { cellTone, displayCandidates, initTable, peerFor, tableDecisions, tableLayout, tableStep } from "../walk-reducer.js";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
|
|
10
10
|
// src/cli/ui/walk-screen.tsx
|
package/cli/validate.js
CHANGED
package/cli/version.js
CHANGED
package/cli/walk-plan.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { Effect } from "effect";
|
|
1
2
|
import { detectPeerDrift } from "./drift.js";
|
|
2
3
|
import { derivePeerRange } from "./peer-range.js";
|
|
3
4
|
import { planEntry } from "./plan.js";
|
|
4
5
|
import { versionKeyOf } from "./version-key.js";
|
|
5
|
-
import { Effect } from "effect";
|
|
6
6
|
|
|
7
7
|
// src/cli/walk-plan.ts
|
|
8
8
|
/**
|
package/cli/workspace-resolve.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { parseVersion } from "../semver-util.js";
|
|
2
|
-
import { ResolveError } from "./resolve.js";
|
|
3
|
-
import { Effect, Result } from "effect";
|
|
4
1
|
import { resolve } from "node:path";
|
|
2
|
+
import { PendingChangesets } from "@effected/changesets";
|
|
5
3
|
import { Fmt } from "@effected/cli-kit";
|
|
6
4
|
import { WorkspaceDiscoveryError, WorkspacePatternError, findWorkspaceRootSync, getWorkspacePackagesSync } from "@effected/workspaces";
|
|
7
5
|
import { nodeSyncOps } from "@effected/workspaces/node-sync";
|
|
8
|
-
import {
|
|
6
|
+
import { Effect, Result } from "effect";
|
|
7
|
+
import { parseVersion } from "../semver-util.js";
|
|
8
|
+
import { ResolveError } from "./resolve.js";
|
|
9
9
|
|
|
10
10
|
// src/cli/workspace-resolve.ts
|
|
11
11
|
/** Bump strength, weakest to strongest, for strongest-bump-per-package. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown-pnpm-config",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A dogfooding example of our plugin",
|
|
6
6
|
"repository": {
|
|
@@ -35,21 +35,21 @@
|
|
|
35
35
|
"rolldown-pnpm-config": "bin/rolldown-pnpm-config.js"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@effect/platform-node": "4.1.
|
|
39
|
-
"@effected/changesets": "0.6.
|
|
40
|
-
"@effected/cli-kit": "0.
|
|
38
|
+
"@effect/platform-node": "4.1.5",
|
|
39
|
+
"@effected/changesets": "0.6.1",
|
|
40
|
+
"@effected/cli-kit": "0.30.1",
|
|
41
41
|
"@effected/env": "0.12.0",
|
|
42
42
|
"@effected/files": "0.3.0",
|
|
43
|
-
"@effected/glob": "0.
|
|
44
|
-
"@effected/npm": "0.35.
|
|
45
|
-
"@effected/pnpm": "0.1.
|
|
43
|
+
"@effected/glob": "0.23.0",
|
|
44
|
+
"@effected/npm": "0.35.1",
|
|
45
|
+
"@effected/pnpm": "0.1.1",
|
|
46
46
|
"@effected/semver": "0.24.0",
|
|
47
|
-
"@effected/walker": "0.
|
|
48
|
-
"@effected/workspaces": "0.48.
|
|
47
|
+
"@effected/walker": "0.30.0",
|
|
48
|
+
"@effected/workspaces": "0.48.2",
|
|
49
49
|
"@effected/yaml": "0.30.0",
|
|
50
|
-
"effect": "4.1.
|
|
50
|
+
"effect": "4.1.5",
|
|
51
51
|
"ink": "^8.0.0",
|
|
52
|
-
"oxc-parser": "^0.
|
|
52
|
+
"oxc-parser": "^0.159.0",
|
|
53
53
|
"react": "^19.3.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
package/patches/build.js
CHANGED
package/patches/discover.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { patchKeyFromFileName } from "./keys.js";
|
|
2
|
-
import { distributedPatchPath, distributedRel } from "./paths.js";
|
|
3
|
-
import { Result } from "effect";
|
|
4
1
|
import { isAbsolute, join } from "node:path";
|
|
5
2
|
import { GlobPattern, GlobPatternOptions } from "@effected/glob";
|
|
6
3
|
import { descendSync } from "@effected/walker";
|
|
7
4
|
import { nodeWalkerSyncOps } from "@effected/walker/node-sync";
|
|
5
|
+
import { Result } from "effect";
|
|
6
|
+
import { patchKeyFromFileName } from "./keys.js";
|
|
7
|
+
import { distributedPatchPath, distributedRel } from "./paths.js";
|
|
8
8
|
|
|
9
9
|
// src/patches/discover.ts
|
|
10
10
|
/**
|
package/patches/reconcile.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { VersionSpecifier } from "@effected/semver";
|
|
2
|
+
import { Predicate, Result } from "effect";
|
|
1
3
|
import { rangeOf } from "../catalogs.js";
|
|
2
4
|
import { bareVersion } from "../semver-util.js";
|
|
3
|
-
import { Predicate, Result } from "effect";
|
|
4
|
-
import { VersionSpecifier } from "@effected/semver";
|
|
5
5
|
|
|
6
6
|
// src/plugin/allowed-versions.ts
|
|
7
7
|
/** An exact version: no range operator, no wildcard, no build metadata — `X.Y.Z` with an optional prerelease. */
|
package/plugin/freeze.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { Fmt } from "@effected/cli-kit";
|
|
2
|
+
import { PnpmSettingsCatalog } from "@effected/pnpm/settings";
|
|
3
|
+
import { Data, Effect, Predicate, Schema } from "effect";
|
|
1
4
|
import { normalizeCatalogs } from "../catalogs.js";
|
|
2
5
|
import { FIELD_REGISTRY, FIELD_SCHEMAS } from "../registry.js";
|
|
3
6
|
import { resolvePeerDependencyRules } from "./allowed-versions.js";
|
|
4
7
|
import { pinCatalogs, resolveOverrides } from "./overrides-from-catalogs.js";
|
|
5
|
-
import { Data, Effect, Predicate, Schema } from "effect";
|
|
6
|
-
import { Fmt } from "@effected/cli-kit";
|
|
7
|
-
import { PnpmSettingsCatalog } from "@effected/pnpm/settings";
|
|
8
8
|
|
|
9
9
|
// src/plugin/freeze.ts
|
|
10
10
|
/**
|
|
@@ -134,8 +134,7 @@ function freeze(config) {
|
|
|
134
134
|
if (raw === void 0 && field === "overrides" && config.overridesFromCatalogs !== void 0) raw = {};
|
|
135
135
|
if (raw === void 0) continue;
|
|
136
136
|
const decl = normalizeField(raw);
|
|
137
|
-
|
|
138
|
-
base[field] = yield* validateField(field, schema, field === "peerDependencyRules" ? yield* Effect.try({
|
|
137
|
+
base[field] = yield* validateField(field, FIELD_SCHEMAS[field], field === "peerDependencyRules" ? yield* Effect.try({
|
|
139
138
|
try: () => resolvePeerDependencyRules(decl.value, config.catalogs),
|
|
140
139
|
catch: directiveError
|
|
141
140
|
}) : field === "overrides" ? yield* Effect.try({
|
package/plugin/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { Effect } from "effect";
|
|
1
2
|
import { withResolvedBuildPatches } from "../patches/build.js";
|
|
2
3
|
import { freeze } from "./freeze.js";
|
|
3
4
|
import { emitCatalogsModule, emitPnpmfileModule } from "./serialize.js";
|
|
4
|
-
import { Effect } from "effect";
|
|
5
5
|
|
|
6
6
|
// src/plugin/index.ts
|
|
7
7
|
const PNPMFILE_SPEC = "rolldown-pnpm-config/virtual/pnpmfile";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { rangeOf } from "../catalogs.js";
|
|
2
|
-
import { Glob, Option, Predicate, Result } from "effect";
|
|
3
|
-
import { VersionSpecifier } from "@effected/semver";
|
|
4
1
|
import { OverrideKey } from "@effected/pnpm";
|
|
2
|
+
import { VersionSpecifier } from "@effected/semver";
|
|
3
|
+
import { Glob, Option, Predicate, Result } from "effect";
|
|
4
|
+
import { rangeOf } from "../catalogs.js";
|
|
5
5
|
|
|
6
6
|
// src/plugin/overrides-from-catalogs.ts
|
|
7
7
|
/** The simple operators that can pin: an optional `^`, `~`, `>=` or `=` on one version. */
|
package/runtime/ctx.js
CHANGED