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

Commit e365e51

Browse files
committed
Point package main to babel, non-rollup files
Closes gh-213
1 parent e65c57f commit e365e51

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# v3.1.0
2+
3+
* **Added** `denormalize`. (gh-214)
4+
* **Changed** No longer requires all input in a polymorphic schema (`Array`, `Union`, `Values`) have a matching schema definition. (gh-208)
5+
* **Changed** Builds do both rollup and plain babel file conversions. `"main"` property in package.json points to babel-converted files.
6+
17
# v3.0.0
28

39
The entire normalizr package has been rewritten from v2.x for this version. Please refer to the [documentation](/docs) for all changes.

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@
2323
"LICENSE",
2424
"README.md"
2525
],
26-
"main": "dist/index.js",
26+
"main": "dist/src/index.js",
2727
"typings": "index.d.ts",
2828
"scripts": {
29-
"build": "npm run clean && mkdirp dist && npm-run-all --parallel build:development build:production",
29+
"build": "npm run clean && mkdirp dist && npm-run-all --parallel build:development build:production build:node",
3030
"build:development": "NODE_ENV=development rollup -c",
3131
"build:production": "NODE_ENV=production rollup -c",
32+
"build:node": "babel src/*.js -d dist && babel src/schemas/*.js -d dist",
3233
"clean": "rimraf dist",
3334
"flow": "flow src; test $? -eq 0 -o $? -eq 2",
3435
"lint": "eslint ./ --fix",

rollup.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import filesize from 'rollup-plugin-filesize';
33
import uglify from 'rollup-plugin-uglify';
44

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

88
export default {
99
entry: 'src/index.js',

0 commit comments

Comments
 (0)