Adjust packages with known dependencies (#4356)
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user