overridesFor
Maps every packed package to its file: specifier.
Maps every packed package to its file: specifier. Used both as direct dependencies and as
overrides, so a package that depends on another ShadowJS package (the Vite plugin on the
compiler) resolves it from the tarball instead of the registry.
Import#
ts
import { overridesFor } from "create-shadow-app";
Signature#
ts
function overridesFor(manifest: LocalManifest, from?: string): Record<string, string>
Examples#
ts
overridesFor({ packages: [{ name: "@shadow-js/core", version: "1.0.0", tarball: "/pack/core.tgz" }] });
// { "@shadow-js/core": "file:/pack/core.tgz" }