/** * package.json parsing, editing, validation and file IO as Effect schemas. * * The {@link Package} class is the schema: typed known fields plus a `rest` * catch-all for round-trip fidelity, computed getters, dual-signature mutation * statics, and {@link Package.resolve} over the `@effected/npm` resolver * contracts. Leaf concepts (`PackageName`, `DependencySpecifier`, * `SpdxLicense`, {@link PackageManager}, {@link Person}, {@link DevEngine}, * {@link Dependency}) carry their own statics and errors and compose into * `Package`'s fields. `Package` and {@link Person} are the two object-shaped * models, and both carry the `rest` catch-all; the remaining leaves model a * single scalar or a closed shape and so have no unknown keys to preserve. * {@link PackageJsonFile} is the only IO surface, over core `FileSystem` / * `Path`; {@link PackageValidator} runs rule-based validation over a decoded * `Package`; {@link PackageJsonFormat} sorts and formats without decoding, for * hosts that must accept manifests `Package.decode` rejects. * * {@link PackageManifest} is the presence-lenient model — `name` / `version` * optional, `packageManager` accepting the range spelling as * {@link PackageManagerRange} — for the private workspace-root shape the * strict `Package` rejects; {@link LenientManifest} is the shape-lenient * discovery tier below it, degrading malformed fields to absence (preserved * in `rest`, reported on `issues`) instead of failing the document; and * `PackageJsonFormat.modify` / `PackageJsonFile.modify` are the surgical, * byte-preserving field edits for tools that mutate other people's manifests. * * @packageDocumentation */ export { JsoncEdit, type JsoncPath } from "@effected/jsonc"; export { type DependencyKind, type DependencyProtocol, DependencySpecifier, type DependencySpecifierBrand, InvalidDependencySpecifierError, isValidDependencySpecifier, } from "@effected/npm"; export { Dependency, type UnresolvedDependency, isUnresolvedDependency } from "./Dependency.js"; export { DevEngine, DevEngineOrArray, type DevEngines, DevEnginesSchema } from "./DevEngines.js"; export { type EntryPointManifest, type ResolveEntryPointOptions, UnresolvedEntryPointError, resolveEntryPoint, } from "./EntryPoint.js"; export { Funding } from "./Funding.js"; export { type LenientFieldIssue, LenientManifest } from "./LenientManifest.js"; export { InvalidSpdxLicenseError, SpdxLicense, isValidSpdx, licenseExpressionOf } from "./License.js"; export { BinField, DependencyMapField, ExportsField, Package, PackageDecodeError, type PackageFormatOptions, type PackageIndent, type PackagePatch, PeerDependenciesMetaField, PublishConfigField, RepositoryField, StringMapField, } from "./Package.js"; export { ExportEntry, PackageExports, PackageExportsError, type PackageExportsManifest, type PackageExportsOptions, PackageFileTarget, type PackageImportTarget, type PackageSpecifierParts, PackageSpecifierTarget, type PackageTypesOptions, TypesTarget, } from "./PackageExports.js"; export { type PackageFieldEdit, PackageJsonFile, type PackageJsonFileShape, PackageJsonNotFoundError, PackageJsonParseError, PackageJsonReadError, PackageJsonWriteError, type PackageJsonWriteOptions, } from "./PackageJsonFile.js"; export { type PackageFormatTextOptions, PackageJsonFormat, PackageJsonModifyError, PackageJsonSyntaxError, type PackageModifyOptions, } from "./PackageJsonFormat.js"; export { PackageManager } from "./PackageManager.js"; export type { DevEnginePackageManagerEntry } from "./PackageManagerRange.js"; export { InvalidPackageManagerRangeError, PackageManagerRange } from "./PackageManagerRange.js"; export { PackageManifest } from "./PackageManifest.js"; export { InvalidPackageNameError, PackageName, type PackageNameStatics, ScopedPackageName, UnscopedPackageName, } from "./PackageName.js"; export { PackageValidationError, PackageValidator, type RuleFailure, type ValidationRule, defaultRules, noLocalDepsRule, noUnresolvedDepsRule, } from "./PackageValidator.js"; export { Person } from "./Person.js"; export { Bugs, Repository, RepositorySlug } from "./Repository.js";