Skip to content

Commit

Permalink
Change build to output ES5
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanbruegge committed Oct 25, 2017
1 parent 7401633 commit dba234a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
"name": "cyclejs-modal",
"version": "3.0.0",
"description": "An easy way to open custom modals in a cyclejs app",
"main": "build/src/modalify.js",
"typings": "build/src/modalify.d.ts",
"main": "build/cjs/src/modalify.js",
"module": "build/es6/src/modalify.js",
"typings": "build/es6/src/modalify.d.ts",
"scripts": {
"build": "rimraf build/* && tsc -d && rimraf build/examples",
"build": "rimraf build/* && tsc -d --module ES6 --outDir build/es6 && tsc -d && rimraf build/examples",
"build:examples": "mkdirp examples/simple/build && tsc",
"build:rxjs": "mkdirp examples/rxjs/build && tsc",
"documentation": "typedoc --out docs src && cp-cli .nojekyll docs/.nojekyll",
Expand Down
11 changes: 7 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
"compileOnSave": false,
"compilerOptions":
{
"module": "commonJS",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"target": "ES6",
"outDir": "build"
"target": "ES5",
"outDir": "build/cjs",
"lib": ["DOM", "ES6", "ES5"]
},
"exclude": [
"node_modules"
"node_modules",
"build"
]
}

0 comments on commit dba234a

Please sign in to comment.