Skip to content

Commit b1aad34

Browse files
committed
prefix experiment scripts so they are not picked up by turborepo
1 parent 00af2ed commit b1aad34

6 files changed

Lines changed: 55 additions & 10 deletions

File tree

eval/lib/evaluations/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export async function build({
88
projectPath,
99
resultsPath,
1010
}: ExperimentArgs): Promise<boolean> {
11-
const result = await x('pnpm', ['build'], {
11+
const result = await x('pnpm', ['eval:build'], {
1212
nodeOptions: {
1313
cwd: projectPath,
1414
},

eval/lib/evaluations/test-stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export async function testStories({
1111
}: ExperimentArgs): Promise<Pick<EvaluationSummary, 'test' | 'a11y'>> {
1212
const testResultsPath = path.join(resultsPath, 'tests.json');
1313

14-
const result = await x('pnpm', ['test'], {
14+
const result = await x('pnpm', ['eval:test'], {
1515
nodeOptions: {
1616
cwd: projectPath,
1717
},

eval/lib/save/chromatic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export async function buildStorybook(
2222
let buildError = '';
2323

2424
try {
25-
await runScript('build-storybook', {
25+
await runScript('eval:build-storybook', {
2626
cwd: projectPath,
2727
silent: true,
2828
});

eval/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"description": "The project for evaluating UI component development with and without Storybook MCP",
66
"type": "module",
77
"scripts": {
8-
"build-storybook": "storybook build",
98
"eval": "node eval.ts",
109
"storybook": "storybook dev -p 6006",
1110
"typecheck": "tsc"

eval/templates/project/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"private": true,
55
"type": "module",
66
"scripts": {
7-
"build": "vite build",
8-
"build-storybook": "storybook build",
9-
"dev": "vite",
10-
"lint": "eslint .",
7+
"eval:build": "vite build",
8+
"eval:build-storybook": "storybook build",
9+
"eval:dev": "vite",
10+
"eval:lint": "eslint .",
1111
"preview": "vite preview",
12-
"test": "vitest run --reporter json --outputFile ../results/tests.json",
13-
"typecheck": "tsc --noEmit --project ./tsconfig.app.json"
12+
"eval:test": "vitest run --reporter json --outputFile ../results/tests.json",
13+
"eval:typecheck": "tsc --noEmit --project ./tsconfig.app.json"
1414
},
1515
"dependencies": {
1616
"react": "catalog:experiments",

pnpm-lock.yaml

Lines changed: 46 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)