From 6e179602ab6caa3fd02256bd76ec6b71cd556738 Mon Sep 17 00:00:00 2001 From: Erik Hughes Date: Wed, 12 Feb 2020 12:47:23 +0100 Subject: [PATCH] feat: set package.json to type to module --- packages/ui-core/package.json | 3 ++- packages/ui-datepicker/package.json | 3 ++- packages/ui-icons/package.json | 3 ++- packages/ui-typeahead/package.json | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/ui-core/package.json b/packages/ui-core/package.json index 83cc48c..27b3ad5 100644 --- a/packages/ui-core/package.json +++ b/packages/ui-core/package.json @@ -8,7 +8,6 @@ "whitelabel" ], "description": "Basic whitelabled interactive elements following strict code quality and accessibility", - "main": "dist/index.js", "author": "Trutoo AB", "license": "GPL-3.0", "bugs": "https://github.com/trutoo/uikit/issues", @@ -28,6 +27,8 @@ "dist/", "banner.js" ], + "type": "module", + "module": "dist/index.js", "scripts": { "build": "node ../../scripts/build.js", "postinstall": "node banner.js || echo \"ignore\"" diff --git a/packages/ui-datepicker/package.json b/packages/ui-datepicker/package.json index ebbbe7f..c63a6b6 100644 --- a/packages/ui-datepicker/package.json +++ b/packages/ui-datepicker/package.json @@ -8,7 +8,6 @@ "whitelabel" ], "description": "Basic whitelabled interactive elements following strict code quality and accessibility", - "main": "dist/index.js", "author": "Trutoo AB", "license": "GPL-3.0", "bugs": "https://github.com/trutoo/uikit/issues", @@ -27,6 +26,8 @@ "files": [ "dist/" ], + "type": "module", + "module": "dist/index.js", "scripts": { "build": "node ../../scripts/build.js" }, diff --git a/packages/ui-icons/package.json b/packages/ui-icons/package.json index 1a2c9a9..3bfa4d8 100644 --- a/packages/ui-icons/package.json +++ b/packages/ui-icons/package.json @@ -8,7 +8,6 @@ "whitelabel" ], "description": "Basic whitelabled interactive elements following strict code quality and accessibility", - "main": "dist/index.js", "author": "Trutoo AB", "license": "GPL-3.0", "bugs": "https://github.com/trutoo/uikit/issues", @@ -27,6 +26,8 @@ "files": [ "dist/" ], + "type": "module", + "module": "dist/index.js", "scripts": { "build": "node ../../scripts/build.js" } diff --git a/packages/ui-typeahead/package.json b/packages/ui-typeahead/package.json index c3b286a..1c58023 100644 --- a/packages/ui-typeahead/package.json +++ b/packages/ui-typeahead/package.json @@ -8,7 +8,6 @@ "whitelabel" ], "description": "Basic whitelabled interactive elements following strict code quality and accessibility", - "main": "dist/index.js", "author": "Trutoo AB", "license": "GPL-3.0", "bugs": "https://github.com/trutoo/uikit/issues", @@ -27,6 +26,8 @@ "files": [ "dist/" ], + "type": "module", + "module": "dist/index.js", "scripts": { "build": "node ../../scripts/build.js" },