Skip to content

Commit

Permalink
Fixed publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzg committed Mar 1, 2018
1 parent 517d0df commit ce44748
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 2 deletions.
1 change: 1 addition & 0 deletions index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "plugin-lib",
"version": "1.0.0",
"main": "webpack.config.js",
"main": "index.bundle.js",
"scripts": {
"build": "webpack --optimize-minimize --config webpack.config.js --mode production"
"prepublish": "webpack --optimize-minimize --config webpack.config.js --mode production"
},
"devDependencies": {
"babel-loader": "^7.1.3",
"ts-loader": "^4.0.0",
"typescript": "^2.7.2",
"uglifyjs-webpack-plugin": "^1.2.2",
Expand Down
5 changes: 5 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ var options = {
test: /\.tsx?$/,
loader: "ts-loader"
},
{
// Handles compiling React, ES7, ES6
test: /\.jsx?$/,
loader: "babel-loader"
}
]
},
plugins: [
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,14 @@ babel-helpers@^6.24.1:
babel-runtime "^6.22.0"
babel-template "^6.24.1"

babel-loader@^7.1.3:
version "7.1.3"
resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-7.1.3.tgz#ff5b440da716e9153abb946251a9ab7670037b16"
dependencies:
find-cache-dir "^1.0.0"
loader-utils "^1.0.2"
mkdirp "^0.5.1"

babel-messages@^6.23.0:
version "6.23.0"
resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e"
Expand Down

0 comments on commit ce44748

Please sign in to comment.