Skip to content

Commit

Permalink
Merge pull request #497 from Bagaar/gts
Browse files Browse the repository at this point in the history
Use `.gts`
  • Loading branch information
bertdeblock committed Mar 19, 2024
2 parents ce892fb + 0e87101 commit 83957be
Show file tree
Hide file tree
Showing 88 changed files with 1,257 additions and 778 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
"fix-bad-declaration-output@1.1.2": "patches/fix-bad-declaration-output@1.1.2.patch"
}
},
"volta": {
Expand Down
18 changes: 18 additions & 0 deletions patches/fix-bad-declaration-output@1.1.2.patch
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();
}

Loading

0 comments on commit 83957be

Please sign in to comment.