+
Skip to content

Only require .js files by default #99

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Noxillio
Copy link
Contributor

@Noxillio Noxillio commented Mar 4, 2020

I don't see why Akairo should be trying to require .ts and .json files at all, if anyone has a use case where that's viable though I would like to see it.

@Noxillio Noxillio changed the title Only require .js files Only require .js files by default Mar 4, 2020
@jonahsnider
Copy link

What impact will this have on TypeScript users?

@papaia
Copy link
Contributor

papaia commented Mar 6, 2020

from what i understood, it will only affect ts-node users, but if normally compiled to javascript with the typescript cli (tsc), it would probably make no difference.
[context]

@jonahsnider
Copy link

What TypeScript user wouldn't be using ts-node for development testing? This just seems like it would hurt TypeScript users for a microscopic performance gain.

@papaia
Copy link
Contributor

papaia commented Jun 18, 2020

It would be as simple as adding extensions: ['.js', '.ts'] to your command handler options.

@Noxillio
Copy link
Contributor Author

Noxillio commented Jun 18, 2020

What TypeScript user wouldn't be using ts-node for development testing? This just seems like it would hurt TypeScript users for a microscopic performance gain.

Me.
And countless others.

What makes you think that every TS dev uses ts-node? It completely ruins the point of compiling, which is how TS is meant to be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载