Use package-info (name/version only) for detectPackage (#2955)
* Use package-info (name/version only) for detectPackage * Fixed @polkadot/dev?
This commit is contained in:
@@ -3,8 +3,6 @@
|
||||
|
||||
import { detectPackage } from '@polkadot/util';
|
||||
|
||||
import packageJson from './package.json';
|
||||
import packageInfo from './package-info.json';
|
||||
|
||||
// FIXME This really should be `import(...).then(...)`, but need to check rejections
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
detectPackage(packageJson, typeof __dirname !== 'undefined' && __dirname);
|
||||
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname);
|
||||
|
||||
Reference in New Issue
Block a user