Skip to content

Commit

Permalink
docs: document typeOptions.outDir in README (#68)
Browse files Browse the repository at this point in the history
Closes #67
  • Loading branch information
akkumar authored Jan 30, 2022
1 parent 22b5d9c commit 1cfd742
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,19 @@ export default {
};
```

When building the library with Rollup, TypeScript definitions will be written to the `types` folder.
When building the library with Rollup, TypeScript definitions will be written to the `types` folder by default.

Use the `typesOptions.outDir` option to customize the output folder.

For example, specify the following for the output to be emitted to the `dist` folder:

```diff
sveld({
+ typesOptions: {
+ outDir: 'dist'
+ }
})
```

The [integration](integration) folder contains example set-ups:

Expand Down

0 comments on commit 1cfd742

Please sign in to comment.