-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #497 from Bagaar/gts
Use `.gts`
- Loading branch information
Showing
88 changed files
with
1,257 additions
and
778 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,14 +15,17 @@ | |
"test:ember": "pnpm --filter '*' test:ember" | ||
}, | ||
"devDependencies": { | ||
"@glint/core": "^1.2.1", | ||
"concurrently": "^8.2.0", | ||
"prettier": "^3.0.3", | ||
"prettier-plugin-ember-template-tag": "^1.1.0", | ||
"@glint/core": "^1.2.1" | ||
"prettier-plugin-ember-template-tag": "^2.0.1" | ||
}, | ||
"pnpm": { | ||
"overrides": { | ||
"@types/eslint": "^7.0.0" | ||
}, | ||
"patchedDependencies": { | ||
"[email protected]": "patches/[email protected]" | ||
} | ||
}, | ||
"volta": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/src/fixes/glint.js b/src/fixes/glint.js | ||
index a4712a4b8513f384b0d15b15c4ea80dfc4fcccd8..1a8a5a9740a88cc8690c9470a7411396dcf68808 100644 | ||
--- a/src/fixes/glint.js | ||
+++ b/src/fixes/glint.js | ||
@@ -32,6 +32,13 @@ export function fixGTSExtensions(contents) { | ||
path.node.source.value = path.node.source.value.replace(/\.gts$/, ''); | ||
}); | ||
|
||
+ root | ||
+ .find(j.TSImportType) | ||
+ .filter((path) => path.node.argument.value.includes('.gts')) | ||
+ .forEach((path) => { | ||
+ path.node.argument.value = path.node.argument.value.replace(/\.gts$/, ''); | ||
+ }); | ||
+ | ||
return root.toSource(); | ||
} | ||
|
Oops, something went wrong.