Bump common (detection) (#1799)
This commit is contained in:
@@ -35,13 +35,13 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.8.3",
|
||||
"@polkadot/metadata": "^1.1.0-beta.13",
|
||||
"@polkadot/util": "^2.0.1",
|
||||
"@polkadot/util-crypto": "^2.0.1",
|
||||
"@polkadot/util": "^2.1.0-beta.0",
|
||||
"@polkadot/util-crypto": "^2.1.0-beta.0",
|
||||
"memoizee": "^0.4.14",
|
||||
"yargs": "^15.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^2.0.1",
|
||||
"@polkadot/keyring": "^2.1.0-beta.0",
|
||||
"@types/memoizee": "^0.4.3",
|
||||
"@types/yargs": "^15.0.2"
|
||||
}
|
||||
|
||||
@@ -7,15 +7,22 @@
|
||||
|
||||
import { detectPackage } from '@polkadot/util';
|
||||
|
||||
let dirname = 'node_modules';
|
||||
let pkgJson;
|
||||
|
||||
try {
|
||||
dirname = __dirname;
|
||||
} catch (error) {
|
||||
// ignore
|
||||
}
|
||||
|
||||
try {
|
||||
pkgJson = require('./package.json');
|
||||
} catch (error) {
|
||||
pkgJson = require('../package.json');
|
||||
}
|
||||
|
||||
detectPackage(pkgJson);
|
||||
detectPackage(dirname, pkgJson);
|
||||
|
||||
export * from './codec';
|
||||
export * from './index.types';
|
||||
|
||||
Reference in New Issue
Block a user