Skip to content

Commit 49cc761

Browse files
hotlongclaude
andcommitted
wip: fixtures name a real workspace package for --filter
Claude-Session: https://claude.ai/code/session_local_1904ee85-9672-427b-bc91-7e31318013c7 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 4d4ca17 commit 49cc761

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎scripts/check-pnpm-flag-spellings.mjs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ function fixtureTree({ plant = {}, untracked = {}, omit = [], git = true } = {})
848848
const dir = mkdtempSync(join(tmpdir(), 'pnpm-flag-spellings-'));
849849
const files = {
850850
'package.json': manifest({ build: 'pnpm --silent turbo run build' }),
851-
'scripts/ok.sh': '#!/usr/bin/env bash\nset -euo pipefail\npnpm --filter fixture --silent build\n',
851+
'scripts/ok.sh': '#!/usr/bin/env bash\nset -euo pipefail\npnpm --filter @objectstack/spec --silent build\n',
852852
'packages/foo/package.json': `${JSON.stringify({ name: 'foo', scripts: { test: 'vitest run' } }, null, 2)}\n`,
853853
'packages/foo/scripts/gen.mjs': "import { execSync } from 'node:child_process';\nexecSync('pnpm --silent gen');\n",
854854
'.githooks/pre-commit': '#!/bin/sh\nexec pnpm --silent check:hooks\n',
@@ -898,7 +898,7 @@ const TREE_CASES = [
898898
},
899899
{ label: 'a planted `pnpm -s` in a tracked scripts/ shell file → red at its line', tree: { plant: { 'scripts/plant.sh': PLANT } }, check: one('scripts/plant.sh', 3) },
900900
{ label: 'a planted package.json script → red naming the manifest', tree: { plant: { 'package.json': manifest({ build: 'pnpm --silent build', plant: 'pnpm -s check:x' }) } }, check: one('package.json') },
901-
{ label: 'a planted JS spawn under packages/*/scripts/ → red', tree: { plant: { 'packages/foo/scripts/gen.mjs': "execSync('pnpm --filter foo -s gen');\n" } }, check: one('packages/foo/scripts/gen.mjs', 1) },
901+
{ label: 'a planted JS spawn under packages/*/scripts/ → red', tree: { plant: { 'packages/foo/scripts/gen.mjs': "execSync('pnpm --filter @objectstack/spec -s gen');\n" } }, check: one('packages/foo/scripts/gen.mjs', 1) },
902902
{ label: 'a planted spelling in an extension-less git hook → red', tree: { plant: { '.githooks/pre-commit': '#!/bin/sh\nexec pnpm install --prod=false\n' } }, check: one('.githooks/pre-commit', 2) },
903903
{ label: 'the same plant UNTRACKED → green (only tracked files are read)', tree: { untracked: { 'scripts/plant.sh': PLANT } }, check: clean },
904904
{ label: 'the same plant tracked OUTSIDE every root → green', tree: { plant: { 'docs/plant.sh': PLANT } }, check: clean },

0 commit comments

Comments
 (0)