only publish ES5 code to NPM

This commit is contained in:
doug
2016-08-02 10:55:23 -04:00
parent 5e9060d879
commit ba618f27bb
4 changed files with 8 additions and 6 deletions

2
.gitignore vendored
View File

@@ -1,2 +1,2 @@
node_modules/
lib/
dist/

1
.npmignore Normal file
View File

@@ -0,0 +1 @@
./update.js

View File

@@ -1,11 +1,12 @@
{
"name": "update-immutable",
"version": "1.0.0",
"version": "1.0.1",
"description": "React-compatible data-structure update utility",
"main": "lib/update",
"main": "dist/update",
"scripts": {
"build": "node node_modules/babel-cli/bin/babel.js update.js --out-dir lib",
"test": "nodeunit test.js"
"build": "node node_modules/babel-cli/bin/babel.js update.js --out-dir dist",
"test": "npm run build && node_modules/nodeunit/bin/nodeunit test.js",
"prepublish": "npm run build"
},
"author": "Doug Hoyte",
"license": "BSD-2-Clause",

View File

@@ -1,4 +1,4 @@
var update = require("./lib/update").default;
var update = require("./dist/update").default;
function clone(a) {