Skip to content

Commit b3dcf20

Browse files
committed
Is this it?
1 parent 622870b commit b3dcf20

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

types/publish.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,13 @@ async function main() {
104104

105105
doOrDie(() => spawnSync('pnpm', ['tsc', '--project', 'tsconfig/publish-types.json']));
106106

107+
// We're deprecating the barrel file, so this is temporary. The Ember global is a namespace,
108+
// and namespaces can't be both exported and used as a type with the same semantics and
109+
// capabilities as when defined in the original file -- so we're going to LIE and
110+
// pretend that the barrel file is the index file (which is the same behavior as
111+
// prior to the deprecation)
112+
await fs.cp(path.join(TYPES_DIR, 'ember/barrel.d.ts'), path.join(TYPES_DIR, 'ember/index.d.ts'));
113+
107114
let remappedLocationExcludes = await doOrDie(copyHandwrittenDefinitions);
108115
let sideEffectExcludes = await doOrDie(copyRemappedLocationModules);
109116

0 commit comments

Comments
 (0)