Skip to content

Commit

Permalink
Resolves #310 - point jsnext:main to a rolled-up ES6 version of Dexie.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfahlander committed Sep 21, 2016
1 parent c9e1384 commit 8e1beff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.4.2",
"description": "A Minimalistic Wrapper for IndexedDB",
"main": "dist/dexie.js",
"jsnext:main": "src/Dexie.js",
"jsnext:main": "dist/dexie.es6.js",
"typings": "dist/dexie.d.ts",
"jspm": {
"format": "cjs",
Expand Down
2 changes: 1 addition & 1 deletion tools/build-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export async function rebuildFiles(options, replacements, files) {
return {
entry: entry,
rollups: targets.filter(f=>ext(f) === '.js' || ext(f) === '.es6.js').map(f => ({
entry: `${TMPDIR}${entry}`,
entry: ext(f) === '.es6.js' ? `${entry}` : `${TMPDIR}${entry}`,
rollupCfg: {
format: ext(f) === '.js' ? 'umd' : 'es6',
dest: f,
Expand Down
4 changes: 3 additions & 1 deletion tools/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ build([{
"dist/dexie.js.map",
"dist/dexie.min.js",
"dist/dexie.min.js.map",
"dist/dexie.min.js.gz"
"dist/dexie.min.js.gz",
"dist/dexie.es6.js",
"dist/dexie.es6.js.map"
],
"src/Dexie.d.ts": [
"dist/dexie.d.ts"
Expand Down

0 comments on commit 8e1beff

Please sign in to comment.