Add the github-linguist package
This commit only adds a single package and all of its transitive dependencies. The github-linguist package will be used for counting lines of code as a baseline for databases we are analyzing.
This commit is contained in:
parent
896b4ff181
commit
c4a84a93d4
152 changed files with 17057 additions and 24 deletions
29
node_modules/github-linguist/dist/utils.js
generated
vendored
Normal file
29
node_modules/github-linguist/dist/utils.js
generated
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ExtensionJustify = exports.getVersion = void 0;
|
||||
const fs_1 = __importDefault(require("fs"));
|
||||
const path_1 = __importDefault(require("path"));
|
||||
// @ts-ignore
|
||||
const slash2_1 = __importDefault(require("slash2"));
|
||||
const packagePath = slash2_1.default(path_1.default.join(__dirname, '../', 'package.json'));
|
||||
/**
|
||||
* Get package version.
|
||||
*
|
||||
* @export getVersion
|
||||
* @returns {string}
|
||||
*/
|
||||
function getVersion() {
|
||||
const packageInfo = JSON.parse(fs_1.default.readFileSync(packagePath, 'utf8'));
|
||||
return (packageInfo && packageInfo.version) || 'invalid version!';
|
||||
}
|
||||
exports.getVersion = getVersion;
|
||||
exports.ExtensionJustify = {
|
||||
'.ts': 'typescript',
|
||||
'.jsx': 'javascript',
|
||||
'.js': 'javascript',
|
||||
'.tsx': 'typescript',
|
||||
};
|
||||
//# sourceMappingURL=utils.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue