Skip to content

feat!: Migrate the package to ESM - #188

Merged
mykola-mokhnach merged 2 commits into
appium:masterfrom
mykola-mokhnach:esm
Jul 24, 2026
Merged

feat!: Migrate the package to ESM#188
mykola-mokhnach merged 2 commits into
appium:masterfrom
mykola-mokhnach:esm

Conversation

@mykola-mokhnach

Copy link
Copy Markdown
Contributor

Summary

  • Add "type": "module" and an exports map to package.json; keep main/types for compatibility.
  • Explicitly set "module": "NodeNext" / "moduleResolution": "NodeNext" in tsconfig.json.
  • Add .js extensions to all relative imports across lib/ and test/ (required by Node ESM resolution).
  • Add --enable-source-maps to the test/e2e-test scripts.
  • Document XcodeVersion properties in lib/types.ts.
  • Attach the original error as cause when re-throwing in getPathFromXcodeSelect (lib/xcode.ts), fixing an eslint preserve-caught-error warning surfaced during the migration.

BREAKING CHANGE: Consumers using require('appium-xcode') must switch to import/dynamic import() — the package no longer ships a CommonJS entry point.

@mykola-mokhnach
mykola-mokhnach merged commit ea51d54 into appium:master Jul 24, 2026
8 checks passed
@mykola-mokhnach
mykola-mokhnach deleted the esm branch July 24, 2026 18:45
github-actions Bot pushed a commit that referenced this pull request Jul 24, 2026
## [7.0.0](v6.2.6...v7.0.0) (2026-07-24)

### ⚠ BREAKING CHANGES

* Consumers using require('appium-xcode') must switch to import/dynamic import() — the package no longer ships a CommonJS entry point.

### Features

* Migrate the package to ESM ([#188](#188)) ([ea51d54](ea51d54))
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 7.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants