Offload functions to worker threads with shared memory primitives for Node.js.
8
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: add ESM build step for npm publishing

- Add tsconfig.build.json for emitting JS + declarations to dist/
- Add build script and publishConfig exports for dist/
- Source exports preserved for local development
- Add build step to publish workflow

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+28
+4
.tangled/workflows/publish.yaml
··· 27 27 command: | 28 28 pnpm test 29 29 30 + - name: build 31 + command: | 32 + pnpm build 33 + 30 34 - name: publish 31 35 environment: 32 36 NPM_TOKEN: $NPM_TOKEN
+12
package.json
··· 9 9 "license": "MIT", 10 10 "type": "module", 11 11 "exports": "./src/index.ts", 12 + "publishConfig": { 13 + "exports": { 14 + ".": { 15 + "types": "./dist/index.d.ts", 16 + "default": "./dist/index.js" 17 + } 18 + } 19 + }, 20 + "files": [ 21 + "dist" 22 + ], 12 23 "packageManager": "pnpm@10.33.0", 13 24 "scripts": { 25 + "build": "tsc -p tsconfig.build.json", 14 26 "changeset": "changeset", 15 27 "lint": "prettier --check .", 16 28 "lint:fix": "prettier --write .",
+12
tsconfig.build.json
··· 1 + { 2 + "extends": "./tsconfig.json", 3 + "compilerOptions": { 4 + "noEmit": false, 5 + "allowImportingTsExtensions": false, 6 + "declaration": true, 7 + "rootDir": "src", 8 + "outDir": "dist", 9 + "rewriteRelativeImportExtensions": true 10 + }, 11 + "include": ["src"] 12 + }