Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent term-size from being bundled #7750

Merged
merged 3 commits into from
Mar 1, 2022

Conversation

chasewalden
Copy link
Contributor

term-size uses a pre-compiled binary as a fallback on windows and macos.

At the moment, the cli-reporter is bundling term-size, but doesn't copy these binaries. When running parcel in a non-interactive environment, term-size attempts to execute the vendored binaries, but non-fatally reports an error because they don't exist.

This happens in cases like Turborepo (i.e. turbo run build) or pnpm recursively-run (i.e. pnpm multi run build)

↪️ Pull Request

💻 Examples

🚨 Test instructions

✔️ PR Todo

  • Added/updated unit tests for this change
  • Filled out test instructions (In case there aren't any unit tests)
  • Included links to related issues/PRs

`term-size` uses a pre-compiled binary as a fallback on windows and macos. 

At the moment, the cli-reporter is bundling `term-size`, but doesn't copy these binaries. When running parcel in a non-interactive environment, `term-size` attempts to execute the vendored binaries, but non-fatally reports an error because they don't exist. 

This happens in cases like Turborepo (i.e. `turbo run build`) or pnpm recursively-run (i.e. `pnpm multi run build`)
@height
Copy link

height bot commented Feb 22, 2022

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

@devongovett devongovett merged commit c9264c4 into parcel-bundler:v2 Mar 1, 2022
gorakong pushed a commit that referenced this pull request Nov 3, 2022
* upstream/v2: (26 commits)
  Replace typeof before DCE (#7788)
  Bump lmdb (#7797)
  Upgrade flow to 0.173.0 (#7809)
  Prevent `term-size` from being bundled (#7750)
  Pin [email protected] (#7763)
  Fix Windows CI (#7774)
  Upgrade Flow to 0.171.0 (#7667)
  Move tests to GitHub actions (#7678)
  v2.3.2
  Fix autoinstalling node builtins (#7735)
  Fix lint
  Use pinned versions
  Don't build native packages again during publish step
  Fix build
  Fix autoinstall
  v2.3.1
  Add diagnostic for failed autoinstall of node polyfill (#7682)
  v2.3.0
  Changelog for 2.3.0
  Support React 18 prereleases and experimental versions with automatic JSX runtime (#7642)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants