Files
cypress/cli/lib/bin
Cacie Prins 8dc94f3c53 refactor: use rollup to build the cli package (#33235)
* move to rollup

* no longer need to move some subdirs in start-build, special bin dir handling

* preserve modules so __dirname is properly resolved in spawn.ts

* ensure lib/exec/xvfb exports default

* make build processes more intuitive

* additional

* and

* fix clean

* fix tests

* revert

* rename clean cmd

* fix cjs exports

* fix test import

* fix tertiary dep bundling

* maybe..?

* ensure cli is built before tests are run

* exports= again

* discrete exports

* maybe if tslib is bundled

* add tslib as dependency for rollup

* lockfile, no longer bundle

* bundle tslib?

* cache

* preserve entry file paths in dist dir

* relative path change

* ensure the cjs entrypoint for the esm build of cli is available in dist

* properly import json so rollup picks it up

* ensure bin entrypoint has no file extension

* add exec/run.ts ? to entry files

* Revert "add exec/run.ts ? to entry files"

This reverts commit 8bb047a623.

* simplify rollup; make bin script +x on postbuild

* cleanup

* updates build docs

* fix ./bin export path

* comment to clarify why relative path resolution changed in spawn.ts

* make script start path (for dev mode) less brittle vis a vis build artifact location

* cleanup

* since we dont need monorepo packages yet, adding it here is premature

* externalize package.json to fix install script

* add entrypoints to cli knip config

* revert expected fixtures?

* use shelljs for win support

* some @types are prod dependencies, some are dev?

* rm unused script

* root build-prod script is actually unused

* resolve package.json dynamically from root

* look for pkg.name === cypress instead of a workspaces pkg

* correct buildinfo

* fix pkg undefined in info

* match both windows and nix path separators when matching for the binary entrypoint in rollup

* better error messaging for package.json not found

* fix curried fn

* Apply suggestion from @cacieprins
2026-02-19 16:03:12 -05:00
..