2 Star 1 Fork 55

nieyuyang/GitKraken

forked from 信守斩龙/GitKraken 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
global.ts 470 Bytes
一键复制 编辑 原始数据 按行查看 历史
马3进4 提交于 2022-02-24 10:46 . 存档
/// <reference path="./types/index.d.ts" />
import * as path from "path";
import * as fs from "fs-extra";
import * as pkgDir from "pkg-dir";
/**
* Base directory with package.json
*/
export const baseDir = pkgDir.sync(__dirname) as string;
/**
* package.json
*/
export const packageJson: {
author: string;
description: string;
homepage: string;
license: string;
name: string;
version: string;
} = fs.readJSONSync(path.join(baseDir, "package.json"));
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/nieyuyang/GitKraken.git
git@gitee.com:nieyuyang/GitKraken.git
nieyuyang
GitKraken
GitKraken
master

搜索帮助