Bump common (detection) (#1799)
This commit is contained in:
@@ -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