Skip to content

Try to make expo plugin works - #153

Merged
riderodd merged 3 commits into
mainfrom
fix/expo2
Sep 11, 2025
Merged

Try to make expo plugin works#153
riderodd merged 3 commits into
mainfrom
fix/expo2

Conversation

@riderodd

Copy link
Copy Markdown
Owner

No description provided.

@riderodd riderodd self-assigned this Sep 11, 2025
Copilot AI review requested due to automatic review settings September 11, 2025 23:31
@riderodd
riderodd merged commit b54f844 into main Sep 11, 2025
2 of 7 checks passed
@riderodd
riderodd deleted the fix/expo2 branch September 11, 2025 23:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR attempts to fix the Expo plugin configuration by simplifying the package.json exports structure and improving error handling in the Vosk plugin.

  • Removes complex exports field in favor of traditional main/module/types fields
  • Changes plugin file path from "plugin" to "plugin/build" in the files array
  • Updates plugin code to handle undefined props more robustly

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
plugin/src/withVosk.ts Improves error handling by using nullish coalescing instead of type assertion
package.json Simplifies package exports, updates version, and changes build configuration

Comment thread package.json
"android",
"ios",
"plugin",
"plugin/build",

Copilot AI Sep 11, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The files array references 'plugin/build' but there's no indication this directory exists or will be created during the build process. This could cause the plugin to be missing from published packages. Verify that the plugin build process creates this directory or change back to 'plugin' to include the source files.

Suggested change
"plugin/build",
"plugin",

Copilot uses AI. Check for mistakes.
Comment thread package.json
"types": "lib/typescript/src/index.d.ts",
"main": "lib/commonjs/index.js",
"module": "lib/module/index.js",
"react-native": "src/index.ts",

Copilot AI Sep 11, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The react-native field points to 'src/index.ts' but the main source file is 'src/index.tsx' (as seen in the build configuration). This mismatch could cause module resolution issues in React Native projects.

Suggested change
"react-native": "src/index.ts",
"react-native": "src/index.tsx",

Copilot uses AI. Check for mistakes.
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.

2 participants