Adjust packages with known dependencies (#4356)
This commit is contained in:
@@ -25,7 +25,9 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.16.5",
|
||||
"@polkadot/api-base": "6.12.2-21",
|
||||
"@polkadot/rpc-augment": "6.12.2-21",
|
||||
"@polkadot/types": "6.12.2-21",
|
||||
"@polkadot/types-augment": "6.12.2-21",
|
||||
"@polkadot/types-codec": "6.12.2-21"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
// Copyright 2017-2021 @polkadot/api-augment authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import '@polkadot/types-augment';
|
||||
@@ -1,8 +1,10 @@
|
||||
// Copyright 2017-2021 @polkadot/api-augment authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// for the API, we decorate not only the endpoints, but all types
|
||||
import '@polkadot/rpc-augment';
|
||||
import '@polkadot/types-augment';
|
||||
// the augmentated types (on top of @polkadot/api-base)
|
||||
import './consts';
|
||||
import './errors';
|
||||
import './events';
|
||||
|
||||
@@ -3,8 +3,9 @@
|
||||
|
||||
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';
|
||||
|
||||
import { packageInfo } from './packageInfo';
|
||||
|
||||
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [baseInfo, typesInfo]);
|
||||
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [baseInfo, typesInfo, codecInfo]);
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
"references": [
|
||||
{ "path": "../api-base" },
|
||||
{ "path": "../rpc-augment" },
|
||||
{ "path": "../rpc-core" },
|
||||
{ "path": "../types" },
|
||||
{ "path": "../types-codec" },
|
||||
{ "path": "../types-augment" }
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user