From 1b0808582137171ef49d15e172f8fe4735f141c5 Mon Sep 17 00:00:00 2001 From: Luca Forstner Date: Wed, 13 May 2026 14:46:01 +0200 Subject: [PATCH 1/2] chore: Set up yalc --- integrations/browser-js/package.json | 3 +- integrations/langchain-js/package.json | 3 +- integrations/openai-agents-js/package.json | 3 +- integrations/otel-js/package.json | 3 +- integrations/templates-nunjucks/package.json | 3 +- integrations/temporal-js/package.json | 3 +- integrations/vercel-ai-sdk/package.json | 3 +- js/package.json | 3 +- package.json | 3 +- pnpm-lock.yaml | 92 ++++++++++++++++++-- turbo.json | 5 ++ 11 files changed, 109 insertions(+), 15 deletions(-) diff --git a/integrations/browser-js/package.json b/integrations/browser-js/package.json index aedad23ba..e67a62bfb 100644 --- a/integrations/browser-js/package.json +++ b/integrations/browser-js/package.json @@ -20,7 +20,8 @@ "build": "tsup", "check:typings": "tsc --noEmit", "watch": "tsup --watch", - "clean": "rm -rf dist" + "clean": "rm -rf dist", + "yalc:publish": "yalc publish" }, "dependencies": { "als-browser": "^1.0.1", diff --git a/integrations/langchain-js/package.json b/integrations/langchain-js/package.json index 5ca289ac3..a33cc0778 100644 --- a/integrations/langchain-js/package.json +++ b/integrations/langchain-js/package.json @@ -19,7 +19,8 @@ "check:typings": "tsc --noEmit", "watch": "tsup --watch", "clean": "rm -r dist/*", - "test": "vitest run" + "test": "vitest run", + "yalc:publish": "yalc publish" }, "author": "Braintrust Data Inc.", "license": "MIT", diff --git a/integrations/openai-agents-js/package.json b/integrations/openai-agents-js/package.json index a6982a365..5a7252132 100644 --- a/integrations/openai-agents-js/package.json +++ b/integrations/openai-agents-js/package.json @@ -19,7 +19,8 @@ "check:typings": "tsc --noEmit", "watch": "tsup --watch", "clean": "rm -r dist/*", - "test": "vitest run" + "test": "vitest run", + "yalc:publish": "yalc publish" }, "author": "Braintrust Data Inc.", "license": "MIT", diff --git a/integrations/otel-js/package.json b/integrations/otel-js/package.json index 428b5d0b0..15c1502d8 100644 --- a/integrations/otel-js/package.json +++ b/integrations/otel-js/package.json @@ -21,7 +21,8 @@ "clean": "rm -r dist/*", "test": "pnpm test:v1 && pnpm test:v2", "test:v1": "cd otel-v1 && pnpm test", - "test:v2": "cd otel-v2 && pnpm test" + "test:v2": "cd otel-v2 && pnpm test", + "yalc:publish": "yalc publish" }, "author": "Braintrust Data Inc.", "license": "MIT", diff --git a/integrations/templates-nunjucks/package.json b/integrations/templates-nunjucks/package.json index d0d27c112..94e2cd530 100644 --- a/integrations/templates-nunjucks/package.json +++ b/integrations/templates-nunjucks/package.json @@ -22,7 +22,8 @@ "check:typings": "tsc --noEmit", "watch": "tsup --watch", "clean": "rm -r dist/*", - "test": "vitest run --exclude 'smoke/scenarios/**'" + "test": "vitest run --exclude 'smoke/scenarios/**'", + "yalc:publish": "yalc publish" }, "author": "Braintrust Data Inc.", "license": "Apache-2.0", diff --git a/integrations/temporal-js/package.json b/integrations/temporal-js/package.json index 7f543d5ac..fc2e9dbef 100644 --- a/integrations/temporal-js/package.json +++ b/integrations/temporal-js/package.json @@ -25,7 +25,8 @@ "check:typings": "tsc --noEmit", "watch": "tsup --watch", "clean": "rm -r dist/*", - "test": "vitest run" + "test": "vitest run", + "yalc:publish": "yalc publish" }, "author": "Braintrust Data Inc.", "license": "MIT", diff --git a/integrations/vercel-ai-sdk/package.json b/integrations/vercel-ai-sdk/package.json index 57dd5e8d1..238613b5b 100644 --- a/integrations/vercel-ai-sdk/package.json +++ b/integrations/vercel-ai-sdk/package.json @@ -19,7 +19,8 @@ "check:typings": "tsc --noEmit", "watch": "tsup --watch", "clean": "rm -r dist/*", - "test": "vitest run" + "test": "vitest run", + "yalc:publish": "yalc publish" }, "author": "Braintrust Data Inc.", "license": "MIT", diff --git a/js/package.json b/js/package.json index 5de8c0483..9f885cd58 100644 --- a/js/package.json +++ b/js/package.json @@ -148,7 +148,8 @@ "playground": "tsx playground.ts", "playground:auto": "mkdir -p .context && pnpm exec esbuild playground.ts --platform=node --format=esm --outfile=.context/playground.auto.mjs && node --import ./dist/auto-instrumentations/hook.mjs ./.context/playground.auto.mjs", "playground:cli:push": "node dist/cli.js push playground.ts", - "playground:cli:eval": "node dist/cli.js eval playground.ts" + "playground:cli:eval": "node dist/cli.js eval playground.ts", + "yalc:publish": "yalc publish" }, "author": "", "license": "MIT", diff --git a/package.json b/package.json index 523f24a26..1d913dbf6 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,8 @@ "knip": "^5.85.0", "lint-staged": "^16.2.7", "prettier": "^3.8.1", - "turbo": "^2.8.21" + "turbo": "^2.8.21", + "yalc": "1.0.0-pre.53" }, "overrides": { "zod": "3.25.34", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f0178375e..8c458f9b4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -43,6 +43,9 @@ importers: turbo: specifier: ^2.8.21 version: 2.8.21 + yalc: + specifier: 1.0.0-pre.53 + version: 1.0.0-pre.53 dev-packages/seinfeld: dependencies: @@ -3013,6 +3016,9 @@ packages: resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==} engines: {node: '>= 12'} + cliui@7.0.4: + resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==} + cliui@8.0.1: resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} engines: {node: '>=12'} @@ -3951,6 +3957,9 @@ packages: ieee754@1.2.1: resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} + ignore-walk@3.0.4: + resolution: {integrity: sha512-PY6Ii8o1jMRA1z4F2hRkH/xN59ox43DavKvD3oDpfurRlOJyAHpifIwpbdv1n4jt4ov0jSpw3kQ4GhJnpBL6WQ==} + ignore@5.3.2: resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} engines: {node: '>= 4'} @@ -3984,6 +3993,10 @@ packages: ini@1.3.8: resolution: {integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==} + ini@2.0.0: + resolution: {integrity: sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==} + engines: {node: '>=10'} + install@0.13.0: resolution: {integrity: sha512-zDml/jzr2PKU9I8J/xyZBQn8rPCAY//UOYNmR01XwNwyfhEWObo2SWfSl1+0tm1u6PhxLwDnfsT/6jB7OUxqFA==} engines: {node: '>= 0.10'} @@ -4681,6 +4694,17 @@ packages: engines: {node: '>=6'} hasBin: true + npm-bundled@1.1.2: + resolution: {integrity: sha512-x5DHup0SuyQcmL3s7Rx/YQ8sbw/Hzg0rj48eN0dV7hf5cmQq5PXIeioroH3raV1QC1yh3uTYuMThvEQF3iKgGQ==} + + npm-normalize-package-bin@1.0.1: + resolution: {integrity: sha512-EPfafl6JL5/rU+ot6P3gRSCpPDW5VmIzX959Ob1+ySFUuuYHWHekXpwdUZcKP5C+DS4GEtdJluwBjnsNDl+fSA==} + + npm-packlist@2.2.2: + resolution: {integrity: sha512-Jt01acDvJRhJGthnUJVF/w6gumWOZxO7IkpY/lsX9//zqQgnF7OJaxgQXcerd4uQOLu7W5bkb4mChL9mdfm+Zg==} + engines: {node: '>=10'} + hasBin: true + npmlog@6.0.2: resolution: {integrity: sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==} engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} @@ -6205,6 +6229,10 @@ packages: resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} engines: {node: '>=10'} + yalc@1.0.0-pre.53: + resolution: {integrity: sha512-tpNqBCpTXplnduzw5XC+FF8zNJ9L/UXmvQyyQj7NKrDNavbJtHvzmZplL5ES/RCnjX7JR7W9wz5GVDXVP3dHUQ==} + hasBin: true + yallist@3.1.1: resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} @@ -6220,10 +6248,18 @@ packages: engines: {node: '>= 14.6'} hasBin: true + yargs-parser@20.2.9: + resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==} + engines: {node: '>=10'} + yargs-parser@21.1.1: resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} engines: {node: '>=12'} + yargs@16.2.0: + resolution: {integrity: sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==} + engines: {node: '>=10'} + yargs@17.7.2: resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==} engines: {node: '>=12'} @@ -9385,6 +9421,12 @@ snapshots: cli-width@4.1.0: {} + cliui@7.0.4: + dependencies: + string-width: 4.2.3 + strip-ansi: 6.0.1 + wrap-ansi: 7.0.0 + cliui@8.0.1: dependencies: string-width: 4.2.3 @@ -10186,8 +10228,7 @@ snapshots: fs-monkey@1.1.0: {} - fs.realpath@1.0.0: - optional: true + fs.realpath@1.0.0: {} fsevents@2.3.3: optional: true @@ -10313,7 +10354,6 @@ snapshots: minimatch: 3.1.5 once: 1.4.0 path-is-absolute: 1.0.1 - optional: true globals@14.0.0: {} @@ -10513,6 +10553,10 @@ snapshots: ieee754@1.2.1: {} + ignore-walk@3.0.4: + dependencies: + minimatch: 3.1.5 + ignore@5.3.2: {} ignore@7.0.5: {} @@ -10534,12 +10578,13 @@ snapshots: dependencies: once: 1.4.0 wrappy: 1.0.2 - optional: true inherits@2.0.4: {} ini@1.3.8: {} + ini@2.0.0: {} + install@0.13.0: {} interpret@2.2.0: {} @@ -11491,6 +11536,19 @@ snapshots: abbrev: 1.1.1 optional: true + npm-bundled@1.1.2: + dependencies: + npm-normalize-package-bin: 1.0.1 + + npm-normalize-package-bin@1.0.1: {} + + npm-packlist@2.2.2: + dependencies: + glob: 7.2.3 + ignore-walk: 3.0.4 + npm-bundled: 1.1.2 + npm-normalize-package-bin: 1.0.1 + npmlog@6.0.2: dependencies: are-we-there-yet: 3.0.1 @@ -11702,8 +11760,7 @@ snapshots: path-expression-matcher@1.5.0: {} - path-is-absolute@1.0.1: - optional: true + path-is-absolute@1.0.1: {} path-key@3.1.1: {} @@ -13429,6 +13486,17 @@ snapshots: y18n@5.0.8: {} + yalc@1.0.0-pre.53: + dependencies: + chalk: 4.1.2 + detect-indent: 6.1.0 + fs-extra: 8.1.0 + glob: 7.2.3 + ignore: 5.3.2 + ini: 2.0.0 + npm-packlist: 2.2.2 + yargs: 16.2.0 + yallist@3.1.1: {} yallist@4.0.0: {} @@ -13437,8 +13505,20 @@ snapshots: yaml@2.8.2: {} + yargs-parser@20.2.9: {} + yargs-parser@21.1.1: {} + yargs@16.2.0: + dependencies: + cliui: 7.0.4 + escalade: 3.2.0 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + string-width: 4.2.3 + y18n: 5.0.8 + yargs-parser: 20.2.9 + yargs@17.7.2: dependencies: cliui: 8.0.1 diff --git a/turbo.json b/turbo.json index bf4406360..d2e519368 100644 --- a/turbo.json +++ b/turbo.json @@ -18,6 +18,11 @@ "outputs": [".next/**", "!.next/cache/**", "dist/**"], "env": [] }, + "yalc:publish": { + "cache": false, + "dependsOn": ["build"], + "outputs": [] + }, "check:typings": { "dependsOn": ["^build"], "outputs": [] From 4f4b17d4da03df2ea3d55ba85f179eb0efd77a45 Mon Sep 17 00:00:00 2001 From: Luca Forstner Date: Wed, 13 May 2026 16:12:11 +0200 Subject: [PATCH 2/2] . --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 1d913dbf6..26558324c 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,8 @@ "formatting": "prettier --check .", "lint": "turbo run lint", "fix:formatting": "prettier --write .", - "fix:lint": "turbo run fix:lint" + "fix:lint": "turbo run fix:lint", + "yalc:publish": "turbo run yalc:publish" }, "engines": { "pnpm": ">=10.27.0",