Skip to content

Commit fe99270

Browse files
authored
chore: allow for relative binary path (#32686)
* chore: should fail publish binary * chore: fix relative binary pathing issues * chore: remove hardcoded branch
1 parent 328a785 commit fe99270

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.circleci/cache-version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Bump this version to force CI to re-create the cache from scratch.
2-
10-3-2025
2+
10-9-2025

cli/lib/bin/cypress.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env node
2+
// declared here in order to avoid consumers who are looking for the binary to be available relative to the dist directory
3+
import '../../bin/cypress'

cli/scripts/start-build.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,8 @@ shell.cp('dist/exec/*.js', 'build/dist/exec')
3535

3636
shell.mkdir('-p', 'build/dist/tasks')
3737
shell.cp('dist/tasks/*.js', 'build/dist/tasks')
38+
39+
shell.mkdir('-p', 'build/dist/bin')
40+
shell.cp('dist/bin/cypress.js', 'build/dist/bin/cypress')
41+
// because this is a compiled file, it is read only and we need to grant execute permissions
42+
shell.chmod('+x', 'build/dist/bin/cypress')

0 commit comments

Comments
 (0)