Skip to content
New issue

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

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

Already on GitHub? # to your account

Add .cts file extension #89

Closed
1 task done
cspotcode opened this issue May 19, 2022 · 1 comment · Fixed by #90
Closed
1 task done

Add .cts file extension #89

cspotcode opened this issue May 19, 2022 · 1 comment · Fixed by #90

Comments

@cspotcode
Copy link
Contributor

Before you open this issue, please complete the following tasks:

  • use the search bar at the top of the page to search this repository for similar issues or discussions that have already been opened.

Our thoughts on feature requests

Lots of developers rely on gulp, so we don't make big changes very often. Not every feature request will be added to gulp, but hearing about what you want is important. Don't be afraid to submit a feature request!

Describe your idea for a new feature

Add .cts file extension, with the same treatment as .ts.

Explain the problem your idea is trying to solve

In projects with package.json "type": "module", .ts files are treated as native ESM, so people may choose to write their config files with a .cts file extension instead. This file extension is supported by TypeScript and ts-node.

How will it benefit gulp and its users?

Users can write config files with the .cts file extension, and interpret will be able to execute them.

If this feature could exist outside of gulp (like as a plugin or a module), would you be interested in helping to create and maintain it?

@cspotcode cspotcode changed the title Add .cts file extension, maybe also .mts Add .cts file extension May 19, 2022
@cspotcode
Copy link
Contributor Author

Note that there is also the .mts file extension, but that executes as ESM, so would typically require using node --loader ts-node/esm

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant