From fbe5477ae33ac908f2acf0c2a1634d973f5f3ad0 Mon Sep 17 00:00:00 2001 From: Barry Low Date: Thu, 11 Oct 2018 12:08:56 -0700 Subject: [PATCH] Align npm package to other AA modules --- .babelrc | 5 +++++ .npmignore | 5 ----- package.json | 2 +- test/.babelrc | 7 ++++++- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.babelrc b/.babelrc index efe06ec..4da58d1 100644 --- a/.babelrc +++ b/.babelrc @@ -1,4 +1,9 @@ { "presets": ["@babel/preset-env", "@babel/preset-react"], + "env": { + "development": { + "presets": [["@babel/preset-react", { "development": true }]] + } + }, "plugins": ["@babel/plugin-proposal-class-properties", "@babel/plugin-syntax-dynamic-import", "dynamic-import-node"] } diff --git a/.npmignore b/.npmignore index 8817353..6beb684 100644 --- a/.npmignore +++ b/.npmignore @@ -1,13 +1,8 @@ -src examples -.babelrc .storybook webpack.config.js -tools stories output node_modules coverage -postcss.config.js .env -.eslintrc diff --git a/package.json b/package.json index 6ac3edd..24c9d6c 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "graphql", "material-ui" ], - "main": "dist/index.js", + "main": "src/index.js", "scripts": { "test": "jest --no-cache --coverage --coverageDirectory=output/coverage/jest", "test-watch": "jest --watch --no-cache --coverage --coverageDirectory=output/coverage/jest", diff --git a/test/.babelrc b/test/.babelrc index e60d303..4da58d1 100644 --- a/test/.babelrc +++ b/test/.babelrc @@ -1,4 +1,9 @@ { "presets": ["@babel/preset-env", "@babel/preset-react"], - "plugins": ["@babel/plugin-proposal-class-properties"] + "env": { + "development": { + "presets": [["@babel/preset-react", { "development": true }]] + } + }, + "plugins": ["@babel/plugin-proposal-class-properties", "@babel/plugin-syntax-dynamic-import", "dynamic-import-node"] }