mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #3777] [MERGED] chore(cli): emit bundle in ESM format #4521
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4521
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/3777
Author: @jamesgeorge007
Created: 1/25/2024
Status: ✅ Merged
Merged: 2/5/2024
Merged by: @AndrewBastin
Base:
release/2024.3.0← Head:cli-esm-bundle📝 Commits (1)
5177dacchore: emit CLI bundle in ESM format📊 Changes
11 files changed (+232 additions, -188 deletions)
View changed files
➖
packages/hoppscotch-cli/bin/hopp(+0 -3)➕
packages/hoppscotch-cli/bin/hopp.js(+6 -0)📝
packages/hoppscotch-cli/package.json(+20 -19)📝
packages/hoppscotch-cli/src/index.ts(+3 -1)📝
packages/hoppscotch-cli/src/utils/collections.ts(+3 -3)📝
packages/hoppscotch-cli/src/utils/display.ts(+3 -3)📝
packages/hoppscotch-cli/src/utils/functions/array.ts(+1 -1)📝
packages/hoppscotch-cli/src/utils/getters.ts(+1 -1)📝
packages/hoppscotch-cli/tsconfig.json(+2 -2)📝
packages/hoppscotch-cli/tsup.config.ts(+2 -5)📝
pnpm-lock.yaml(+191 -150)📄 Description
Description
This PR brings the necessary updates to the build system for the CLI to emit an ESM-only bundle. Along with that, the dependencies are bumped, and the following are removed:
Follow up of #3441.
Closes HFE-278.
Checks
Note to reviewers
The dependencies, while inlined in the bundle, caused issues relating to the usage of
requirein the ESM context; hence they're no longer inlined (officially recommended) and moved underdependencies. Forfp-ts, it's inlined as part of the bundle and kept underdevDependenciessince the import paths were expected to specify the extensionsimport * as TE from fp-ts/lib/TaskEither.js.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.