dist/utils.js
function pkg(val) {
    var filename = path_1.resolve(exports.cwd, 'package.json');
    if (!val)
        return _pkg || (_pkg = fs_extra_1.readJSONSync(filename));
    fs_extra_1.writeJSONSync(filename, val, { spaces: 2 });
}
function pkg(val) {
    var filename = path_1.resolve(exports.cwd, 'package.json');
    if (!val)
        return _pkg || (_pkg = fs_extra_1.readJSONSync(filename));
    fs_extra_1.writeJSONSync(filename, val, { spaces: 2 });
}
function pkg ( val ) { var filename = path_1 . resolve ( exports . cwd , 'package.json' ) ; if ( ! val ) return _pkg || ( _pkg = fs_extra_1 . readJSONSync ( filename ) ) ; fs_extra_1 . writeJSONSync ( filename , val , { spaces : 2 } ) ; }
Pkg
Loads the package.json file for project or saves package.json.

@param val the package.json object to be written to file.
Pkg Loads the package . json file for project or saves package . json .