From 609820b5528e5a7d8d1e2b82cf396f0d52608ca0 Mon Sep 17 00:00:00 2001 From: Helder Burato Berto Date: Mon, 21 Oct 2019 00:15:35 -0300 Subject: [PATCH 1/2] fix: build to UMD module --- package.json | 10 ++++++++-- webpack.config.js | 5 +++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 1950cec..9b0896e 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "js-http-status", "version": "0.1.1", "description": "[![License][license-badge]][license-url]", - "main": "lib/index.js", + "main": "src/index.js", "scripts": { "commit": "git-cz", "clean": "rimraf dist", @@ -20,7 +20,13 @@ "type": "git", "url": "git+https://github.com/codevor/js-http-status.git" }, - "keywords": [], + "keywords": [ + "javascript", + "es6", + "library", + "http-status", + "js-http-status" + ], "author": "Helder Burato Berto (https://helder.dev/)", "license": "MIT", "bugs": { diff --git a/webpack.config.js b/webpack.config.js index 49fc8a3..46c9d1c 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -12,9 +12,10 @@ module.exports = { output: { path: path.resolve(__dirname, 'dist'), filename: isProduction ? 'http-status.min.js' : 'http-status.js', - library: 'HttpStatus', + library: 'js-http-status', libraryTarget: 'umd', - umdNamedDefine: true + umdNamedDefine: true, + globalObject: 'this' }, module: { rules: [ From 2eef3d511ad701b18f83cddcf4c0924ab2221235 Mon Sep 17 00:00:00 2001 From: Helder Burato Berto Date: Mon, 21 Oct 2019 00:22:05 -0300 Subject: [PATCH 2/2] fix: build version v0.1.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9b0896e..670dbac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "js-http-status", - "version": "0.1.1", + "version": "0.1.2", "description": "[![License][license-badge]][license-url]", "main": "src/index.js", "scripts": {