From de6d92c1647ea7e52b12d9beeca916af4cf32a68 Mon Sep 17 00:00:00 2001 From: Sawyer Cutler Date: Wed, 23 Sep 2026 22:11:23 -0700 Subject: [PATCH 1/3] [@corbits/artifacts] publish-prep: publishConfig + exports --- package.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 44b4a7a..04a72f8 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,9 @@ "bugs": { "url": "https://github.com/corbitsdev/corbits-artifacts/issues" }, + "publishConfig": { + "access": "public" + }, "corbits": { "minimumIntxVersion": "0.4.0" }, @@ -31,12 +34,12 @@ "types": "./dist/index.d.ts", "exports": { ".": { - "bun": "./src/index.ts", + "intx-src": "./src/index.ts", "types": "./dist/index.d.ts", "default": "./dist/index.js" }, "./sidecar-bundle": { - "bun": "./src/sidecar-bundle.ts", + "intx-src": "./src/sidecar-bundle.ts", "types": "./dist/sidecar-bundle.d.ts", "default": "./dist/sidecar-bundle.js" } From b4df629cb65fb885bd54a209072d0ec322bd6cc1 Mon Sep 17 00:00:00 2001 From: Sawyer Cutler Date: Thu, 24 Sep 2026 09:10:21 -0700 Subject: [PATCH 2/3] [@corbits/artifacts] publish-prep: decided exports shape, sideEffects, canonical build config - exports: drop intx-src from both subpaths, keep {types, default} - top-level main + types already present, kept - add sideEffects:false (verified: no import-time I/O, global mutation, or CSS imports in src; only function-scoped DB handle creation in db.ts; process.env only in excluded test-helpers.ts) - tsconfig.build.json: NodeNext module/resolution, maps off, allowImportingTsExtensions:false, composite:false, include:[src] --- package.json | 3 +-- tsconfig.build.json | 8 ++++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 04a72f8..a69a1c6 100644 --- a/package.json +++ b/package.json @@ -32,14 +32,13 @@ }, "main": "./dist/index.js", "types": "./dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "intx-src": "./src/index.ts", "types": "./dist/index.d.ts", "default": "./dist/index.js" }, "./sidecar-bundle": { - "intx-src": "./src/sidecar-bundle.ts", "types": "./dist/sidecar-bundle.d.ts", "default": "./dist/sidecar-bundle.js" } diff --git a/tsconfig.build.json b/tsconfig.build.json index 9edd877..a8a6531 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -2,10 +2,14 @@ "extends": "./tsconfig.json", "compilerOptions": { "types": ["node"], + "module": "NodeNext", + "moduleResolution": "NodeNext", + "allowImportingTsExtensions": false, + "composite": false, "noEmit": false, "declaration": true, - "declarationMap": true, - "sourceMap": true, + "declarationMap": false, + "sourceMap": false, "outDir": "dist", "rootDir": "src" }, From b078acb3ac6010cb18f2acb0e4f01ef45c8fddca Mon Sep 17 00:00:00 2001 From: Sawyer Cutler Date: Thu, 24 Sep 2026 09:23:43 -0700 Subject: [PATCH 3/3] fix(publish): drop src from files so pack ships dist only --- package.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/package.json b/package.json index a69a1c6..9f64cfd 100644 --- a/package.json +++ b/package.json @@ -45,9 +45,6 @@ }, "files": [ "dist", - "src", - "!src/**/*.test.ts", - "!src/test-helpers.ts", "LICENSE", "README.md" ],