* Bump deps

* api detect
This commit is contained in:
Jaco Greeff
2020-01-28 17:40:57 +01:00
committed by GitHub
parent 1ee1d70d55
commit b2c84eb461
9 changed files with 49 additions and 33 deletions
+10 -2
View File
@@ -5,9 +5,17 @@
// NOTE When adding any types here, we need to update the documentation links as
// well - <root>/docs/SUMMARY.md as well as ../README.md
import { assertSingletonPackage } from '@polkadot/util';
import { detectPackage } from '@polkadot/util';
assertSingletonPackage('@polkadot/types');
let pkgJson;
try {
pkgJson = require('./package.json');
} catch (error) {
pkgJson = require('../package.json');
}
detectPackage(pkgJson);
export * from './codec';
export * from './index.types';