From 66841bba8850b6aa1e06adf07c5ddea1b79f1d76 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Mon, 9 Nov 2020 16:28:42 +0100 Subject: [PATCH] Build esnext outputs (#760) --- babel.esnext.js | 4 ++++ package.json | 2 +- packages/keyring/package.json | 2 ++ packages/networks/package.json | 2 ++ packages/util-crypto/package.json | 2 ++ packages/util/package.json | 2 ++ yarn.lock | 10 +++++----- 7 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 babel.esnext.js diff --git a/babel.esnext.js b/babel.esnext.js new file mode 100644 index 000000000..b1a137667 --- /dev/null +++ b/babel.esnext.js @@ -0,0 +1,4 @@ +// Copyright 2017-2020 @polkadot/util 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 38e2281a3..6ea4edf23 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ }, "devDependencies": { "@babel/core": "^7.12.3", - "@polkadot/dev": "^0.59.20", + "@polkadot/dev": "^0.59.21", "@polkadot/ts": "^0.3.53", "@types/jest": "^26.0.15" }, diff --git a/packages/keyring/package.json b/packages/keyring/package.json index 689b828b6..8b363a3a9 100644 --- a/packages/keyring/package.json +++ b/packages/keyring/package.json @@ -3,6 +3,8 @@ "version": "4.0.2-4", "description": "Keyring management", "main": "index.js", + "module": "esnext/index.js", + "sideEffects": false, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org" diff --git a/packages/networks/package.json b/packages/networks/package.json index c55c8d37a..732159b97 100644 --- a/packages/networks/package.json +++ b/packages/networks/package.json @@ -3,6 +3,8 @@ "version": "4.0.2-4", "description": "A list of all available Substrate networks and their applicable prefixes", "main": "index.js", + "module": "esnext/index.js", + "sideEffects": false, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org" diff --git a/packages/util-crypto/package.json b/packages/util-crypto/package.json index bcd6b92fb..4268068d2 100644 --- a/packages/util-crypto/package.json +++ b/packages/util-crypto/package.json @@ -3,6 +3,8 @@ "version": "4.0.2-4", "description": "A collection of useful crypto utilities for @polkadot", "main": "index.js", + "module": "esnext/index.js", + "sideEffects": false, "keywords": [ "Polkadot" ], diff --git a/packages/util/package.json b/packages/util/package.json index 31a8bcdf2..5913b40e1 100644 --- a/packages/util/package.json +++ b/packages/util/package.json @@ -3,6 +3,8 @@ "version": "4.0.2-4", "description": "A collection of useful utilities for @polkadot", "main": "index.js", + "module": "esnext/index.js", + "sideEffects": false, "keywords": [ "Polkadot" ], diff --git a/yarn.lock b/yarn.lock index 0106e9057..20a471877 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1733,9 +1733,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 @@ -1821,7 +1821,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 @@ -9091,7 +9091,7 @@ fsevents@^1.2.7: resolution: "root-workspace-0b6124@workspace:." dependencies: "@babel/core": ^7.12.3 - "@polkadot/dev": ^0.59.20 + "@polkadot/dev": ^0.59.21 "@polkadot/ts": ^0.3.53 "@types/jest": ^26.0.15 languageName: unknown