Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions scripts/execTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ module.exports = {
shell.exec(`npx tsc -p types.tsconfig.json --rootDir packages --outFile ${outFile}`)

const namespaceDeclaration = `
import * as Interact from '@interactjs/types/index'

export as namespace Interact
export = Interact
declare module '@interactjs/types' {
export * from '@interactjs/types/index';
}
`.trimStart()

await fs.promises.writeFile(path.join(outDir, 'typings.d.ts'), namespaceDeclaration)
Expand Down
Loading