From d1f4219bdb64564b6de8b47e7e4d58963c1a22d2 Mon Sep 17 00:00:00 2001 From: Michael Haufe Date: Sun, 25 Apr 2021 16:43:11 -0500 Subject: [PATCH] Direct Import fix (#198) --- CHANGELOG.md | 3 +++ package-lock.json | 2 +- package.json | 2 +- webpack.config.js | 5 ++--- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32301c1..88cbe21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## v0.20.1 + +* Fixed bug [#197](https://github.com/final-hill/decorator-contracts/issues/197) ## v0.20.0 * Updated license headers to reference Final Hill LLC diff --git a/package-lock.json b/package-lock.json index 43dda69..2b51f2b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@final-hill/decorator-contracts", - "version": "0.20.0", + "version": "0.20.1", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index f5a1106..1393655 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@final-hill/decorator-contracts", - "version": "0.20.0", + "version": "0.20.1", "description": "Code Contracts for TypeScript and ECMAScript classes", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/webpack.config.js b/webpack.config.js index 9ae6d04..b117e21 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -23,11 +23,10 @@ module.exports = { resolve: { extensions: [ '.ts' ], }, - // https://github.com/riversun/making-library-with-webpack#1-4publish-an-export-default-class-with-the-setting-library-name--class-name + // https://github.com/riversun/making-library-with-webpack output: { filename: 'index.js', - library: 'Contracts', - libraryExport: 'default', + library: 'decoratorContracts', libraryTarget: 'umd', globalObject: 'this', path: path.resolve(__dirname, 'dist'),