Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit 43196ce

Browse files
committed
Add typesVersions entry for consistent Signature import paths
1 parent 59338a9 commit 43196ce

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

packages/@glimmer/component/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@
8787
"typescript": "~4.2.3",
8888
"webpack": "^5.69.0"
8989
},
90+
"typesVersions": {
91+
"*": {
92+
"-private/*": [
93+
"dist/modules/addon/-private/*"
94+
]
95+
}
96+
},
9097
"engines": {
9198
"node": "12.* || 14.* || >= 16"
9299
},

test/types/component-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Component from '@glimmer/component';
99
// expect to be -- and this keeps us honest about the fact that if we *change*
1010
// this import location, we've broken any existing declarations published using
1111
// the current type signatures.
12-
import { EmptyObject, ExpandSignature } from '@glimmer/component/addon/-private/component';
12+
import type { EmptyObject, ExpandSignature } from '@glimmer/component/-private/component';
1313

1414
declare let basicComponent: Component;
1515
expectTypeOf(basicComponent).toHaveProperty('args');

0 commit comments

Comments
 (0)