Skip to content

Add support for .cjs files#209

Open
Kruimeldief wants to merge 1 commit into
AlexzanderFlores:mainfrom
Kruimeldief:patch-1
Open

Add support for .cjs files#209
Kruimeldief wants to merge 1 commit into
AlexzanderFlores:mainfrom
Kruimeldief:patch-1

Conversation

@Kruimeldief
Copy link
Copy Markdown

@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
Copy Markdown

+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