Skip to content

Commit

Permalink
Merge pull request #2 from AnatidaeProject/simplification-ish
Browse files Browse the repository at this point in the history
Did some refactoring
  • Loading branch information
thomaschaaf authored Mar 24, 2021
2 parents 7b32e7c + 3afefee commit 981cf55
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 981cf55

Please sign in to comment.