Skip to content

Commit

Permalink
feature: update default tsconfig (#18)
Browse files Browse the repository at this point in the history
* feat: use tsconfig.json as main entry

* chore: update main entry
  • Loading branch information
leohxj authored Aug 27, 2019
1 parent b5a1833 commit 1b44155
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
9 changes: 9 additions & 0 deletions packages/tsconfig/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,12 @@ add `extends` in your tsconfig.json:
...
}
```


### react env

```json
{
"extends": "@mjolnir/tsconfig/react.json"
}
```
9 changes: 6 additions & 3 deletions packages/tsconfig/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"name": "@mjolnir/tsconfig",
"version": "0.0.2",
"description": "> TODO: description",
"description": "",
"homepage": "https://github.com/mjolnirjs/mjolnir/tree/master/packages/tsconfig#readme",
"license": "MIT",
"main": "base.json",
"files": [],
"main": "tsconfig.json",
"files": [
"tsconfig.json",
"react.json"
],
"publishConfig": {
"access": "public"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"module": "es6",
"target": "es5",
"lib": ["esnext", "dom"],
"jsx": true,
"esModuleInterop": true,
"moduleResolution": "node"
}
Expand Down
File renamed without changes.

0 comments on commit 1b44155

Please sign in to comment.