Skip to content

Commit

Permalink
Did some refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian-McBride committed Mar 17, 2021
1 parent 7b32e7c commit 3afefee
Show file tree
Hide file tree
Showing 21 changed files with 11,717 additions and 64 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tests/project/
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,34 @@ If for some reason you want to use typescripts compiler for all files you can si

2. Add this plugin to your esbuild build script:

Javascript:
```diff
+const EsbuildPluginTsc = require('esbuild-plugin-tsc');
+const esbuildPluginTsc = require('esbuild-plugin-tsc');
...
esbuild.build({
...
plugins: [
+ EsbuildPluginTsc(),
+ esbuildPluginTsc(),
],
})
```

Typescript:
```diff
+import { esbuildPluginTsc } from 'esbuild-plugin-tsc';
...
esbuild.build({
...
plugins: [
+ esbuildPluginTsc(),
],
})
```
## Config
```typescript
EsbuildPluginTsc{
esbuildPluginTsc{
// If empty, uses tsconfig.json
tsconfigPath?: string,
// If true, force compilation with tsc
Expand Down
Loading

0 comments on commit 3afefee

Please sign in to comment.