镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Commit 82d914b

Browse files
committed
fix(actions): preserve development condition in spawn argv
Use --conditions=development as one argument. Bun accepts the old single token with an embedded space but silently selects default exports. A real conditional-export child regression fails before and passes after; all helper tests pass. No candidate compatibility pass is claimed.
1 parent 10faf17 commit 82d914b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎storage/framework/core/actions/src/helpers/utils.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export function publishedActionCandidates(action: string, packageRoot?: string):
7979
export function developmentConditionForProject(projectRoot: string): string {
8080
return existsSync(join(projectRoot, 'storage/framework/core'))
8181
&& existsSync(join(projectRoot, 'node_modules/@stacksjs/env/src/index.ts'))
82-
? '--conditions development'
82+
? '--conditions=development'
8383
: ''
8484
}
8585

‎storage/framework/core/actions/tests/helpers-utils.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('developmentConditionForProject', () => {
2424
mkdirSync(join(root, 'node_modules/@stacksjs/env/src'), { recursive: true })
2525
writeFileSync(join(root, 'node_modules/@stacksjs/env/src/index.ts'), '')
2626

27-
expect(developmentConditionForProject(root)).toBe('--conditions development')
27+
expect(developmentConditionForProject(root)).toBe('--conditions=development')
2828
})
2929

3030
it('leaves published dist-only installs unchanged', () => {

0 commit comments

Comments
 (0)