From 15556d8e6feece1572f4e4c107ed70d1906ba925 Mon Sep 17 00:00:00 2001 From: Gleb Bahmutov Date: Mon, 23 Oct 2017 13:03:08 -0400 Subject: [PATCH] fix: publish just lib folder --- circle.yml | 1 + package.json | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/circle.yml b/circle.yml index c6e5fb5..73dfe87 100644 --- a/circle.yml +++ b/circle.yml @@ -7,4 +7,5 @@ deployment: branch: master commands: # not every commit is going to be published + - npm run size - npm run semantic-release || true diff --git a/package.json b/package.json index 9efe041..6ed857c 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "release": "releaser", "test": "NODE_ENV=test mocha", "watch": "NODE_ENV=test mocha --watch", - "semantic-release": "semantic-release pre && npm publish && semantic-release post" + "semantic-release": "semantic-release pre && npm publish && semantic-release post", + "size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";" }, "repository": { "type": "git", @@ -18,6 +19,7 @@ "releasing", "versioning" ], + "files": ["lib"], "author": "Loren Norman ", "license": "MIT", "bugs": {