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

feat(cli): create TS configuration files in init #3999

Merged
merged 9 commits into from
Jan 11, 2021
Merged

feat(cli): create TS configuration files in init #3999

merged 9 commits into from
Jan 11, 2021

Conversation

imhoffd
Copy link
Contributor

@imhoffd imhoffd commented Dec 29, 2020

No description provided.

@imhoffd imhoffd added this to the 3.0.0-rc milestone Dec 30, 2020
Copy link
Member

@jcesarmobile jcesarmobile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The generated .ts file in an existing angular app makes vs code to complain with

Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead.

so probably not a good idea to default to the .ts file if it can cause problems or the .ts file should be changed to support angular apps.

@imhoffd
Copy link
Contributor Author

imhoffd commented Jan 7, 2021

or the .ts file should be changed to support angular apps.

Agreed, see #4031

@imhoffd
Copy link
Contributor Author

imhoffd commented Jan 8, 2021

#4031 is now merged. I think we should document export default as the preferred strategy

@jcesarmobile
Copy link
Member

not just document it, this PR should also use it on the initial .ts file creation

@imhoffd imhoffd modified the milestones: 3.0.0-rc, 3.0.0-beta Jan 11, 2021
@imhoffd imhoffd merged commit fa7003e into main Jan 11, 2021
@imhoffd imhoffd deleted the init-ts-file branch January 11, 2021 18:22
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.

init should create a TS config file, not JSON
2 participants