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

Downstreamed changes from @embroider/[email protected] #71

Merged
merged 6 commits into from
Dec 20, 2023

Conversation

ijlee2
Copy link
Owner

@ijlee2 ijlee2 commented Dec 20, 2023

What changed?

  • Replaced Babel plugins with decorator-transforms
  • Updated TypeScript and Glint configurations for the addon package
  • Updated latestVersions

I tested the changes on a couple of addons:

@ijlee2 ijlee2 added the enhance: code Issue asks for new feature or refactor label Dec 20, 2023
Comment on lines +19 to +26
[
"module:decorator-transforms",
{
"runtime": {
"import": "decorator-transforms/runtime"
}
}
]
Copy link
Owner Author

Choose a reason for hiding this comment

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

@@ -2,6 +2,7 @@
// These will *not* be published as part of your addon, so be careful that your published code does not rely on them!
<% if (options.packages.addon.hasGlint) { %>
import '@glint/environment-ember-loose';
// import '@glint/environment-ember-template-imports';
Copy link
Owner Author

Choose a reason for hiding this comment

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

embroider-build/addon-blueprint#218

At the moment, the codemod doesn't check if @glint/environment-ember-template-imports (optional) is installed. Rather than omitting the line, I opted to comment the line.

@@ -21,6 +21,7 @@ function setCompilerOptions(
compilerOptions.set('allowImportingTsExtensions', true);
compilerOptions.set('allowJs', true);
compilerOptions.set('declarationDir', 'declarations');
compilerOptions.set('rootDir', './src');
Copy link
Owner Author

Choose a reason for hiding this comment

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

@ijlee2 ijlee2 marked this pull request as ready for review December 20, 2023 16:42
@ijlee2 ijlee2 merged commit 80509eb into main Dec 20, 2023
2 checks passed
@ijlee2 ijlee2 deleted the downstream-changes-from-addon-blueprint branch December 20, 2023 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhance: code Issue asks for new feature or refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant