Skip to content

refactor: replace read-package-up#199

Open
goosewobbler wants to merge 10 commits intomainfrom
fix/read-package-up
Open

refactor: replace read-package-up#199
goosewobbler wants to merge 10 commits intomainfrom
fix/read-package-up

Conversation

@goosewobbler
Copy link
Contributor

Closes #69

greptile-apps[bot]

This comment was marked as off-topic.

…d update imports in launcher and pathResolver
- Added `find-up` dependency version 6.3.0 to `pnpm-lock.yaml` and `package.json`.
- Updated `@electron/asar` dependency to version 3.4.1 in `pnpm-lock.yaml`.
- Refactored imports in `launcher.ts`, `pathResolver.ts`, and other files to use the new `NormalizedReadResult` type from `package.ts` instead of `read-package-up`.
- Modified import statements in `wdio.electron.conf.ts`, `wdio.tauri-embedded.conf.ts`, and `wdio.tauri.conf.ts` to source `NormalizedPackageJson` from `@wdio/native-types`, ensuring uniformity across configuration files.
- Added mock implementations for `readFile` and updated `readPackageUp` in `@wdio/native-utils` to improve test coverage and reliability.
- Adjusted import statements in `api.spec.ts` to use `NormalizedPackageJson` from `@wdio/native-types`, ensuring consistency across test files.
- Removed `read-package-up` dependency from multiple package.json files and replaced it with a custom `readPackageUp` function in `@wdio/native-utils`.
- Updated imports across various files to utilize the new implementation and ensure consistency with `NormalizedPackageJson`.
- Added `find-up` dependency version 6.3.0 to facilitate the new package resolution logic.
@goosewobbler goosewobbler changed the title chore: update read-package-up refactor: replace read-package-up Mar 12, 2026
- Updated the `createBinaryPathResult` function to utilize a new `BinaryPathResultOptions` interface, enhancing type safety and clarity.
- Replaced deprecated `success` pattern with the `ok` pattern and adjusted the handling of binary paths and validation attempts.
- Ensured consistent usage of optional chaining and default values for better reliability in path generation and validation.
…figurations

- Removed `@wdio/native-types` dependency from `package.json` and `pnpm-lock.yaml`.
- Updated `turbo.json` to eliminate the dependency on `@wdio/native-types#build` in the build process, streamlining the build configuration.
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.

Electron Service - read-package-up v12 ESM bundling issue

1 participant