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

Support alternative file extensions #1231

Merged
merged 3 commits into from
Apr 26, 2020
Merged

Support alternative file extensions #1231

merged 3 commits into from
Apr 26, 2020

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Apr 17, 2020

This PR enables experimenting with alternative file extensions, by making the default extension overridable in asc, using the (temporary) --extension option. While this works, there are various follow-up issues obviously that need to be addressed eventually, like allowing multiple file extensions to be valid if one imports a foreign module's sources directly that are using .ts, but I guess this can wait until we know more (stdlib is extension agnostic).

Related: #1003, https://github.com/AssemblyScript/meta/issues/32

@jtenner
Copy link
Contributor

jtenner commented Apr 17, 2020

I don't suppose we could do something like --allow-extensions ts,asc instead, with the default being ["ts"]?

@dcodeIO
Copy link
Member Author

dcodeIO commented Apr 17, 2020

That's what I meant with additional work being necessary, but needs some refactoring around asc. For now this just enables experimenting with it.

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.

None yet

2 participants