Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

test(cli): the package's test script runs from the repo root, as CI does (#7776)

Joey64e1dde810e4
diff --git a/packages/cli/package.json b/packages/cli/package.json
index 50fb2e3034..fa21ba62cd 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -87,8 +87,8 @@
"scripts": {
"astryx": "node clients/cli/bin/astryx.mjs",
"postinstall": "node scripts/postinstall.mjs",
- "test": "vitest run --root ../.. packages/cli",
- "test:watch": "vitest --root ../.. packages/cli",
+ "test": "cd ../.. && vitest run packages/cli",
+ "test:watch": "cd ../.. && vitest packages/cli",
"typecheck:template-docs": "tsc --project tsconfig.template-docs.json",
"typecheck:json-api": "tsc --project tsconfig.json-api.json",
"typecheck:strict": "tsc --project tsconfig.strict.json",