Skip to content

Commit

Permalink
Provide version with ES modules
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverJAsh authored and gcanti committed Dec 3, 2019
1 parent f418aef commit d764c2f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.log
node_modules
lib
es6
dev
coverage
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"lib"
],
"main": "lib/index.js",
"module": "es6/index.js",
"typings": "lib/index.d.ts",
"scripts": {
"lint": "tslint -p tsconfig.json src/**/*.ts test/**/*.ts",
Expand All @@ -14,7 +15,7 @@
"jest": "jest --ci",
"test": "npm run build && npm run lint && npm run dtslint && npm run prettier && npm run jest && npm run docs",
"clean": "rm -rf lib/*",
"build": "npm run clean && tsc",
"build": "npm run clean && tsc && tsc -p ./tsconfig.es6.json",
"prepublish": "npm run build",
"dtslint": "dtslint dtslint",
"mocha": "mocha -r ts-node/register test/*.ts",
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 d764c2f

Please sign in to comment.