Skip to content

Commit

Permalink
fix(Typescript bindings): Create a dist/index.js file
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed Jul 22, 2019
1 parent 92f3f7f commit f03c2e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,9 @@ async function build(): Promise<void> {
fs.copy(path.join('built', file), path.join(dist, file))
)
)

// Create an index.js for require.resolve('@stencila/schema') to work
// properly in Encoda
// TODO This won't be necessary when using tsc to compile an index.js
await fs.writeFile(path.join(dist, 'index.js'), '\n')
}

0 comments on commit f03c2e1

Please sign in to comment.