Skip to content
This repository was archived by the owner on Apr 9, 2021. It is now read-only.

Commit

Permalink
chore(build): add prepublish and clean scripts to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
youfoundron committed May 1, 2017
1 parent 8023b58 commit 9986aef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"license": "GPL-3.0",
"scripts": {
"build": "webpack",
"clean": "rimraf lib",
"prepublish": "npm run clean && npm run build",
"commit": "git cz",
"lint": "standard | snazzy",
"test": "jest"
Expand Down Expand Up @@ -35,6 +37,7 @@
"pre-commit": "^1.2.2",
"react-addons-test-utils": "^15.5.1",
"react-test-renderer": "^15.5.4",
"rimraf": "^2.6.1",
"snazzy": "^7.0.0",
"standard": "^10.0.2",
"styled-jsx": "^0.5.7",
Expand Down
3 changes: 1 addition & 2 deletions webpack.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const libDir = path.resolve(__dirname, 'lib')
const entryReducer = fileNames =>
fileNames.reduce((entries, fileName) => {
const {base, name, ext} = path.parse(fileName)
if (ext) entries[name] = path.join('./', base)
if (ext) entries[name] = path.resolve(srcDir, base)
return entries
}, {})

Expand All @@ -21,7 +21,6 @@ const dynamicEntry = () => new Promise(
)

export default {
context: srcDir,
entry: dynamicEntry,
output: {
path: libDir,
Expand Down
6 changes: 1 addition & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4379,14 +4379,10 @@ word-wrap@^1.0.3:
version "1.2.1"
resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.1.tgz#248f459b465d179a17bc407c854d3151d07e45d8"

wordwrap@0.0.2:
wordwrap@0.0.2, wordwrap@~0.0.2:
version "0.0.2"
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f"

wordwrap@~0.0.2:
version "0.0.3"
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107"

wordwrap@~1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"
Expand Down

0 comments on commit 9986aef

Please sign in to comment.