From 97116a3d8af7c09daa1ea8b9f902aa72874ebfda Mon Sep 17 00:00:00 2001 From: Jaco Date: Tue, 19 Dec 2023 10:50:28 +0200 Subject: [PATCH] Bump dev w/ packageDetect adjustments (#5775) --- package.json | 2 +- packages/api-augment/package.json | 4 +-- packages/api-augment/src/detectPackage.ts | 11 ------- packages/api-augment/src/index.ts | 2 +- .../src/{detectOther.ts => packageDetect.ts} | 8 ++++- packages/api-base/package.json | 4 +-- packages/api-base/src/detectOther.ts | 7 ----- packages/api-base/src/detectPackage.ts | 11 ------- packages/api-base/src/index.ts | 2 +- packages/api-base/src/packageDetect.ts | 13 ++++++++ packages/api-contract/package.json | 4 +-- packages/api-contract/src/detectOther.ts | 7 ----- packages/api-contract/src/index.ts | 2 +- .../{detectPackage.ts => packageDetect.ts} | 6 ++-- packages/api-derive/package.json | 4 +-- packages/api-derive/src/detectOther.ts | 6 ---- packages/api-derive/src/index.ts | 2 +- .../{detectPackage.ts => packageDetect.ts} | 4 +-- packages/api/package.json | 4 +-- packages/api/src/detectPackage.ts | 11 ------- packages/api/src/index.ts | 2 +- .../src/{detectOther.ts => packageDetect.ts} | 8 ++++- packages/rpc-augment/package.json | 4 +-- packages/rpc-augment/src/detectOther.ts | 7 ----- packages/rpc-augment/src/detectPackage.ts | 11 ------- packages/rpc-augment/src/index.ts | 2 +- packages/rpc-augment/src/packageDetect.ts | 13 ++++++++ packages/rpc-core/package.json | 4 +-- packages/rpc-core/src/detectOther.ts | 7 ----- packages/rpc-core/src/detectPackage.ts | 11 ------- packages/rpc-core/src/index.ts | 2 +- packages/rpc-core/src/packageDetect.ts | 13 ++++++++ packages/rpc-provider/package.json | 4 +-- packages/rpc-provider/src/detectOther.ts | 6 ---- packages/rpc-provider/src/index.ts | 2 +- .../{detectPackage.ts => packageDetect.ts} | 5 ++-- packages/typegen/package.json | 4 +-- packages/typegen/src/detectPackage.ts | 11 ------- packages/typegen/src/index.ts | 2 +- .../src/{detectOther.ts => packageDetect.ts} | 8 ++++- packages/types-augment/package.json | 4 +-- packages/types-augment/src/detectOther.ts | 7 ----- packages/types-augment/src/detectPackage.ts | 11 ------- packages/types-augment/src/index.ts | 2 +- packages/types-augment/src/packageDetect.ts | 13 ++++++++ packages/types-codec/package.json | 4 +-- packages/types-codec/src/detectOther.ts | 6 ---- packages/types-codec/src/index.ts | 2 +- .../{detectPackage.ts => packageDetect.ts} | 4 +-- packages/types-create/package.json | 4 +-- packages/types-create/src/detectOther.ts | 6 ---- packages/types-create/src/index.ts | 2 +- .../{detectPackage.ts => packageDetect.ts} | 5 ++-- packages/types-known/package.json | 4 +-- packages/types-known/src/detectOther.ts | 6 ---- packages/types-known/src/index.ts | 2 +- .../{detectPackage.ts => packageDetect.ts} | 5 ++-- packages/types-support/package.json | 4 +-- packages/types-support/src/detectOther.ts | 6 ---- packages/types-support/src/index.ts | 2 +- .../{detectPackage.ts => packageDetect.ts} | 4 +-- packages/types/package.json | 4 +-- packages/types/src/detectOther.ts | 7 ----- packages/types/src/detectPackage.ts | 11 ------- packages/types/src/index.ts | 2 +- packages/types/src/packageDetect.ts | 13 ++++++++ yarn.lock | 30 +++++++++---------- 67 files changed, 166 insertions(+), 244 deletions(-) delete mode 100644 packages/api-augment/src/detectPackage.ts rename packages/api-augment/src/{detectOther.ts => packageDetect.ts} (54%) delete mode 100644 packages/api-base/src/detectOther.ts delete mode 100644 packages/api-base/src/detectPackage.ts create mode 100644 packages/api-base/src/packageDetect.ts delete mode 100644 packages/api-contract/src/detectOther.ts rename packages/api-contract/src/{detectPackage.ts => packageDetect.ts} (50%) delete mode 100644 packages/api-derive/src/detectOther.ts rename packages/api-derive/src/{detectPackage.ts => packageDetect.ts} (72%) delete mode 100644 packages/api/src/detectPackage.ts rename packages/api/src/{detectOther.ts => packageDetect.ts} (61%) delete mode 100644 packages/rpc-augment/src/detectOther.ts delete mode 100644 packages/rpc-augment/src/detectPackage.ts create mode 100644 packages/rpc-augment/src/packageDetect.ts delete mode 100644 packages/rpc-core/src/detectOther.ts delete mode 100644 packages/rpc-core/src/detectPackage.ts create mode 100644 packages/rpc-core/src/packageDetect.ts delete mode 100644 packages/rpc-provider/src/detectOther.ts rename packages/rpc-provider/src/{detectPackage.ts => packageDetect.ts} (58%) delete mode 100644 packages/typegen/src/detectPackage.ts rename packages/typegen/src/{detectOther.ts => packageDetect.ts} (54%) delete mode 100644 packages/types-augment/src/detectOther.ts delete mode 100644 packages/types-augment/src/detectPackage.ts create mode 100644 packages/types-augment/src/packageDetect.ts delete mode 100644 packages/types-codec/src/detectOther.ts rename packages/types-codec/src/{detectPackage.ts => packageDetect.ts} (72%) delete mode 100644 packages/types-create/src/detectOther.ts rename packages/types-create/src/{detectPackage.ts => packageDetect.ts} (58%) delete mode 100644 packages/types-known/src/detectOther.ts rename packages/types-known/src/{detectPackage.ts => packageDetect.ts} (58%) delete mode 100644 packages/types-support/src/detectOther.ts rename packages/types-support/src/{detectPackage.ts => packageDetect.ts} (72%) delete mode 100644 packages/types/src/detectOther.ts delete mode 100644 packages/types/src/detectPackage.ts create mode 100644 packages/types/src/packageDetect.ts diff --git a/package.json b/package.json index 14bc9d1546..b612404429 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "test:one": "polkadot-dev-run-test --env node" }, "devDependencies": { - "@polkadot/dev": "^0.78.1", + "@polkadot/dev": "^0.78.3", "@polkadot/typegen": "workspace:packages/typegen", "@types/node": "^20.10.5" }, diff --git a/packages/api-augment/package.json b/packages/api-augment/package.json index b1501cb981..c767e655cc 100644 --- a/packages/api-augment/package.json +++ b/packages/api-augment/package.json @@ -14,8 +14,8 @@ "url": "https://github.com/polkadot-js/api.git" }, "sideEffects": [ - "./detectPackage.js", - "./detectPackage.cjs" + "./packageDetect.js", + "./packageDetect.cjs" ], "type": "module", "version": "10.11.2", diff --git a/packages/api-augment/src/detectPackage.ts b/packages/api-augment/src/detectPackage.ts deleted file mode 100644 index 02f6d07269..0000000000 --- a/packages/api-augment/src/detectPackage.ts +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright 2017-2023 @polkadot/api-augment authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -// Do not edit, auto-generated by @polkadot/dev - -import { detectPackage } from '@polkadot/util'; - -import others from './detectOther.js'; -import { packageInfo } from './packageInfo.js'; - -detectPackage(packageInfo, null, others); diff --git a/packages/api-augment/src/index.ts b/packages/api-augment/src/index.ts index 168550cd07..2ef26b9a27 100644 --- a/packages/api-augment/src/index.ts +++ b/packages/api-augment/src/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2023 @polkadot/api-augment authors & contributors // SPDX-License-Identifier: Apache-2.0 -import './detectPackage.js'; +import './packageDetect.js'; export * from './bundle.js'; diff --git a/packages/api-augment/src/detectOther.ts b/packages/api-augment/src/packageDetect.ts similarity index 54% rename from packages/api-augment/src/detectOther.ts rename to packages/api-augment/src/packageDetect.ts index 5e47d8c22a..5d5ae35b18 100644 --- a/packages/api-augment/src/detectOther.ts +++ b/packages/api-augment/src/packageDetect.ts @@ -1,8 +1,14 @@ // Copyright 2017-2023 @polkadot/api-augment authors & contributors // SPDX-License-Identifier: Apache-2.0 +// Do not edit, auto-generated by @polkadot/dev +// (packageInfo imports will be kept as-is, user-editable) + import { packageInfo as baseInfo } from '@polkadot/api-base/packageInfo'; import { packageInfo as typesInfo } from '@polkadot/types/packageInfo'; import { packageInfo as codecInfo } from '@polkadot/types-codec/packageInfo'; +import { detectPackage } from '@polkadot/util'; -export default [baseInfo, typesInfo, codecInfo]; +import { packageInfo } from './packageInfo.js'; + +detectPackage(packageInfo, null, [baseInfo, codecInfo, typesInfo]); diff --git a/packages/api-base/package.json b/packages/api-base/package.json index 3bf60d5aca..d43a2302eb 100644 --- a/packages/api-base/package.json +++ b/packages/api-base/package.json @@ -14,8 +14,8 @@ "url": "https://github.com/polkadot-js/api.git" }, "sideEffects": [ - "./detectPackage.js", - "./detectPackage.cjs" + "./packageDetect.js", + "./packageDetect.cjs" ], "type": "module", "version": "10.11.2", diff --git a/packages/api-base/src/detectOther.ts b/packages/api-base/src/detectOther.ts deleted file mode 100644 index 38d5afa8e5..0000000000 --- a/packages/api-base/src/detectOther.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Copyright 2017-2023 @polkadot/api-base authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import { packageInfo as rpcInfo } from '@polkadot/rpc-core/packageInfo'; -import { packageInfo as typesInfo } from '@polkadot/types/packageInfo'; - -export default [rpcInfo, typesInfo]; diff --git a/packages/api-base/src/detectPackage.ts b/packages/api-base/src/detectPackage.ts deleted file mode 100644 index 965ec00fc2..0000000000 --- a/packages/api-base/src/detectPackage.ts +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright 2017-2023 @polkadot/api-base authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -// Do not edit, auto-generated by @polkadot/dev - -import { detectPackage } from '@polkadot/util'; - -import others from './detectOther.js'; -import { packageInfo } from './packageInfo.js'; - -detectPackage(packageInfo, null, others); diff --git a/packages/api-base/src/index.ts b/packages/api-base/src/index.ts index 4c749b1696..97d4c5b23f 100644 --- a/packages/api-base/src/index.ts +++ b/packages/api-base/src/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2023 @polkadot/api-base authors & contributors // SPDX-License-Identifier: Apache-2.0 -import './detectPackage.js'; +import './packageDetect.js'; export * from './bundle.js'; diff --git a/packages/api-base/src/packageDetect.ts b/packages/api-base/src/packageDetect.ts new file mode 100644 index 0000000000..b4a48dc9b4 --- /dev/null +++ b/packages/api-base/src/packageDetect.ts @@ -0,0 +1,13 @@ +// Copyright 2017-2023 @polkadot/api-base authors & contributors +// SPDX-License-Identifier: Apache-2.0 + +// Do not edit, auto-generated by @polkadot/dev +// (packageInfo imports will be kept as-is, user-editable) + +import { packageInfo as rpcInfo } from '@polkadot/rpc-core/packageInfo'; +import { packageInfo as typesInfo } from '@polkadot/types/packageInfo'; +import { detectPackage } from '@polkadot/util'; + +import { packageInfo } from './packageInfo.js'; + +detectPackage(packageInfo, null, [rpcInfo, typesInfo]); diff --git a/packages/api-contract/package.json b/packages/api-contract/package.json index 1bd84d8b73..2c1afb9057 100644 --- a/packages/api-contract/package.json +++ b/packages/api-contract/package.json @@ -14,8 +14,8 @@ "url": "https://github.com/polkadot-js/api.git" }, "sideEffects": [ - "./detectPackage.js", - "./detectPackage.cjs" + "./packageDetect.js", + "./packageDetect.cjs" ], "type": "module", "version": "10.11.2", diff --git a/packages/api-contract/src/detectOther.ts b/packages/api-contract/src/detectOther.ts deleted file mode 100644 index bbeb92b5bd..0000000000 --- a/packages/api-contract/src/detectOther.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Copyright 2017-2023 @polkadot/api-contract authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import { packageInfo as apiInfo } from '@polkadot/api/packageInfo'; -import { packageInfo as typesInfo } from '@polkadot/types/packageInfo'; - -export default [apiInfo, typesInfo]; diff --git a/packages/api-contract/src/index.ts b/packages/api-contract/src/index.ts index d99938929e..020a92b85d 100644 --- a/packages/api-contract/src/index.ts +++ b/packages/api-contract/src/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2023 @polkadot/api-contract authors & contributors // SPDX-License-Identifier: Apache-2.0 -import './detectPackage.js'; +import './packageDetect.js'; export * from './bundle.js'; diff --git a/packages/api-contract/src/detectPackage.ts b/packages/api-contract/src/packageDetect.ts similarity index 50% rename from packages/api-contract/src/detectPackage.ts rename to packages/api-contract/src/packageDetect.ts index 7b7554aaf6..485012ac46 100644 --- a/packages/api-contract/src/detectPackage.ts +++ b/packages/api-contract/src/packageDetect.ts @@ -2,10 +2,12 @@ // SPDX-License-Identifier: Apache-2.0 // Do not edit, auto-generated by @polkadot/dev +// (packageInfo imports will be kept as-is, user-editable) +import { packageInfo as apiInfo } from '@polkadot/api/packageInfo'; +import { packageInfo as typesInfo } from '@polkadot/types/packageInfo'; import { detectPackage } from '@polkadot/util'; -import others from './detectOther.js'; import { packageInfo } from './packageInfo.js'; -detectPackage(packageInfo, null, others); +detectPackage(packageInfo, null, [apiInfo, typesInfo]); diff --git a/packages/api-derive/package.json b/packages/api-derive/package.json index 4955a8241c..b0b5d2e288 100644 --- a/packages/api-derive/package.json +++ b/packages/api-derive/package.json @@ -14,8 +14,8 @@ "url": "https://github.com/polkadot-js/api.git" }, "sideEffects": [ - "./detectPackage.js", - "./detectPackage.cjs" + "./packageDetect.js", + "./packageDetect.cjs" ], "type": "module", "version": "10.11.2", diff --git a/packages/api-derive/src/detectOther.ts b/packages/api-derive/src/detectOther.ts deleted file mode 100644 index ba5bc750de..0000000000 --- a/packages/api-derive/src/detectOther.ts +++ /dev/null @@ -1,6 +0,0 @@ -// Copyright 2017-2023 @polkadot/api-derive authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -// Empty template, auto-generated by @polkadot/dev - -export default []; diff --git a/packages/api-derive/src/index.ts b/packages/api-derive/src/index.ts index 0ee2cb4113..60a3bd718b 100644 --- a/packages/api-derive/src/index.ts +++ b/packages/api-derive/src/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2023 @polkadot/api-derive authors & contributors // SPDX-License-Identifier: Apache-2.0 -import './detectPackage.js'; +import './packageDetect.js'; export * from './bundle.js'; diff --git a/packages/api-derive/src/detectPackage.ts b/packages/api-derive/src/packageDetect.ts similarity index 72% rename from packages/api-derive/src/detectPackage.ts rename to packages/api-derive/src/packageDetect.ts index f18d4df44d..8e7ddf428e 100644 --- a/packages/api-derive/src/detectPackage.ts +++ b/packages/api-derive/src/packageDetect.ts @@ -2,10 +2,10 @@ // SPDX-License-Identifier: Apache-2.0 // Do not edit, auto-generated by @polkadot/dev +// (packageInfo imports will be kept as-is, user-editable) import { detectPackage } from '@polkadot/util'; -import others from './detectOther.js'; import { packageInfo } from './packageInfo.js'; -detectPackage(packageInfo, null, others); +detectPackage(packageInfo, null, []); diff --git a/packages/api/package.json b/packages/api/package.json index e7cd9d5552..19796260fd 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -14,8 +14,8 @@ "url": "https://github.com/polkadot-js/api.git" }, "sideEffects": [ - "./detectPackage.js", - "./detectPackage.cjs" + "./packageDetect.js", + "./packageDetect.cjs" ], "type": "module", "version": "10.11.2", diff --git a/packages/api/src/detectPackage.ts b/packages/api/src/detectPackage.ts deleted file mode 100644 index ef4b515188..0000000000 --- a/packages/api/src/detectPackage.ts +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright 2017-2023 @polkadot/api authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -// Do not edit, auto-generated by @polkadot/dev - -import { detectPackage } from '@polkadot/util'; - -import others from './detectOther.js'; -import { packageInfo } from './packageInfo.js'; - -detectPackage(packageInfo, null, others); diff --git a/packages/api/src/index.ts b/packages/api/src/index.ts index 7f8d67b863..fc10586ffb 100644 --- a/packages/api/src/index.ts +++ b/packages/api/src/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2023 @polkadot/api authors & contributors // SPDX-License-Identifier: Apache-2.0 -import './detectPackage.js'; +import './packageDetect.js'; export * from './bundle.js'; diff --git a/packages/api/src/detectOther.ts b/packages/api/src/packageDetect.ts similarity index 61% rename from packages/api/src/detectOther.ts rename to packages/api/src/packageDetect.ts index 6093a60078..252444b3ac 100644 --- a/packages/api/src/detectOther.ts +++ b/packages/api/src/packageDetect.ts @@ -1,10 +1,16 @@ // Copyright 2017-2023 @polkadot/api authors & contributors // SPDX-License-Identifier: Apache-2.0 +// Do not edit, auto-generated by @polkadot/dev +// (packageInfo imports will be kept as-is, user-editable) + import { packageInfo as deriveInfo } from '@polkadot/api-derive/packageInfo'; import { packageInfo as coreInfo } from '@polkadot/rpc-core/packageInfo'; import { packageInfo as providerInfo } from '@polkadot/rpc-provider/packageInfo'; import { packageInfo as typesInfo } from '@polkadot/types/packageInfo'; import { packageInfo as knownInfo } from '@polkadot/types-known/packageInfo'; +import { detectPackage } from '@polkadot/util'; -export default [deriveInfo, coreInfo, providerInfo, typesInfo, knownInfo]; +import { packageInfo } from './packageInfo.js'; + +detectPackage(packageInfo, null, [coreInfo, deriveInfo, knownInfo, providerInfo, typesInfo]); diff --git a/packages/rpc-augment/package.json b/packages/rpc-augment/package.json index ee34b84311..02ce067584 100644 --- a/packages/rpc-augment/package.json +++ b/packages/rpc-augment/package.json @@ -14,8 +14,8 @@ "url": "https://github.com/polkadot-js/api.git" }, "sideEffects": [ - "./detectPackage.js", - "./detectPackage.cjs" + "./packageDetect.js", + "./packageDetect.cjs" ], "type": "module", "version": "10.11.2", diff --git a/packages/rpc-augment/src/detectOther.ts b/packages/rpc-augment/src/detectOther.ts deleted file mode 100644 index 771cd37320..0000000000 --- a/packages/rpc-augment/src/detectOther.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Copyright 2017-2023 @polkadot/rpc-augment authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import { packageInfo as coreInfo } from '@polkadot/rpc-core/packageInfo'; -import { packageInfo as typesInfo } from '@polkadot/types/packageInfo'; - -export default [coreInfo, typesInfo]; diff --git a/packages/rpc-augment/src/detectPackage.ts b/packages/rpc-augment/src/detectPackage.ts deleted file mode 100644 index e510b2dac5..0000000000 --- a/packages/rpc-augment/src/detectPackage.ts +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright 2017-2023 @polkadot/rpc-augment authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -// Do not edit, auto-generated by @polkadot/dev - -import { detectPackage } from '@polkadot/util'; - -import others from './detectOther.js'; -import { packageInfo } from './packageInfo.js'; - -detectPackage(packageInfo, null, others); diff --git a/packages/rpc-augment/src/index.ts b/packages/rpc-augment/src/index.ts index ce890f6d46..c6b8949111 100644 --- a/packages/rpc-augment/src/index.ts +++ b/packages/rpc-augment/src/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2023 @polkadot/rpc-augment authors & contributors // SPDX-License-Identifier: Apache-2.0 -import './detectPackage.js'; +import './packageDetect.js'; export * from './bundle.js'; diff --git a/packages/rpc-augment/src/packageDetect.ts b/packages/rpc-augment/src/packageDetect.ts new file mode 100644 index 0000000000..75ab08d8d0 --- /dev/null +++ b/packages/rpc-augment/src/packageDetect.ts @@ -0,0 +1,13 @@ +// Copyright 2017-2023 @polkadot/rpc-augment authors & contributors +// SPDX-License-Identifier: Apache-2.0 + +// Do not edit, auto-generated by @polkadot/dev +// (packageInfo imports will be kept as-is, user-editable) + +import { packageInfo as coreInfo } from '@polkadot/rpc-core/packageInfo'; +import { packageInfo as typesInfo } from '@polkadot/types/packageInfo'; +import { detectPackage } from '@polkadot/util'; + +import { packageInfo } from './packageInfo.js'; + +detectPackage(packageInfo, null, [coreInfo, typesInfo]); diff --git a/packages/rpc-core/package.json b/packages/rpc-core/package.json index 7d0e45eb07..79d0a95054 100644 --- a/packages/rpc-core/package.json +++ b/packages/rpc-core/package.json @@ -14,8 +14,8 @@ "url": "https://github.com/polkadot-js/api.git" }, "sideEffects": [ - "./detectPackage.js", - "./detectPackage.cjs" + "./packageDetect.js", + "./packageDetect.cjs" ], "type": "module", "version": "10.11.2", diff --git a/packages/rpc-core/src/detectOther.ts b/packages/rpc-core/src/detectOther.ts deleted file mode 100644 index d1715639bd..0000000000 --- a/packages/rpc-core/src/detectOther.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Copyright 2017-2023 @polkadot/rpc-core authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import { packageInfo as providerInfo } from '@polkadot/rpc-provider/packageInfo'; -import { packageInfo as typesInfo } from '@polkadot/types/packageInfo'; - -export default [providerInfo, typesInfo]; diff --git a/packages/rpc-core/src/detectPackage.ts b/packages/rpc-core/src/detectPackage.ts deleted file mode 100644 index d224d2b32a..0000000000 --- a/packages/rpc-core/src/detectPackage.ts +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright 2017-2023 @polkadot/rpc-core authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -// Do not edit, auto-generated by @polkadot/dev - -import { detectPackage } from '@polkadot/util'; - -import others from './detectOther.js'; -import { packageInfo } from './packageInfo.js'; - -detectPackage(packageInfo, null, others); diff --git a/packages/rpc-core/src/index.ts b/packages/rpc-core/src/index.ts index 9c0889b005..8ef687afac 100644 --- a/packages/rpc-core/src/index.ts +++ b/packages/rpc-core/src/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2023 @polkadot/rpc-core authors & contributors // SPDX-License-Identifier: Apache-2.0 -import './detectPackage.js'; +import './packageDetect.js'; export * from './bundle.js'; diff --git a/packages/rpc-core/src/packageDetect.ts b/packages/rpc-core/src/packageDetect.ts new file mode 100644 index 0000000000..baa417c6e8 --- /dev/null +++ b/packages/rpc-core/src/packageDetect.ts @@ -0,0 +1,13 @@ +// Copyright 2017-2023 @polkadot/rpc-core authors & contributors +// SPDX-License-Identifier: Apache-2.0 + +// Do not edit, auto-generated by @polkadot/dev +// (packageInfo imports will be kept as-is, user-editable) + +import { packageInfo as providerInfo } from '@polkadot/rpc-provider/packageInfo'; +import { packageInfo as typesInfo } from '@polkadot/types/packageInfo'; +import { detectPackage } from '@polkadot/util'; + +import { packageInfo } from './packageInfo.js'; + +detectPackage(packageInfo, null, [providerInfo, typesInfo]); diff --git a/packages/rpc-provider/package.json b/packages/rpc-provider/package.json index 36a1858132..8e4dddc3a8 100644 --- a/packages/rpc-provider/package.json +++ b/packages/rpc-provider/package.json @@ -14,8 +14,8 @@ "url": "https://github.com/polkadot-js/api.git" }, "sideEffects": [ - "./detectPackage.js", - "./detectPackage.cjs" + "./packageDetect.js", + "./packageDetect.cjs" ], "type": "module", "version": "10.11.2", diff --git a/packages/rpc-provider/src/detectOther.ts b/packages/rpc-provider/src/detectOther.ts deleted file mode 100644 index b4b8f5b0d6..0000000000 --- a/packages/rpc-provider/src/detectOther.ts +++ /dev/null @@ -1,6 +0,0 @@ -// Copyright 2017-2023 @polkadot/rpc-provider authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import { packageInfo as typesInfo } from '@polkadot/types/packageInfo'; - -export default [typesInfo]; diff --git a/packages/rpc-provider/src/index.ts b/packages/rpc-provider/src/index.ts index 18fc7b615d..731646dcd2 100644 --- a/packages/rpc-provider/src/index.ts +++ b/packages/rpc-provider/src/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2023 @polkadot/rpc-provider authors & contributors // SPDX-License-Identifier: Apache-2.0 -import './detectPackage.js'; +import './packageDetect.js'; export * from './bundle.js'; diff --git a/packages/rpc-provider/src/detectPackage.ts b/packages/rpc-provider/src/packageDetect.ts similarity index 58% rename from packages/rpc-provider/src/detectPackage.ts rename to packages/rpc-provider/src/packageDetect.ts index 7b8db3373e..8848f24d92 100644 --- a/packages/rpc-provider/src/detectPackage.ts +++ b/packages/rpc-provider/src/packageDetect.ts @@ -2,10 +2,11 @@ // SPDX-License-Identifier: Apache-2.0 // Do not edit, auto-generated by @polkadot/dev +// (packageInfo imports will be kept as-is, user-editable) +import { packageInfo as typesInfo } from '@polkadot/types/packageInfo'; import { detectPackage } from '@polkadot/util'; -import others from './detectOther.js'; import { packageInfo } from './packageInfo.js'; -detectPackage(packageInfo, null, others); +detectPackage(packageInfo, null, [typesInfo]); diff --git a/packages/typegen/package.json b/packages/typegen/package.json index 74b1506378..2953bc79fe 100644 --- a/packages/typegen/package.json +++ b/packages/typegen/package.json @@ -14,8 +14,8 @@ "url": "https://github.com/polkadot-js/api.git" }, "sideEffects": [ - "./detectPackage.js", - "./detectPackage.cjs" + "./packageDetect.js", + "./packageDetect.cjs" ], "type": "module", "version": "10.11.2", diff --git a/packages/typegen/src/detectPackage.ts b/packages/typegen/src/detectPackage.ts deleted file mode 100644 index b8843b1b79..0000000000 --- a/packages/typegen/src/detectPackage.ts +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright 2017-2023 @polkadot/typegen authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -// Do not edit, auto-generated by @polkadot/dev - -import { detectPackage } from '@polkadot/util'; - -import others from './detectOther.js'; -import { packageInfo } from './packageInfo.js'; - -detectPackage(packageInfo, null, others); diff --git a/packages/typegen/src/index.ts b/packages/typegen/src/index.ts index e045f7570b..fb6007cee7 100644 --- a/packages/typegen/src/index.ts +++ b/packages/typegen/src/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2023 @polkadot/typegen authors & contributors // SPDX-License-Identifier: Apache-2.0 -import './detectPackage.js'; +import './packageDetect.js'; export * from './bundle.js'; diff --git a/packages/typegen/src/detectOther.ts b/packages/typegen/src/packageDetect.ts similarity index 54% rename from packages/typegen/src/detectOther.ts rename to packages/typegen/src/packageDetect.ts index 3f085a2bf5..b1942d0513 100644 --- a/packages/typegen/src/detectOther.ts +++ b/packages/typegen/src/packageDetect.ts @@ -1,8 +1,14 @@ // Copyright 2017-2023 @polkadot/typegen authors & contributors // SPDX-License-Identifier: Apache-2.0 +// Do not edit, auto-generated by @polkadot/dev +// (packageInfo imports will be kept as-is, user-editable) + import { packageInfo as apiInfo } from '@polkadot/api/packageInfo'; import { packageInfo as providerInfo } from '@polkadot/rpc-provider/packageInfo'; import { packageInfo as typesInfo } from '@polkadot/types/packageInfo'; +import { detectPackage } from '@polkadot/util'; -export default [apiInfo, providerInfo, typesInfo]; +import { packageInfo } from './packageInfo.js'; + +detectPackage(packageInfo, null, [apiInfo, providerInfo, typesInfo]); diff --git a/packages/types-augment/package.json b/packages/types-augment/package.json index 20b6c93f22..0a8d6783fd 100644 --- a/packages/types-augment/package.json +++ b/packages/types-augment/package.json @@ -14,8 +14,8 @@ "url": "https://github.com/polkadot-js/api.git" }, "sideEffects": [ - "./detectPackage.js", - "./detectPackage.cjs" + "./packageDetect.js", + "./packageDetect.cjs" ], "type": "module", "version": "10.11.2", diff --git a/packages/types-augment/src/detectOther.ts b/packages/types-augment/src/detectOther.ts deleted file mode 100644 index a112af684a..0000000000 --- a/packages/types-augment/src/detectOther.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Copyright 2017-2023 @polkadot/types-augment authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import { packageInfo as typesInfo } from '@polkadot/types/packageInfo'; -import { packageInfo as codecInfo } from '@polkadot/types-codec/packageInfo'; - -export default [typesInfo, codecInfo]; diff --git a/packages/types-augment/src/detectPackage.ts b/packages/types-augment/src/detectPackage.ts deleted file mode 100644 index b1c73daa7e..0000000000 --- a/packages/types-augment/src/detectPackage.ts +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright 2017-2023 @polkadot/types-augment authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -// Do not edit, auto-generated by @polkadot/dev - -import { detectPackage } from '@polkadot/util'; - -import others from './detectOther.js'; -import { packageInfo } from './packageInfo.js'; - -detectPackage(packageInfo, null, others); diff --git a/packages/types-augment/src/index.ts b/packages/types-augment/src/index.ts index a90cd0d41c..a37e227944 100644 --- a/packages/types-augment/src/index.ts +++ b/packages/types-augment/src/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2023 @polkadot/types-augment authors & contributors // SPDX-License-Identifier: Apache-2.0 -import './detectPackage.js'; +import './packageDetect.js'; export * from './bundle.js'; diff --git a/packages/types-augment/src/packageDetect.ts b/packages/types-augment/src/packageDetect.ts new file mode 100644 index 0000000000..d5494e359c --- /dev/null +++ b/packages/types-augment/src/packageDetect.ts @@ -0,0 +1,13 @@ +// Copyright 2017-2023 @polkadot/types-augment authors & contributors +// SPDX-License-Identifier: Apache-2.0 + +// Do not edit, auto-generated by @polkadot/dev +// (packageInfo imports will be kept as-is, user-editable) + +import { packageInfo as typesInfo } from '@polkadot/types/packageInfo'; +import { packageInfo as codecInfo } from '@polkadot/types-codec/packageInfo'; +import { detectPackage } from '@polkadot/util'; + +import { packageInfo } from './packageInfo.js'; + +detectPackage(packageInfo, null, [codecInfo, typesInfo]); diff --git a/packages/types-codec/package.json b/packages/types-codec/package.json index 97b186736e..42d2ce7224 100644 --- a/packages/types-codec/package.json +++ b/packages/types-codec/package.json @@ -14,8 +14,8 @@ "url": "https://github.com/polkadot-js/api.git" }, "sideEffects": [ - "./detectPackage.js", - "./detectPackage.cjs" + "./packageDetect.js", + "./packageDetect.cjs" ], "type": "module", "version": "10.11.2", diff --git a/packages/types-codec/src/detectOther.ts b/packages/types-codec/src/detectOther.ts deleted file mode 100644 index 5b176802dd..0000000000 --- a/packages/types-codec/src/detectOther.ts +++ /dev/null @@ -1,6 +0,0 @@ -// Copyright 2017-2023 @polkadot/types-codec authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -// Empty template, auto-generated by @polkadot/dev - -export default []; diff --git a/packages/types-codec/src/index.ts b/packages/types-codec/src/index.ts index 5fc10812fb..16c835f855 100644 --- a/packages/types-codec/src/index.ts +++ b/packages/types-codec/src/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors // SPDX-License-Identifier: Apache-2.0 -import './detectPackage.js'; +import './packageDetect.js'; export * from './bundle.js'; diff --git a/packages/types-codec/src/detectPackage.ts b/packages/types-codec/src/packageDetect.ts similarity index 72% rename from packages/types-codec/src/detectPackage.ts rename to packages/types-codec/src/packageDetect.ts index f970158c7e..f44be49b1a 100644 --- a/packages/types-codec/src/detectPackage.ts +++ b/packages/types-codec/src/packageDetect.ts @@ -2,10 +2,10 @@ // SPDX-License-Identifier: Apache-2.0 // Do not edit, auto-generated by @polkadot/dev +// (packageInfo imports will be kept as-is, user-editable) import { detectPackage } from '@polkadot/util'; -import others from './detectOther.js'; import { packageInfo } from './packageInfo.js'; -detectPackage(packageInfo, null, others); +detectPackage(packageInfo, null, []); diff --git a/packages/types-create/package.json b/packages/types-create/package.json index 314e7105af..f2b50895fc 100644 --- a/packages/types-create/package.json +++ b/packages/types-create/package.json @@ -14,8 +14,8 @@ "url": "https://github.com/polkadot-js/api.git" }, "sideEffects": [ - "./detectPackage.js", - "./detectPackage.cjs" + "./packageDetect.js", + "./packageDetect.cjs" ], "type": "module", "version": "10.11.2", diff --git a/packages/types-create/src/detectOther.ts b/packages/types-create/src/detectOther.ts deleted file mode 100644 index 06f57ac453..0000000000 --- a/packages/types-create/src/detectOther.ts +++ /dev/null @@ -1,6 +0,0 @@ -// Copyright 2017-2023 @polkadot/types-create authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import { packageInfo as codecInfo } from '@polkadot/types-codec/packageInfo'; - -export default [codecInfo]; diff --git a/packages/types-create/src/index.ts b/packages/types-create/src/index.ts index 9ac248a7ba..0100ccf0d9 100644 --- a/packages/types-create/src/index.ts +++ b/packages/types-create/src/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2023 @polkadot/types-create authors & contributors // SPDX-License-Identifier: Apache-2.0 -import './detectPackage.js'; +import './packageDetect.js'; export * from './bundle.js'; diff --git a/packages/types-create/src/detectPackage.ts b/packages/types-create/src/packageDetect.ts similarity index 58% rename from packages/types-create/src/detectPackage.ts rename to packages/types-create/src/packageDetect.ts index 072d43eb9d..c0819a1e2d 100644 --- a/packages/types-create/src/detectPackage.ts +++ b/packages/types-create/src/packageDetect.ts @@ -2,10 +2,11 @@ // SPDX-License-Identifier: Apache-2.0 // Do not edit, auto-generated by @polkadot/dev +// (packageInfo imports will be kept as-is, user-editable) +import { packageInfo as codecInfo } from '@polkadot/types-codec/packageInfo'; import { detectPackage } from '@polkadot/util'; -import others from './detectOther.js'; import { packageInfo } from './packageInfo.js'; -detectPackage(packageInfo, null, others); +detectPackage(packageInfo, null, [codecInfo]); diff --git a/packages/types-known/package.json b/packages/types-known/package.json index 6b161651f7..7f7832bf13 100644 --- a/packages/types-known/package.json +++ b/packages/types-known/package.json @@ -14,8 +14,8 @@ "url": "https://github.com/polkadot-js/api.git" }, "sideEffects": [ - "./detectPackage.js", - "./detectPackage.cjs" + "./packageDetect.js", + "./packageDetect.cjs" ], "type": "module", "version": "10.11.2", diff --git a/packages/types-known/src/detectOther.ts b/packages/types-known/src/detectOther.ts deleted file mode 100644 index 7fc000b2a0..0000000000 --- a/packages/types-known/src/detectOther.ts +++ /dev/null @@ -1,6 +0,0 @@ -// Copyright 2017-2023 @polkadot/types-known authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import { packageInfo as typesInfo } from '@polkadot/types/packageInfo'; - -export default [typesInfo]; diff --git a/packages/types-known/src/index.ts b/packages/types-known/src/index.ts index f8852ee7be..59cf86359f 100644 --- a/packages/types-known/src/index.ts +++ b/packages/types-known/src/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2023 @polkadot/types-known authors & contributors // SPDX-License-Identifier: Apache-2.0 -import './detectPackage.js'; +import './packageDetect.js'; export * from './bundle.js'; diff --git a/packages/types-known/src/detectPackage.ts b/packages/types-known/src/packageDetect.ts similarity index 58% rename from packages/types-known/src/detectPackage.ts rename to packages/types-known/src/packageDetect.ts index d1fc21df9e..43abb3a634 100644 --- a/packages/types-known/src/detectPackage.ts +++ b/packages/types-known/src/packageDetect.ts @@ -2,10 +2,11 @@ // SPDX-License-Identifier: Apache-2.0 // Do not edit, auto-generated by @polkadot/dev +// (packageInfo imports will be kept as-is, user-editable) +import { packageInfo as typesInfo } from '@polkadot/types/packageInfo'; import { detectPackage } from '@polkadot/util'; -import others from './detectOther.js'; import { packageInfo } from './packageInfo.js'; -detectPackage(packageInfo, null, others); +detectPackage(packageInfo, null, [typesInfo]); diff --git a/packages/types-support/package.json b/packages/types-support/package.json index 7d5f4972f1..bf1f4b7e74 100644 --- a/packages/types-support/package.json +++ b/packages/types-support/package.json @@ -14,8 +14,8 @@ "url": "https://github.com/polkadot-js/api.git" }, "sideEffects": [ - "./detectPackage.js", - "./detectPackage.cjs" + "./packageDetect.js", + "./packageDetect.cjs" ], "type": "module", "version": "10.11.2", diff --git a/packages/types-support/src/detectOther.ts b/packages/types-support/src/detectOther.ts deleted file mode 100644 index fa82d05cac..0000000000 --- a/packages/types-support/src/detectOther.ts +++ /dev/null @@ -1,6 +0,0 @@ -// Copyright 2017-2023 @polkadot/types-support authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -// Empty template, auto-generated by @polkadot/dev - -export default []; diff --git a/packages/types-support/src/index.ts b/packages/types-support/src/index.ts index 1fdbd49d38..2216a7d172 100644 --- a/packages/types-support/src/index.ts +++ b/packages/types-support/src/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2023 @polkadot/types-support authors & contributors // SPDX-License-Identifier: Apache-2.0 -import './detectPackage.js'; +import './packageDetect.js'; export { packageInfo } from './packageInfo.js'; diff --git a/packages/types-support/src/detectPackage.ts b/packages/types-support/src/packageDetect.ts similarity index 72% rename from packages/types-support/src/detectPackage.ts rename to packages/types-support/src/packageDetect.ts index 6a70c8dae3..340c25e2c0 100644 --- a/packages/types-support/src/detectPackage.ts +++ b/packages/types-support/src/packageDetect.ts @@ -2,10 +2,10 @@ // SPDX-License-Identifier: Apache-2.0 // Do not edit, auto-generated by @polkadot/dev +// (packageInfo imports will be kept as-is, user-editable) import { detectPackage } from '@polkadot/util'; -import others from './detectOther.js'; import { packageInfo } from './packageInfo.js'; -detectPackage(packageInfo, null, others); +detectPackage(packageInfo, null, []); diff --git a/packages/types/package.json b/packages/types/package.json index 38c0d783eb..1d5deb8d02 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -14,8 +14,8 @@ "url": "https://github.com/polkadot-js/api.git" }, "sideEffects": [ - "./detectPackage.js", - "./detectPackage.cjs" + "./packageDetect.js", + "./packageDetect.cjs" ], "type": "module", "version": "10.11.2", diff --git a/packages/types/src/detectOther.ts b/packages/types/src/detectOther.ts deleted file mode 100644 index 2c8e9131bd..0000000000 --- a/packages/types/src/detectOther.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Copyright 2017-2023 @polkadot/types authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -import { packageInfo as codecInfo } from '@polkadot/types-codec/packageInfo'; -import { packageInfo as createInfo } from '@polkadot/types-create/packageInfo'; - -export default [codecInfo, createInfo]; diff --git a/packages/types/src/detectPackage.ts b/packages/types/src/detectPackage.ts deleted file mode 100644 index b0bbd981d6..0000000000 --- a/packages/types/src/detectPackage.ts +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright 2017-2023 @polkadot/types authors & contributors -// SPDX-License-Identifier: Apache-2.0 - -// Do not edit, auto-generated by @polkadot/dev - -import { detectPackage } from '@polkadot/util'; - -import others from './detectOther.js'; -import { packageInfo } from './packageInfo.js'; - -detectPackage(packageInfo, null, others); diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index 893cb58230..731a191bc5 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -1,6 +1,6 @@ // Copyright 2017-2023 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -import './detectPackage.js'; +import './packageDetect.js'; export * from './bundle.js'; diff --git a/packages/types/src/packageDetect.ts b/packages/types/src/packageDetect.ts new file mode 100644 index 0000000000..9fc1924ac5 --- /dev/null +++ b/packages/types/src/packageDetect.ts @@ -0,0 +1,13 @@ +// Copyright 2017-2023 @polkadot/types authors & contributors +// SPDX-License-Identifier: Apache-2.0 + +// Do not edit, auto-generated by @polkadot/dev +// (packageInfo imports will be kept as-is, user-editable) + +import { packageInfo as codecInfo } from '@polkadot/types-codec/packageInfo'; +import { packageInfo as createInfo } from '@polkadot/types-create/packageInfo'; +import { detectPackage } from '@polkadot/util'; + +import { packageInfo } from './packageInfo.js'; + +detectPackage(packageInfo, null, [codecInfo, createInfo]); diff --git a/yarn.lock b/yarn.lock index 6e18201db3..4d2c55c46c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -468,34 +468,34 @@ __metadata: languageName: unknown linkType: soft -"@polkadot/dev-test@npm:^0.78.1": - version: 0.78.1 - resolution: "@polkadot/dev-test@npm:0.78.1" +"@polkadot/dev-test@npm:^0.78.3": + version: 0.78.3 + resolution: "@polkadot/dev-test@npm:0.78.3" dependencies: jsdom: "npm:^23.0.1" tslib: "npm:^2.6.2" - checksum: 5ead8120872943af282f53f7c319787f87961dad324280de136447bc07c85b59c31657da0ff8699d0dd26fd2dd8e0bba3a87ae0097473e1eeb97f20a52ef564e + checksum: 8ea03f6bcb1216f309627ad97eac75509e0fd1907b693bbf28f87a435606aba445268d4232bb21891182af946d11f5d5011717a30227ab7a02ededf01d8c223e languageName: node linkType: hard -"@polkadot/dev-ts@npm:^0.78.1": - version: 0.78.1 - resolution: "@polkadot/dev-ts@npm:0.78.1" +"@polkadot/dev-ts@npm:^0.78.3": + version: 0.78.3 + resolution: "@polkadot/dev-ts@npm:0.78.3" dependencies: json5: "npm:^2.2.3" tslib: "npm:^2.6.2" typescript: "npm:^5.3.3" - checksum: 1b965ac9d842e049b732240a52f714791416a405341901545e1b5069211deec5940267a61e35d868ad693fe503b06db093f869b6b42a3dad0d40848820a6dd79 + checksum: f99a4fd13808ef4dc7bca8582353b361fbbcfae0aacc964ba0e2706acf92bbf0cd9694dedb169e6fba0280c71d7d5b50a9e0315c47bb3a95be0343fa5da33432 languageName: node linkType: hard -"@polkadot/dev@npm:^0.78.1": - version: 0.78.1 - resolution: "@polkadot/dev@npm:0.78.1" +"@polkadot/dev@npm:^0.78.3": + version: 0.78.3 + resolution: "@polkadot/dev@npm:0.78.3" dependencies: "@eslint/js": "npm:^8.56.0" - "@polkadot/dev-test": "npm:^0.78.1" - "@polkadot/dev-ts": "npm:^0.78.1" + "@polkadot/dev-test": "npm:^0.78.3" + "@polkadot/dev-ts": "npm:^0.78.3" "@rollup/plugin-alias": "npm:^5.1.0" "@rollup/plugin-commonjs": "npm:^25.0.7" "@rollup/plugin-dynamic-import-vars": "npm:^2.1.2" @@ -560,7 +560,7 @@ __metadata: polkadot-exec-rollup: scripts/polkadot-exec-rollup.mjs polkadot-exec-tsc: scripts/polkadot-exec-tsc.mjs polkadot-exec-webpack: scripts/polkadot-exec-webpack.mjs - checksum: 95c9c4e94fb62ca8041a73283d16165cfc09da8fa4beb3051af45141f6f0d0c51373f2ce8c84eace0939119c128525df39df94a32a8d6b66e32a2fe6a9c659f6 + checksum: 0c4a0330f3505e3c0bd75686a6b1f9220a58ac21b458ef05bdbc7e83fbd0c5d7107d8c518d542eb05108d000b5aca46c6a1380e258018ddba5912cc7479b3de3 languageName: node linkType: hard @@ -7839,7 +7839,7 @@ __metadata: version: 0.0.0-use.local resolution: "root-workspace-0b6124@workspace:." dependencies: - "@polkadot/dev": "npm:^0.78.1" + "@polkadot/dev": "npm:^0.78.3" "@polkadot/typegen": "workspace:packages/typegen" "@types/node": "npm:^20.10.5" languageName: unknown