Skip to content
This repository has been archived by the owner on Mar 20, 2022. It is now read-only.

Commit

Permalink
Point package main to babel, non-rollup files
Browse files Browse the repository at this point in the history
Closes gh-213
  • Loading branch information
paularmstrong committed Jan 11, 2017
1 parent e65c57f commit e365e51
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v3.1.0

* **Added** `denormalize`. (gh-214)
* **Changed** No longer requires all input in a polymorphic schema (`Array`, `Union`, `Values`) have a matching schema definition. (gh-208)
* **Changed** Builds do both rollup and plain babel file conversions. `"main"` property in package.json points to babel-converted files.

# v3.0.0

The entire normalizr package has been rewritten from v2.x for this version. Please refer to the [documentation](/docs) for all changes.
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@
"LICENSE",
"README.md"
],
"main": "dist/index.js",
"main": "dist/src/index.js",
"typings": "index.d.ts",
"scripts": {
"build": "npm run clean && mkdirp dist && npm-run-all --parallel build:development build:production",
"build": "npm run clean && mkdirp dist && npm-run-all --parallel build:development build:production build:node",
"build:development": "NODE_ENV=development rollup -c",
"build:production": "NODE_ENV=production rollup -c",
"build:node": "babel src/*.js -d dist && babel src/schemas/*.js -d dist",
"clean": "rimraf dist",
"flow": "flow src; test $? -eq 0 -o $? -eq 2",
"lint": "eslint ./ --fix",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import filesize from 'rollup-plugin-filesize';
import uglify from 'rollup-plugin-uglify';

const isProduction = process.env.NODE_ENV === 'production';
const dest = `dist/index${isProduction ? '.min' : ''}.js`;
const dest = `dist/normalizr${isProduction ? '.min' : ''}.js`;

export default {
entry: 'src/index.js',
Expand Down

0 comments on commit e365e51

Please sign in to comment.