OverviewFilesCommitsIssuesDocsReleasesPeers

pgh / index.js

36 lines · javascript ref:
/**
 * pgh — package entry. Re-exports the library surface.
 *
 * For applications:
 *   import { TreeStore, installTree, linkApp } from 'pgh'
 *   import { computeLockfile, detectConflicts } from 'pgh'
 *   import { ReleaseRegistry } from 'pgh'
 *
 * Individual subpath exports (pgh/store, pgh/publish, etc.) are also
 * available for narrower imports.
 */

export { TreeStore, DEFAULT_ROOT } from './lib/store.js'
export { installTree, linkApp, unlinkApp, swapApp } from './lib/tree-install.js'
export { computeLockfile, writeLockfile, readLockfile } from './lib/publish.js'
export {
  detectConflicts,
  formatConflicts,
  CONFLICT_VERSION,
  CONFLICT_BUILD_SKEW
} from './lib/conflict.js'
export {
  validatePghSection,
  summarizePghSection,
  formatValidation
} from './lib/schema.js'
export { PublishedIndex } from './lib/published-index.js'
export { BOOTSTRAP_VERSION, BOOTSTRAP_TOPIC, parseBootstrap } from './lib/bootstrap.js'
export { NetworkFetcher } from './lib/network-fetcher.js'
export {
  ReleaseRegistry,
  canonicalBytes,
  signEntry,
  verifyEntry
} from './lib/release-registry.js'