From f6c7f638a14920722c7856a8d7faa9d92b722703 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Mon, 9 Nov 2020 17:40:47 +0100 Subject: [PATCH] Build esnext modules (#396) --- babel.esnext.js | 4 ++++ package.json | 2 +- packages/react-identicon/package.json | 2 ++ packages/react-qr/package.json | 2 ++ packages/reactnative-identicon/package.json | 2 ++ packages/ui-keyring/package.json | 2 ++ packages/ui-settings/package.json | 2 ++ packages/ui-shared/package.json | 2 ++ packages/vue-identicon/package.json | 2 ++ yarn.lock | 10 +++++----- 10 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 babel.esnext.js diff --git a/babel.esnext.js b/babel.esnext.js new file mode 100644 index 00000000..4444dbfb --- /dev/null +++ b/babel.esnext.js @@ -0,0 +1,4 @@ +// Copyright 2017-2020 @polkadot/ui authors & contributors +// SPDX-License-Identifier: Apache-2.0 + +module.exports = require('@polkadot/dev/config/babel.esnext.js'); diff --git a/package.json b/package.json index 002a9a40..b8a6ee67 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "devDependencies": { "@babel/core": "^7.12.3", "@babel/runtime": "^7.12.5", - "@polkadot/dev": "^0.59.20", + "@polkadot/dev": "^0.59.21", "@polkadot/ts": "^0.3.53", "@types/jest": "^26.0.15", "babel-plugin-transform-vue-template": "^0.4.2", diff --git a/packages/react-identicon/package.json b/packages/react-identicon/package.json index ed984b5b..ffbbf215 100644 --- a/packages/react-identicon/package.json +++ b/packages/react-identicon/package.json @@ -3,6 +3,8 @@ "version": "0.62.1", "description": "Renders an SVG picture representing an address", "main": "index.js", + "module": "esnext/index.js", + "sideEffects": false, "author": "Jaco Greeff ", "maintainers": [ "Jaco Greeff " diff --git a/packages/react-qr/package.json b/packages/react-qr/package.json index 42f63aab..8eb9e9e1 100644 --- a/packages/react-qr/package.json +++ b/packages/react-qr/package.json @@ -3,6 +3,8 @@ "version": "0.62.1", "description": "Generates and reads QR codes", "main": "index.js", + "module": "esnext/index.js", + "sideEffects": false, "author": "Jaco Greeff ", "maintainers": [ "Jaco Greeff " diff --git a/packages/reactnative-identicon/package.json b/packages/reactnative-identicon/package.json index b9720a54..1296b1fc 100644 --- a/packages/reactnative-identicon/package.json +++ b/packages/reactnative-identicon/package.json @@ -3,6 +3,8 @@ "version": "0.62.1", "description": "Renders an SVG picture representing an address", "main": "index.js", + "module": "esnext/index.js", + "sideEffects": false, "author": "Jaco Greeff ", "maintainers": [ "Jaco Greeff " diff --git a/packages/ui-keyring/package.json b/packages/ui-keyring/package.json index 04b9966e..82806f58 100644 --- a/packages/ui-keyring/package.json +++ b/packages/ui-keyring/package.json @@ -2,6 +2,8 @@ "name": "@polkadot/ui-keyring", "version": "0.62.1", "main": "index.js", + "module": "esnext/index.js", + "sideEffects": false, "repository": "https://github.com/polkadot-js/apps.git", "author": "Jaco Greeff ", "maintainers": [ diff --git a/packages/ui-settings/package.json b/packages/ui-settings/package.json index 442ad64e..b1cb6325 100644 --- a/packages/ui-settings/package.json +++ b/packages/ui-settings/package.json @@ -3,6 +3,8 @@ "version": "0.62.1", "description": "Manages app settings", "main": "index.js", + "module": "esnext/index.js", + "sideEffects": false, "author": "Jaco Greeff ", "maintainers": [ "Jaco Greeff " diff --git a/packages/ui-shared/package.json b/packages/ui-shared/package.json index aba49202..ecff4074 100644 --- a/packages/ui-shared/package.json +++ b/packages/ui-shared/package.json @@ -3,6 +3,8 @@ "version": "0.62.1", "description": "Shared logic that is usable accross all frameworks-specific areas", "main": "index.js", + "module": "esnext/index.js", + "sideEffects": false, "author": "Jaco Greeff ", "maintainers": [ "Jaco Greeff " diff --git a/packages/vue-identicon/package.json b/packages/vue-identicon/package.json index 7135faaa..88b73995 100644 --- a/packages/vue-identicon/package.json +++ b/packages/vue-identicon/package.json @@ -7,6 +7,8 @@ "Jaco Greeff " ], "main": "index.js", + "module": "esnext/index.js", + "sideEffects": false, "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.12.5", diff --git a/yarn.lock b/yarn.lock index d8ee20fa..9a0d1025 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2090,9 +2090,9 @@ __metadata: languageName: node linkType: hard -"@polkadot/dev@npm:^0.59.20": - version: 0.59.20 - resolution: "@polkadot/dev@npm:0.59.20" +"@polkadot/dev@npm:^0.59.21": + version: 0.59.21 + resolution: "@polkadot/dev@npm:0.59.21" dependencies: "@babel/cli": ^7.12.1 "@babel/core": ^7.12.3 @@ -2178,7 +2178,7 @@ __metadata: polkadot-exec-typedoc: scripts/polkadot-exec-typedoc.js polkadot-exec-vuepress: scripts/polkadot-exec-vuepress.js polkadot-exec-webpack: scripts/polkadot-exec-webpack.js - checksum: 4d589615cc8bc2d1b302113d734e4f0a22ae8fb86f202648cb4b4a3780022fd7dab1d04ce85c5e8040849878c0372fbf19578ed6cf5cf95589054bda475fbc9b + checksum: c853d9077c256e68074fc2c08ff8e7e140f01e547e71a8021c71373c3b0fedf7a0e013e9e91eef463f3be60031ca5a1e5c7b490740d5eba5cc5e96b337369a2f languageName: node linkType: hard @@ -13931,7 +13931,7 @@ fsevents@^1.2.7: dependencies: "@babel/core": ^7.12.3 "@babel/runtime": ^7.12.5 - "@polkadot/dev": ^0.59.20 + "@polkadot/dev": ^0.59.21 "@polkadot/ts": ^0.3.53 "@types/jest": ^26.0.15 babel-plugin-transform-vue-template: ^0.4.2