Skip to content

Fixed referencing issues with mjs based typescript projects#65

Closed
volkmarnissen wants to merge 1 commit intoserialport:mainfrom
volkmarnissen:main
Closed

Fixed referencing issues with mjs based typescript projects#65
volkmarnissen wants to merge 1 commit intoserialport:mainfrom
volkmarnissen:main

Conversation

@volkmarnissen
Copy link
Copy Markdown

Changed package.json to have different directories for ejs and mjs.
Replaced rollup ... by two tsc calls.
Introduced different tsconfig.json files for ejs and mjs

Tested both cjs and mjs references in another project manually.

Closes #52

changed package.json to have different directories for ejs and mjs
Replaced rollup ... by two tsc calls
@volkmarnissen
Copy link
Copy Markdown
Author

This fixes the same issue as proposed in pull request #58
So, either #58 or this PR should be merged.
Otherwise, you can't use serialport in a typescript project which produces ESM javascripts, bause all dependant component will be checked during typescript build (tsc).

@volkmarnissen volkmarnissen closed this by deleting the head repository Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Could not find a declaration file for module '@serialport/bindings-interface'.

2 participants