Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for .cjs files #209

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Kruimeldief
Copy link

@Kruimeldief Kruimeldief commented Feb 18, 2022

Currently, WOKC only auto-imports commands of files that end with .js with the WOKC option typescript: false. With the small change below, CommonJS files .cjs will be imported as well in case the project package has the option "type": "module".

Edit: seems I forgot to switch to merge into AlexzanderFlores:dev instead of _:main and I can't edit this (I think). Either branch is fine with me, as long as it is released in the near future.

@AlexzanderFlores Seeing the number of issues and open pull-up requests, is this repository abandoned? If so, could you give someone (trustful) write access to both the dev and main branch?

When WOKCommands option typescript is false, CommonJS files (.cjs) should be imported in case the project package type is module.
@benrobson
Copy link

+1 with module js support WOKCommands doesn't work.

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