mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
I made a mistake in my original PR https://github.com/DefinitelyTyped/DefinitelyTyped/pull/21578 The function should return a promise. - https://www.npmjs.com/package/package-json - https://github.com/sindresorhus/package-json/blob/master/index.js#L30
11 lines
191 B
TypeScript
11 lines
191 B
TypeScript
import packageJson = require('package-json');
|
|
|
|
let pkg: {};
|
|
packageJson('package-json', {
|
|
version: '1.2.3',
|
|
fullMetadata: true,
|
|
allVersions: true,
|
|
}).then(x => {
|
|
pkg = x;
|
|
});
|