Skip to content
This repository has been archived by the owner on Aug 12, 2018. It is now read-only.

Commit

Permalink
fix publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
sdn90 committed Jun 8, 2016
1 parent 5896d0d commit ddb8b2c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-shopify-theme",
"version": "0.1.1",
"version": "0.1.2",
"description": "React components for Shopify themes",
"main": "./lib/index.js",
"scripts": {
Expand Down Expand Up @@ -37,6 +37,7 @@
"mocha": "^2.4.5",
"react-addons-test-utils": "^15.0.1",
"react-dom": "^15.0.1",
"react": "^15.0.1",
"rimraf": "^2.5.2",
"typescript": "^1.8.9",
"webpack": "^1.12.14",
Expand Down
18 changes: 17 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,25 @@ var webpack = require('webpack');
module.exports = {
entry: './src/index.js',
output: {
libraryTarget: 'umd',
library: 'ReactShopifyTheme',
libraryTarget: 'umd',
},
externals: [
{
'react': {
root: 'React',
commonjs2: 'react',
commonjs: 'react',
amd: 'react',
},
'react-dom': {
root: 'ReactDOM',
commonjs2: 'react-dom',
commonjs: 'react-dom',
amd: 'react-dom',
},
},
],
resolve: {
extensions: ['', '.js', '.jsx'],
},
Expand Down

0 comments on commit ddb8b2c

Please sign in to comment.