Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ lerna-debug.log
.next
.dev.vars
.env.local
.yalc
yalc.lock
playground/*/build
playground/*/public/build
playground/*/.cache
Expand Down
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
.tsup
.turbo
.vscode
.yalc
/**/scripts/info.js
*.map
*.min.js
Expand Down
1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"search.exclude": {
"**/.tsup": true,
"**/.turbo": true,
"**/.yalc": true,
"**/node_modules": true,
".temp_integration": true,
"packages/*/dist": true,
Expand Down
2 changes: 1 addition & 1 deletion docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The current monorepo setup is based on:
- [Turborepo](https://turbo.build/repo/docs), used for task running and task output caching.
- [Changesets](https://github.com/changesets/changesets), used for package versioning, publishing and changelog generation.
- [GitHub Actions](https://docs.github.com/en/actions), used for quality checks and automated release orchestration.
- [Yalc](https://github.com/wclr/yalc), used for to publish packages locally and test them in other local projects.
- [pkglab](https://github.com/pkglab/pkglab), used for publishing packages locally and testing them in other local projects.
- [Jest](https://jestjs.io/) or [Vitest](https://vitest.dev/), used for running unit tests.
- [Playwright](https://playwright.dev/), used for running the [integration](../integration/) test suite.

Expand Down
1 change: 0 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ export default tseslint.config([
'.next',
'.turbo',
'.vscode',
'.yalc',
'!.*.js',
'**/.turbo/*',
'**/build/*',
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"local:registry:up": "./scripts/local-registry.sh up",
"nuke": "node ./scripts/nuke.mjs",
"prepare": "husky install",
"pub": "pkglab pub",
"release": "changeset publish && git push --follow-tags",
"release:canary": "changeset publish --tag canary --no-git-tag",
"release:canary-core3": "changeset publish --tag canary-core3 --no-git-tag",
Expand Down Expand Up @@ -67,8 +68,7 @@
"version-packages": "changeset version && pnpm install --lockfile-only --engine-strict=false",
"version-packages:canary": "./scripts/canary.mjs",
"version-packages:canary-core3": "./scripts/canary-core3.mjs",
"version-packages:snapshot": "./scripts/snapshot.mjs",
"yalc:all": "for d in packages/*/; do echo $d; cd $d; pnpm yalc push --replace --sig; cd '../../'; done"
"version-packages:snapshot": "./scripts/snapshot.mjs"
},
"devDependencies": {
"@actions/core": "^1.11.1",
Expand Down Expand Up @@ -133,6 +133,7 @@
"json5": "2.2.3",
"jsonwebtoken": "9.0.2",
"lint-staged": "^14.0.1",
"pkglab": "^0.11.1",
"prettier": "^3.6.2",
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-packagejson": "^2.5.15",
Expand All @@ -157,7 +158,6 @@
"uuid": "8.3.2",
"verdaccio": "6.1.6",
"vitest": "3.2.4",
"yalc": "1.0.0-pre.53",
"zx": "catalog:repo"
},
"packageManager": "pnpm@10.17.1+sha512.17c560fca4867ae9473a3899ad84a88334914f379be46d455cbf92e5cf4b39d34985d452d2583baf19967fa76cb5c17bc9e245529d0b98745721aa7200ecaf7a",
Expand Down
1 change: 1 addition & 0 deletions packages/agent-toolkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"build": "tsup --env.NODE_ENV production",
"clean": "rimraf ./dist",
"dev": "tsup --watch",
"dev:pub": "pnpm dev -- --env.publish",
"format": "node ../../scripts/format-package.mjs",
"format:check": "node ../../scripts/format-package.mjs --check",
"lint": "eslint src",
Expand Down
2 changes: 2 additions & 0 deletions packages/agent-toolkit/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { name, version } from './package.json';

export default defineConfig(overrideOptions => {
const isProd = overrideOptions.env?.NODE_ENV === 'production';
const shouldPublish = !!overrideOptions.env?.publish;

return {
entry: [
Expand All @@ -17,6 +18,7 @@ export default defineConfig(overrideOptions => {
bundle: true,
sourcemap: true,
format: 'esm',
onSuccess: shouldPublish ? 'pkglab pub --ping' : undefined,
define: {
PACKAGE_NAME: `"${name}"`,
PACKAGE_VERSION: `"${version}"`,
Expand Down
4 changes: 2 additions & 2 deletions packages/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@
"build": "tsup --onSuccess \"pnpm build:dts\" && pnpm copy:components",
"build:dts": "tsc --emitDeclarationOnly --declaration",
"copy:components": "rm -rf ./components && mkdir -p ./components/ && cp -r ./src/astro-components/* ./components/ && cp ./src/types.ts ./",
"dev": "tsup --watch --onSuccess \"pnpm build:dts\"",
"dev": "tsup --watch",
"dev:pub": "pnpm dev -- --env.publish",
"format": "node ../../scripts/format-package.mjs",
"format:check": "node ../../scripts/format-package.mjs --check",
"lint": "eslint src env.d.ts",
"lint:attw": "attw --pack . --profile esm-only --ignore-rules internal-resolution-error",
"lint:publint": "pnpm copy:components && publint",
"publish:local": "pnpm yalc push --replace --sig",
"test": "vitest run"
},
"dependencies": {
Expand Down
5 changes: 4 additions & 1 deletion packages/astro/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { defineConfig } from 'tsup';
// @ts-ignore
import { name, version } from './package.json';

export default defineConfig(() => {
export default defineConfig(overrideOptions => {
const shouldPublish = !!overrideOptions.env?.publish;

return {
clean: true,
entry: [
Expand All @@ -19,6 +21,7 @@ export default defineConfig(() => {
],
dts: true,
minify: false,
onSuccess: shouldPublish ? 'pnpm build:dts && pkglab pub --ping' : 'pnpm build:dts',
define: {
PACKAGE_NAME: `"${name}"`,
PACKAGE_VERSION: `"${version}"`,
Expand Down
3 changes: 1 addition & 2 deletions packages/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,12 @@
"build:runtime": "cpy 'src/runtime/**/*.{mjs,js,cjs}' dist/runtime",
"clean": "rimraf ./dist",
"dev": "tsup --watch",
"dev:publish": "pnpm dev -- --env.publish",
"dev:pub": "pnpm dev -- --env.publish",
"format": "node ../../scripts/format-package.mjs",
"format:check": "node ../../scripts/format-package.mjs --check",
"lint": "eslint src",
"lint:attw": "attw --pack . --profile node16 --ignore-rules false-cjs",
"lint:publint": "publint",
"publish:local": "pnpm yalc push --replace --sig",
"test": "run-s test:node test:edge-runtime test:cloudflare-miniflare",
"test:cloudflare-miniflare": "vitest run --environment miniflare",
"test:edge-runtime": "vitest run --environment edge-runtime",
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ export default defineConfig(overrideOptions => {
format: 'cjs',
};

return runAfterLast(['pnpm build:declarations', shouldPublish && 'pnpm publish:local'])(esm, cjs);
return runAfterLast(['pnpm build:declarations', shouldPublish && 'pkglab pub --ping'])(esm, cjs);
});
3 changes: 1 addition & 2 deletions packages/chrome-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,12 @@
"build:declarations": "tsc -p tsconfig.declarations.json",
"clean": "rimraf ./dist",
"dev": "tsup --watch",
"dev:publish": "pnpm dev -- --env.publish",
"dev:pub": "pnpm dev -- --env.publish",
"format": "node ../../scripts/format-package.mjs",
"format:check": "node ../../scripts/format-package.mjs --check",
"lint": "eslint src",
"lint:attw": "attw --pack . --profile node16",
"lint:publint": "publint",
"publish:local": "pnpm yalc push --replace --sig",
"test": "vitest run",
"test:ci": "vitest run --maxWorkers=70%",
"test:watch": "vitest"
Expand Down
2 changes: 1 addition & 1 deletion packages/chrome-extension/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ export default defineConfig(overrideOptions => {
outDir: './dist/cjs',
};

return runAfterLast(['pnpm build:declarations', shouldPublish && 'pnpm publish:local'])(esm, cjs);
return runAfterLast(['pnpm build:declarations', shouldPublish && 'pkglab pub --ping'])(esm, cjs);
});
3 changes: 1 addition & 2 deletions packages/expo-passkeys/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,4 @@ yarn-error.log

# Expo
.expo/*
.env
.yalc
.env
5 changes: 2 additions & 3 deletions packages/expo-passkeys/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,12 @@
"build:declarations": "tsc -p tsconfig.declarations.json",
"clean": "rimraf ./dist",
"dev": "tsup --watch",
"dev:publish": "pnpm dev -- --env.publish",
"dev:pub": "pnpm dev -- --env.publish",
"format": "node ../../scripts/format-package.mjs",
"format:check": "node ../../scripts/format-package.mjs --check",
"lint": "eslint src",
"open:android": "open -a \"Android Studio\" example/android",
"open:ios": "xed example/ios",
"publish:local": "pnpm yalc push --replace --sig"
"open:ios": "xed example/ios"
},
"dependencies": {
"@clerk/shared": "workspace:^"
Expand Down
2 changes: 1 addition & 1 deletion packages/expo-passkeys/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ export default defineConfig(overrideOptions => {
},
};

return runAfterLast(['pnpm build:declarations', shouldPublish && 'pnpm publish:local'])(options);
return runAfterLast(['pnpm build:declarations', shouldPublish && 'pkglab pub --ping'])(options);
});
3 changes: 1 addition & 2 deletions packages/expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,10 @@
"build:declarations": "tsc -p tsconfig.declarations.json",
"clean": "rimraf ./dist",
"dev": "tsup --watch",
"dev:publish": "pnpm dev -- --env.publish",
"dev:pub": "pnpm dev -- --env.publish",
"format": "node ../../scripts/format-package.mjs",
"format:check": "node ../../scripts/format-package.mjs --check",
"lint": "eslint src",
"publish:local": "pnpm yalc push --replace --sig",
"test": "vitest run",
"test:watch": "vitest watch"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/expo/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ export default defineConfig(overrideOptions => {
},
};

return runAfterLast(['pnpm build:declarations', shouldPublish && 'pnpm publish:local'])(options);
return runAfterLast(['pnpm build:declarations', shouldPublish && 'pkglab pub --ping'])(options);
});
3 changes: 1 addition & 2 deletions packages/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,12 @@
"build": "pnpm clean && tsup",
"clean": "rimraf ./dist",
"dev": "tsup --watch",
"dev:publish": "pnpm dev -- --env.publish",
"dev:pub": "pnpm dev -- --env.publish",
"format": "node ../../scripts/format-package.mjs",
"format:check": "node ../../scripts/format-package.mjs --check",
"lint": "eslint src",
"lint:attw": "attw --pack . --profile node16",
"lint:publint": "publint",
"publish:local": "pnpm yalc push --replace --sig",
"test": "vitest run",
"test:watch": "vitest watch"
},
Expand Down
2 changes: 2 additions & 0 deletions packages/express/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { name, version } from './package.json';

export default defineConfig(overrideOptions => {
const isWatch = !!overrideOptions.watch;
const shouldPublish = !!overrideOptions.env?.publish;

return {
entry: {
Expand All @@ -17,6 +18,7 @@ export default defineConfig(overrideOptions => {
minify: false,
sourcemap: true,
dts: true,
onSuccess: shouldPublish ? 'pkglab pub --ping' : undefined,
define: {
PACKAGE_NAME: `"${name}"`,
PACKAGE_VERSION: `"${version}"`,
Expand Down
2 changes: 1 addition & 1 deletion packages/fastify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@
"build": "tsup --env.NODE_ENV production",
"clean": "rimraf ./dist",
"dev": "tsup --watch",
"dev:pub": "pnpm dev -- --env.publish",
"format": "node ../../scripts/format-package.mjs",
"format:check": "node ../../scripts/format-package.mjs --check",
"lint": "eslint src",
"lint:attw": "attw --pack . --profile node16",
"lint:publint": "publint",
"publish:local": "pnpm yalc push --replace --sig",
"test": "vitest run",
"test:watch": "vitest watch"
},
Expand Down
2 changes: 2 additions & 0 deletions packages/fastify/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { name, version } from './package.json';

export default defineConfig(overrideOptions => {
const isWatch = !!overrideOptions.watch;
const shouldPublish = !!overrideOptions.env?.publish;

return {
entry: {
Expand All @@ -17,6 +18,7 @@ export default defineConfig(overrideOptions => {
minify: false,
sourcemap: true,
dts: true,
onSuccess: shouldPublish ? 'pkglab pub --ping' : undefined,
define: {
PACKAGE_NAME: `"${name}"`,
PACKAGE_VERSION: `"${version}"`,
Expand Down
2 changes: 1 addition & 1 deletion packages/hono/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@
"build": "tsup --env.NODE_ENV production",
"clean": "rimraf ./dist",
"dev": "tsup --watch",
"dev:pub": "pnpm dev -- --env.publish",
"format": "node ../../scripts/format-package.mjs",
"format:check": "node ../../scripts/format-package.mjs --check",
"lint": "eslint src",
"lint:attw": "attw --pack . --profile node16",
"lint:publint": "publint",
"publish:local": "pnpm yalc push --replace --sig",
"test": "vitest run",
"test:watch": "vitest watch"
},
Expand Down
2 changes: 2 additions & 0 deletions packages/hono/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { name, version } from './package.json';

export default defineConfig(overrideOptions => {
const isWatch = !!overrideOptions.watch;
const shouldPublish = !!overrideOptions.env?.publish;

return {
entry: {
Expand All @@ -17,6 +18,7 @@ export default defineConfig(overrideOptions => {
minify: false,
sourcemap: true,
dts: true,
onSuccess: shouldPublish ? 'pkglab pub --ping' : undefined,
define: {
PACKAGE_NAME: `"${name}"`,
PACKAGE_VERSION: `"${version}"`,
Expand Down
1 change: 1 addition & 0 deletions packages/localizations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"build": "tsup --env.NODE_ENV production",
"clean": "rimraf ./dist",
"dev": "tsup --watch",
"dev:pub": "pnpm dev -- --env.publish",
"format": "node ../../scripts/format-package.mjs",
"format:check": "node ../../scripts/format-package.mjs --check",
"generate": "tsc -p tsconfig.generate.json && node --experimental-vm-modules src/utils/generate.js && rimraf tmp && prettier --write src/*.ts",
Expand Down
5 changes: 4 additions & 1 deletion packages/localizations/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { defineConfig } from 'tsup';

export default defineConfig(_overrideOptions => {
export default defineConfig(overrideOptions => {
const shouldPublish = !!overrideOptions.env?.publish;

return {
entry: ['src/*.ts'],
format: ['cjs', 'esm'],
Expand All @@ -10,5 +12,6 @@ export default defineConfig(_overrideOptions => {
sourcemap: true,
dts: true,
splitting: false,
onSuccess: shouldPublish ? 'pkglab pub --ping' : undefined,
};
});
3 changes: 1 addition & 2 deletions packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,12 @@
"build:declarations": "tsc -p tsconfig.declarations.json",
"clean": "rimraf ./dist",
"dev": "tsup --watch",
"dev:publish": "pnpm dev -- --env.publish",
"dev:pub": "pnpm dev -- --env.publish",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Add coverage for the new local publish workflow.

The switch to dev:pub/pkglab has no accompanying test updates; add tests (or equivalent automated verification) to ensure the new publish flow doesn’t regress local development.

As per coding guidelines, **/*: If there are no tests added or modified as part of the PR, please suggest that tests be added to cover the changes.

🤖 Prompt for AI Agents
In `@packages/nextjs/package.json` at line 77, The new npm script "dev:pub" was
added to package.json to support the local publish workflow but there are no
tests covering this change; add automated tests that exercise the new local
publish flow (e.g., an integration test that runs the "dev:pub" script or
invokes the pkglab publish path and asserts expected side-effects such as
published package artifacts or updated local registry entries). Update or add a
test file (for example tests/integration/dev-pub.spec.ts or a CI step named
"local-publish") that calls the dev:pub script via the project test harness,
mocks external network calls if needed, and verifies success and failure states;
if adding tests is not possible, include a CI smoke-check that runs "pnpm
--filter ./packages/nextjs run dev:pub -- --dry-run" to validate the workflow.
Ensure the test name references "dev:pub" and the pkglab/local publish behavior
so it will catch regressions to this script.

"format": "node ../../scripts/format-package.mjs",
"format:check": "node ../../scripts/format-package.mjs --check",
"lint": "eslint src",
"lint:attw": "attw --pack . --profile node16 --ignore-rules unexpected-module-syntax",
"lint:publint": "publint",
"publish:local": "pnpm yalc push --replace --sig",
"test": "vitest run",
"test:watch": "vitest watch"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,6 @@ export default defineConfig(overrideOptions => {
moveServerActions('cjs'),
moveKeylessActions('esm'),
moveKeylessActions('cjs'),
shouldPublish && 'pnpm publish:local',
shouldPublish && 'pkglab pub --ping',
])(esm, cjs, serverActionsEsm, serverActionsCjs, vendorsEsm, vendorsCjs);
});
2 changes: 1 addition & 1 deletion packages/nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"dev:pub": "pnpm dev -- --env.publish",
"format": "node ../../scripts/format-package.mjs",
"format:check": "node ../../scripts/format-package.mjs --check",
"lint": "eslint src",
"lint:attw": "attw --pack . --profile esm-only",
"lint:publint": "publint",
"publish:local": "pnpm yalc push --replace --sig",
"test": "vitest run",
"test:watch": "vitest watch"
},
Expand Down
Loading
Loading