- contracts: ProvenanceRegistry, AttestationRegistry, SettlementEscrow, MockUSDC (Foundry, OZ AccessControl/SafeERC20/ReentrancyGuard/Pausable), 55 tests - shared: typed ABI/type/address layer (viem, Base Sepolia) - agent: Fastify + Claude tool-calling verification service, deterministic scoring reconciliation, on-chain attest/settle, 73 tests - web: Next.js 15 dApp (wagmi/viem/RainbowKit) — supplier/buyer/verifier/deal, 80 tests - infra: Supabase schema + client, IPFS (Pinata + local fallback), 45 tests - integrated, security + TS reviewed, 18 findings fixed; 314 tests green Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
23 lines
812 B
TypeScript
23 lines
812 B
TypeScript
import { defineConfig } from 'tsup';
|
|
|
|
export default defineConfig({
|
|
entry: ['src/index.ts'],
|
|
// A build-only tsconfig WITHOUT the `paths` alias, so esbuild resolves
|
|
// `@proofchain/shared` as a bare external import (the alias only exists to
|
|
// point tsc/vitest at the local test double).
|
|
tsconfig: 'tsconfig.build.json',
|
|
format: ['esm'],
|
|
target: 'node22',
|
|
platform: 'node',
|
|
outDir: 'dist',
|
|
dts: true,
|
|
clean: true,
|
|
sourcemap: true,
|
|
// Keep dependencies external; `@proofchain/shared` is resolved from the
|
|
// workspace at runtime after the integration-phase install. It is listed
|
|
// explicitly so esbuild NEVER follows the tsconfig `paths` alias (which points
|
|
// at the test double) into the production bundle.
|
|
skipNodeModulesBundle: true,
|
|
external: ['@proofchain/shared'],
|
|
});
|