Update detectPackage to use packgeInfo.ts (#3182)

This commit is contained in:
Jaco Greeff
2021-02-16 12:50:45 +01:00
committed by GitHub
parent 502c6a3451
commit d77d686c76
23 changed files with 374 additions and 312 deletions
+3 -3
View File
@@ -18,11 +18,11 @@
"@babel/runtime": "^7.12.13",
"@polkadot/types": "3.9.3",
"@polkadot/types-known": "3.9.3",
"@polkadot/util": "^5.6.2",
"@polkadot/util-crypto": "^5.6.2",
"@polkadot/util": "^5.6.3",
"@polkadot/util-crypto": "^5.6.3",
"bn.js": "^4.11.9"
},
"devDependencies": {
"@polkadot/keyring": "^5.6.2"
"@polkadot/keyring": "^5.6.3"
}
}
+1 -1
View File
@@ -18,7 +18,7 @@
import { detectPackage } from '@polkadot/util';
import packageInfo from './package-info.json';
import { packageInfo } from './packageInfo';
detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname);
+6
View File
@@ -0,0 +1,6 @@
// Copyright 2017-2021 @polkadot/dev authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Auto-generated by @polkadot/dev, do not edit
export const packageInfo = { name: '@polkadot/metadata', version: '3.9.3' };