Skip to content

Commit

Permalink
output ES modules to better support tree-shaking, closes gcanti#326
Browse files Browse the repository at this point in the history
  • Loading branch information
gcanti committed May 13, 2019
1 parent 6f75b10 commit db73fd3
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*.log
node_modules
lib
es6
dev
coverage
declaration/out/src
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
**Note**: Gaps between patch versions are faulty/broken releases. **Note**: A feature tagged as Experimental is in a
high state of flux, you're at risk of it changing without notice.

# 1.8.6

output ES modules to better support tree-shaking, closes #326 (@gcanti)

# 1.8.5

- **Bug Fix**
Expand Down
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
{
"name": "io-ts",
"version": "1.8.5",
"version": "1.8.6",
"description": "TypeScript compatible runtime type system for IO validation",
"files": [
"lib"
"lib",
"es6"
],
"main": "lib/index.js",
"module": "es6/index.js",
"typings": "lib/index.d.ts",
"sideEffects": false,
"scripts": {
"lint": "tslint -p tsconfig.json src/**/*.ts test/**/*.ts",
"jest": "jest",
"prettier": "prettier --no-semi --single-quote --print-width 120 --parser typescript --list-different \"{src,test}/**/*.ts\"",
"fix-prettier": "prettier --no-semi --single-quote --print-width 120 --parser typescript --write \"{src,test,examples,exercises}/**/*.ts\"",
"test": "npm run prettier && npm run lint && npm run dtslint && npm run declaration && npm run jest",
"clean": "rimraf lib/*",
"build": "npm run clean && tsc",
"clean": "rimraf lib/* es6/*",
"build": "npm run clean && tsc && tsc -p tsconfig.es6.json",
"prepublish": "npm run build",
"perf": "node perf/index",
"dtslint": "dtslint dtslint",
Expand Down
7 changes: 7 additions & 0 deletions tsconfig.es6.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./es6",
"module": "es6"
}
}

0 comments on commit db73fd3

Please sign in to comment.