From d4f8d3cad70fb0a79629221b5cf47efb552a97d1 Mon Sep 17 00:00:00 2001 From: Jimmy Jia Date: Wed, 13 Apr 2016 16:00:42 -0400 Subject: [PATCH] Move ES module build to es/ (#3295) This makes us consistent with Redux --- .gitignore | 2 +- package.json | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 76496db92c..b48c76c691 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -es6 +es lib umd examples/**/*-bundle.js diff --git a/package.json b/package.json index ddcdf8c271..034de1e105 100644 --- a/package.json +++ b/package.json @@ -5,19 +5,19 @@ "files": [ "*.md", "docs", - "es6", + "es", "lib", "umd" ], "main": "lib/index", - "jsnext:main": "es6/index", + "jsnext:main": "es/index", "repository": "reactjs/react-router", "homepage": "https://reactjs.org/react-router/", "bugs": "https://github.com/reactjs/react-router/issues", "scripts": { - "build": "npm run build-cjs && npm run build-es6", + "build": "npm run build-cjs && npm run build-es", "build-cjs": "rimraf lib && babel ./modules -d lib --ignore '__tests__'", - "build-es6": "rimraf es6 && babel ./modules -d es6 --blacklist=es6.modules --ignore '__tests__'", + "build-es": "rimraf es && babel ./modules -d es --blacklist=es6.modules --ignore '__tests__'", "build-umd": "NODE_ENV=development webpack modules/index.js umd/ReactRouter.js", "build-min": "NODE_ENV=production webpack -p modules/index.js umd/ReactRouter.min.js", "lint": "eslint modules examples",