From 2e0641edd3de301e0b13c65dd2f47f81737e0250 Mon Sep 17 00:00:00 2001 From: Arash Koushkebaghi Date: Tue, 6 Aug 2019 13:40:09 -0700 Subject: [PATCH] build(npm): publish dist directory properly --- .npmignore | 2 ++ package-lock.json | 2 +- package.json | 8 +++++++- release.config.js | 7 +------ 4 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 000000000..9fdaeccbc --- /dev/null +++ b/.npmignore @@ -0,0 +1,2 @@ +* +!dist/* diff --git a/package-lock.json b/package-lock.json index d33fa2c07..a1bc1d70a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "@webex/webex-components", + "name": "@webex/components", "version": "0.0.1", "lockfileVersion": 1, "requires": true, diff --git a/package.json b/package.json index 1bc2a6f79..579956361 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,10 @@ "type": "git", "url": "https://github.com/webex/components.git" }, + "publishConfig": { + "tag": "latest", + "access": "public" + }, "author": "devsupport@webex.com", "license": "MIT", "peerDependencies": { @@ -97,7 +101,9 @@ "outputName": "results.xml" }, "commitlint": { - "extends": ["@commitlint/config-conventional"] + "extends": [ + "@commitlint/config-conventional" + ] }, "husky": { "hooks": { diff --git a/release.config.js b/release.config.js index e7f79b11e..10b5790a9 100644 --- a/release.config.js +++ b/release.config.js @@ -15,12 +15,7 @@ module.exports = { }, }, ], - [ - '@semantic-release/npm', - { - tarballDir: 'dist', - }, - ], + '@semantic-release/npm', [ '@semantic-release/github', {