@eclipse-glsp/cli
Advanced tools
Comparing version 2.3.0-next.172 to 2.3.0-next.173
@@ -18,19 +18,9 @@ "use strict"; | ||
}); | ||
var __importStar = (this && this.__importStar) || (function () { | ||
var ownKeys = function(o) { | ||
ownKeys = Object.getOwnPropertyNames || function (o) { | ||
var ar = []; | ||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||
return ar; | ||
}; | ||
return ownKeys(o); | ||
}; | ||
return function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
})(); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -40,5 +30,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CheckHeaderCommand = void 0; | ||
exports.checkHeaders = checkHeaders; | ||
exports.handleValidationResults = handleValidationResults; | ||
exports.handleValidationResults = exports.checkHeaders = exports.CheckHeaderCommand = void 0; | ||
/******************************************************************************** | ||
@@ -105,2 +93,3 @@ * Copyright (c) 2022-2024 EclipseSource and others. | ||
} | ||
exports.checkHeaders = checkHeaders; | ||
function getFiles(rootDir, options) { | ||
@@ -212,2 +201,3 @@ const includePattern = `**/*.@(${options.fileExtensions.join('|')})`; | ||
} | ||
exports.handleValidationResults = handleValidationResults; | ||
function toPrintMessage(result) { | ||
@@ -214,0 +204,0 @@ const error = '\x1b[31m'; |
@@ -33,19 +33,9 @@ "use strict"; | ||
}); | ||
var __importStar = (this && this.__importStar) || (function () { | ||
var ownKeys = function(o) { | ||
ownKeys = Object.getOwnPropertyNames || function (o) { | ||
var ar = []; | ||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||
return ar; | ||
}; | ||
return ownKeys(o); | ||
}; | ||
return function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
})(); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -55,6 +45,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CoverageReportCommand = void 0; | ||
exports.generateCoverageReport = generateCoverageReport; | ||
exports.validateAndRetrievePackages = validateAndRetrievePackages; | ||
exports.collectPackageReportFiles = collectPackageReportFiles; | ||
exports.collectPackageReportFiles = exports.validateAndRetrievePackages = exports.generateCoverageReport = exports.CoverageReportCommand = void 0; | ||
const fs = __importStar(require("fs")); | ||
@@ -85,2 +72,3 @@ const path = __importStar(require("path")); | ||
} | ||
exports.generateCoverageReport = generateCoverageReport; | ||
function validateAndRetrievePackages(options) { | ||
@@ -102,2 +90,3 @@ var _a; | ||
} | ||
exports.validateAndRetrievePackages = validateAndRetrievePackages; | ||
function collectPackageReportFiles(packages, options) { | ||
@@ -115,2 +104,3 @@ logger_1.LOGGER.info('Create combined report'); | ||
} | ||
exports.collectPackageReportFiles = collectPackageReportFiles; | ||
function combineReports(reportFiles, options) { | ||
@@ -117,0 +107,0 @@ // Copy coverage into root/.nyc_output |
@@ -33,19 +33,9 @@ "use strict"; | ||
}); | ||
var __importStar = (this && this.__importStar) || (function () { | ||
var ownKeys = function(o) { | ||
ownKeys = Object.getOwnPropertyNames || function (o) { | ||
var ar = []; | ||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||
return ar; | ||
}; | ||
return ownKeys(o); | ||
}; | ||
return function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
})(); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -55,15 +45,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.GenerateIndex = void 0; | ||
exports.generateIndices = generateIndices; | ||
exports.generateIndex = generateIndex; | ||
exports.isDirectChild = isDirectChild; | ||
exports.isDirectory = isDirectory; | ||
exports.isFile = isFile; | ||
exports.getLevel = getLevel; | ||
exports.isChild = isChild; | ||
exports.isChildDirectory = isChildDirectory; | ||
exports.isChildFile = isChildFile; | ||
exports.writeIndex = writeIndex; | ||
exports.createExport = createExport; | ||
exports.extractReusableContent = extractReusableContent; | ||
exports.extractReusableContent = exports.createExport = exports.writeIndex = exports.isChildFile = exports.isChildDirectory = exports.isChild = exports.getLevel = exports.isFile = exports.isDirectory = exports.isDirectChild = exports.generateIndex = exports.generateIndices = exports.GenerateIndex = void 0; | ||
const commander_1 = require("commander"); | ||
@@ -95,2 +73,3 @@ const fs = __importStar(require("fs")); | ||
} | ||
exports.generateIndices = generateIndices; | ||
async function generateIndex(rootDir, ignoreFilter, options) { | ||
@@ -129,23 +108,31 @@ (0, logger_1.configureLogger)(options.verbose); | ||
} | ||
exports.generateIndex = generateIndex; | ||
function isDirectChild(parent, child, childHasChildren) { | ||
return isChildFile(parent, child) || (isChildDirectory(parent, child) && childHasChildren()); | ||
} | ||
exports.isDirectChild = isDirectChild; | ||
function isDirectory(file) { | ||
return file.endsWith('/'); | ||
} | ||
exports.isDirectory = isDirectory; | ||
function isFile(file) { | ||
return !isDirectory(file); | ||
} | ||
exports.isFile = isFile; | ||
function getLevel(file) { | ||
return file.split('/').length; | ||
} | ||
exports.getLevel = getLevel; | ||
function isChild(parent, child) { | ||
return child.startsWith(parent); | ||
} | ||
exports.isChild = isChild; | ||
function isChildDirectory(parent, child) { | ||
return isDirectory(child) && isChild(parent, child) && getLevel(child) === getLevel(parent) + 1; | ||
} | ||
exports.isChildDirectory = isChildDirectory; | ||
function isChildFile(parent, child) { | ||
return isFile(child) && isChild(parent, child) && getLevel(child) === getLevel(parent); | ||
} | ||
exports.isChildFile = isChildFile; | ||
function writeIndex(directory, exports, options) { | ||
@@ -172,2 +159,3 @@ const indexFile = path.join(process.cwd(), directory, 'index.ts'); | ||
} | ||
exports.writeIndex = writeIndex; | ||
function createExport(directory, relativePath, options) { | ||
@@ -182,2 +170,3 @@ // remove directory prefix, file extension and directory ending '/' | ||
} | ||
exports.createExport = createExport; | ||
function extractReusableContent(fileContent) { | ||
@@ -188,2 +177,3 @@ var _a, _b; | ||
} | ||
exports.extractReusableContent = extractReusableContent; | ||
//# sourceMappingURL=generate-index.js.map |
@@ -33,19 +33,9 @@ "use strict"; | ||
}); | ||
var __importStar = (this && this.__importStar) || (function () { | ||
var ownKeys = function(o) { | ||
ownKeys = Object.getOwnPropertyNames || function (o) { | ||
var ar = []; | ||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||
return ar; | ||
}; | ||
return ownKeys(o); | ||
}; | ||
return function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
})(); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -55,16 +45,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ReleaseType = exports.Component = exports.VERDACCIO_REGISTRY = void 0; | ||
exports.checkoutAndCd = checkoutAndCd; | ||
exports.commitAndTag = commitAndTag; | ||
exports.publish = publish; | ||
exports.lernaSetVersion = lernaSetVersion; | ||
exports.yarnInstall = yarnInstall; | ||
exports.upgradeCommand = upgradeCommand; | ||
exports.updateVersion = updateVersion; | ||
exports.asMvnVersion = asMvnVersion; | ||
exports.checkIfNpmVersionIsNew = checkIfNpmVersionIsNew; | ||
exports.checkIfMavenVersionExists = checkIfMavenVersionExists; | ||
exports.isExistingMavenVersion = isExistingMavenVersion; | ||
exports.checkJavaServerVersion = checkJavaServerVersion; | ||
exports.updateLernaForDryRun = updateLernaForDryRun; | ||
exports.updateLernaForDryRun = exports.checkJavaServerVersion = exports.isExistingMavenVersion = exports.checkIfMavenVersionExists = exports.checkIfNpmVersionIsNew = exports.asMvnVersion = exports.updateVersion = exports.upgradeCommand = exports.yarnInstall = exports.lernaSetVersion = exports.publish = exports.commitAndTag = exports.checkoutAndCd = exports.ReleaseType = exports.Component = exports.VERDACCIO_REGISTRY = void 0; | ||
const fs = __importStar(require("fs")); | ||
@@ -170,2 +147,3 @@ const node_fetch_1 = __importDefault(require("node-fetch")); | ||
} | ||
exports.checkoutAndCd = checkoutAndCd; | ||
function commitAndTag(version, repositoryPath) { | ||
@@ -186,2 +164,3 @@ logger_1.LOGGER.info('Commit changes and create new tag'); | ||
} | ||
exports.commitAndTag = commitAndTag; | ||
function publish(repositoryPath, options) { | ||
@@ -206,2 +185,3 @@ if (!options.publish || options.npmDryRun) { | ||
} | ||
exports.publish = publish; | ||
function doPublish(tag, preRelease, latestRelease, draft) { | ||
@@ -239,2 +219,3 @@ (0, command_util_1.fatalExec)(`git push origin HEAD:${tag}`, 'Could not push release branch to Github', (0, command_util_1.getShellConfig)({ silent: false })); | ||
} | ||
exports.lernaSetVersion = lernaSetVersion; | ||
function yarnInstall(repositoryPath) { | ||
@@ -245,2 +226,3 @@ logger_1.LOGGER.debug(`Build ${repositoryPath}`); | ||
} | ||
exports.yarnInstall = yarnInstall; | ||
function upgradeCommand(pckName, version) { | ||
@@ -250,2 +232,3 @@ logger_1.LOGGER.debug(`Upgrade '${pckName}' to version ${version}`); | ||
} | ||
exports.upgradeCommand = upgradeCommand; | ||
function updateVersion(...packages) { | ||
@@ -260,2 +243,3 @@ packages.forEach(pckg => { | ||
} | ||
exports.updateVersion = updateVersion; | ||
function asMvnVersion(version) { | ||
@@ -267,2 +251,3 @@ logger_1.LOGGER.debug(`Convert to maven conform version: ${version}`); | ||
} | ||
exports.asMvnVersion = asMvnVersion; | ||
async function checkIfNpmVersionIsNew(pckgName, newVersion) { | ||
@@ -278,2 +263,3 @@ logger_1.LOGGER.debug(`Check that the release version is new i.e. does not exist on npm: ${newVersion}`); | ||
} | ||
exports.checkIfNpmVersionIsNew = checkIfNpmVersionIsNew; | ||
function checkIfMavenVersionExists(groupId, artifactId, newVersion) { | ||
@@ -286,2 +272,3 @@ logger_1.LOGGER.debug('Check if maven version exists'); | ||
} | ||
exports.checkIfMavenVersionExists = checkIfMavenVersionExists; | ||
function isExistingMavenVersion(groupId, artifactId, version) { | ||
@@ -297,2 +284,3 @@ const versions = shelljs_1.default | ||
} | ||
exports.isExistingMavenVersion = isExistingMavenVersion; | ||
function checkJavaServerVersion(version, force = false) { | ||
@@ -310,2 +298,3 @@ const mvnVersion = asMvnVersion(version); | ||
} | ||
exports.checkJavaServerVersion = checkJavaServerVersion; | ||
function updateLernaForDryRun() { | ||
@@ -317,2 +306,3 @@ logger_1.LOGGER.debug('Update lerna.json to use local publish registry'); | ||
} | ||
exports.updateLernaForDryRun = updateLernaForDryRun; | ||
//# sourceMappingURL=common.js.map |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.releaseClient = releaseClient; | ||
exports.releaseClient = void 0; | ||
/******************************************************************************** | ||
@@ -42,2 +42,3 @@ * Copyright (c) 2022-2024 EclipseSource and others. | ||
} | ||
exports.releaseClient = releaseClient; | ||
async function updateDownloadServerScript(version) { | ||
@@ -44,0 +45,0 @@ logger_1.LOGGER.info('Update example server download config'); |
@@ -21,3 +21,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.releaseEclipseIntegration = releaseEclipseIntegration; | ||
exports.releaseEclipseIntegration = void 0; | ||
const shelljs_1 = __importDefault(require("shelljs")); | ||
@@ -40,2 +40,3 @@ const command_util_1 = require("../../util/command-util"); | ||
} | ||
exports.releaseEclipseIntegration = releaseEclipseIntegration; | ||
function prepareClient(options) { | ||
@@ -42,0 +43,0 @@ logger_1.LOGGER.info('Prepare client'); |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.releaseJavaServer = releaseJavaServer; | ||
exports.releaseJavaServer = void 0; | ||
/******************************************************************************** | ||
@@ -41,2 +41,3 @@ * Copyright (c) 2022-2024 EclipseSource and others. | ||
} | ||
exports.releaseJavaServer = releaseJavaServer; | ||
function setVersion(version) { | ||
@@ -43,0 +44,0 @@ logger_1.LOGGER.info(`Set pom version to ${version}`); |
@@ -21,3 +21,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.releaseServerNode = releaseServerNode; | ||
exports.releaseServerNode = void 0; | ||
const shelljs_1 = __importDefault(require("shelljs")); | ||
@@ -41,2 +41,3 @@ const logger_1 = require("../../util/logger"); | ||
} | ||
exports.releaseServerNode = releaseServerNode; | ||
function updateExternalGLSPDependencies(version) { | ||
@@ -43,0 +44,0 @@ logger_1.LOGGER.info('Update external GLSP dependencies (Protocol)'); |
@@ -21,3 +21,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.releaseTheiaIntegration = releaseTheiaIntegration; | ||
exports.releaseTheiaIntegration = void 0; | ||
const shelljs_1 = __importDefault(require("shelljs")); | ||
@@ -41,2 +41,3 @@ const logger_1 = require("../../util/logger"); | ||
} | ||
exports.releaseTheiaIntegration = releaseTheiaIntegration; | ||
function updateExternalGLSPDependencies(version) { | ||
@@ -43,0 +44,0 @@ logger_1.LOGGER.info('Update external GLSP dependencies (Client and workflow example & server)'); |
@@ -21,3 +21,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.releaseVscodeIntegration = releaseVscodeIntegration; | ||
exports.releaseVscodeIntegration = void 0; | ||
const shelljs_1 = __importDefault(require("shelljs")); | ||
@@ -41,2 +41,3 @@ const logger_1 = require("../../util/logger"); | ||
} | ||
exports.releaseVscodeIntegration = releaseVscodeIntegration; | ||
function updateExternalGLSPDependencies(version) { | ||
@@ -43,0 +44,0 @@ logger_1.LOGGER.info('Update external GLSP dependencies (Protocol)'); |
@@ -18,19 +18,9 @@ "use strict"; | ||
}); | ||
var __importStar = (this && this.__importStar) || (function () { | ||
var ownKeys = function(o) { | ||
ownKeys = Object.getOwnPropertyNames || function (o) { | ||
var ar = []; | ||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||
return ar; | ||
}; | ||
return ownKeys(o); | ||
}; | ||
return function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
})(); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -40,4 +30,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ReleaseCommand = void 0; | ||
exports.release = release; | ||
exports.release = exports.ReleaseCommand = void 0; | ||
const commander_1 = require("commander"); | ||
@@ -116,2 +105,3 @@ const process_1 = require("process"); | ||
} | ||
exports.release = release; | ||
function checkGHCli() { | ||
@@ -118,0 +108,0 @@ logger_1.LOGGER.debug('Verify that Github CLI is configured correctly'); |
@@ -33,19 +33,9 @@ "use strict"; | ||
}); | ||
var __importStar = (this && this.__importStar) || (function () { | ||
var ownKeys = function(o) { | ||
ownKeys = Object.getOwnPropertyNames || function (o) { | ||
var ar = []; | ||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||
return ar; | ||
}; | ||
return ownKeys(o); | ||
}; | ||
return function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
})(); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -55,4 +45,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.UpdateNextCommand = void 0; | ||
exports.updateNext = updateNext; | ||
exports.updateNext = exports.UpdateNextCommand = void 0; | ||
const fs = __importStar(require("fs")); | ||
@@ -104,2 +93,3 @@ const glob_1 = require("glob"); | ||
} | ||
exports.updateNext = updateNext; | ||
async function getWorkspacePackages(rootDir) { | ||
@@ -106,0 +96,0 @@ const rootPackage = path.join(rootDir, 'package.json'); |
@@ -6,7 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SH_CONFIG = void 0; | ||
exports.baseCommand = baseCommand; | ||
exports.getShellConfig = getShellConfig; | ||
exports.configureShell = configureShell; | ||
exports.fatalExec = fatalExec; | ||
exports.fatalExec = exports.configureShell = exports.getShellConfig = exports.SH_CONFIG = exports.baseCommand = void 0; | ||
/******************************************************************************** | ||
@@ -36,2 +32,3 @@ * Copyright (c) 2022-2024 EclipseSource and others. | ||
} | ||
exports.baseCommand = baseCommand; | ||
exports.SH_CONFIG = { | ||
@@ -48,2 +45,3 @@ async: false, | ||
} | ||
exports.getShellConfig = getShellConfig; | ||
function configureShell(config) { | ||
@@ -55,2 +53,3 @@ shelljs_1.default.config.reset(); | ||
} | ||
exports.configureShell = configureShell; | ||
function fatalExec(command, fatalErrorMessage, options = {}) { | ||
@@ -63,2 +62,3 @@ const result = shelljs_1.default.exec(command, getShellConfig(options)); | ||
} | ||
exports.fatalExec = fatalExec; | ||
//# sourceMappingURL=command-util.js.map |
@@ -21,13 +21,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isGitRepository = isGitRepository; | ||
exports.getGitRoot = getGitRoot; | ||
exports.hasGitChanges = hasGitChanges; | ||
exports.getUncommittedChanges = getUncommittedChanges; | ||
exports.getChangesOfLastCommit = getChangesOfLastCommit; | ||
exports.getLastModificationDate = getLastModificationDate; | ||
exports.getFilesOfCommit = getFilesOfCommit; | ||
exports.getLatestGithubRelease = getLatestGithubRelease; | ||
exports.getLatestTag = getLatestTag; | ||
exports.hasBranch = hasBranch; | ||
exports.getRemoteUrl = getRemoteUrl; | ||
exports.getRemoteUrl = exports.hasBranch = exports.getLatestTag = exports.getLatestGithubRelease = exports.getFilesOfCommit = exports.getLastModificationDate = exports.getChangesOfLastCommit = exports.getUncommittedChanges = exports.hasGitChanges = exports.getGitRoot = exports.isGitRepository = void 0; | ||
const path_1 = require("path"); | ||
@@ -44,2 +34,3 @@ const shelljs_1 = __importDefault(require("shelljs")); | ||
} | ||
exports.isGitRepository = isGitRepository; | ||
function getGitRoot(path) { | ||
@@ -50,5 +41,7 @@ cdIfPresent(path); | ||
} | ||
exports.getGitRoot = getGitRoot; | ||
function hasGitChanges(path) { | ||
return getUncommittedChanges(path).length > 0; | ||
} | ||
exports.hasGitChanges = hasGitChanges; | ||
/** | ||
@@ -69,2 +62,3 @@ * Returns the files that have uncommitted changes (staged, not staged and untracked) of a git repository. | ||
} | ||
exports.getUncommittedChanges = getUncommittedChanges; | ||
/** | ||
@@ -82,2 +76,3 @@ * Returns the files tha have been changed with the last commit (also includes currently staged but uncommitted changes) | ||
} | ||
exports.getChangesOfLastCommit = getChangesOfLastCommit; | ||
/** | ||
@@ -99,2 +94,3 @@ * Returns the last modification date of a file (or the last commit) in a git repo. | ||
} | ||
exports.getLastModificationDate = getLastModificationDate; | ||
function getFilesOfCommit(commitHash, repoRoot) { | ||
@@ -108,2 +104,3 @@ cdIfPresent(repoRoot); | ||
} | ||
exports.getFilesOfCommit = getFilesOfCommit; | ||
function getLatestGithubRelease(path) { | ||
@@ -114,2 +111,3 @@ cdIfPresent(path); | ||
} | ||
exports.getLatestGithubRelease = getLatestGithubRelease; | ||
function getLatestTag(path) { | ||
@@ -119,2 +117,3 @@ cdIfPresent(path); | ||
} | ||
exports.getLatestTag = getLatestTag; | ||
function hasBranch(branch, path) { | ||
@@ -124,2 +123,3 @@ cdIfPresent(path); | ||
} | ||
exports.hasBranch = hasBranch; | ||
function getRemoteUrl(path) { | ||
@@ -129,2 +129,3 @@ cdIfPresent(path); | ||
} | ||
exports.getRemoteUrl = getRemoteUrl; | ||
function cdIfPresent(path) { | ||
@@ -131,0 +132,0 @@ if (path) { |
@@ -18,4 +18,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LOGGER = void 0; | ||
exports.configureLogger = configureLogger; | ||
exports.configureLogger = exports.LOGGER = void 0; | ||
const levels = { | ||
@@ -51,2 +50,3 @@ error: { threshold: 0, color: '\x1b[31m' }, // red | ||
} | ||
exports.configureLogger = configureLogger; | ||
//# sourceMappingURL=logger.js.map |
@@ -18,24 +18,11 @@ "use strict"; | ||
}); | ||
var __importStar = (this && this.__importStar) || (function () { | ||
var ownKeys = function(o) { | ||
ownKeys = Object.getOwnPropertyNames || function (o) { | ||
var ar = []; | ||
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||
return ar; | ||
}; | ||
return ownKeys(o); | ||
}; | ||
return function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
})(); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.validateDirectory = validateDirectory; | ||
exports.validateFile = validateFile; | ||
exports.validateVersion = validateVersion; | ||
exports.validateGitDirectory = validateGitDirectory; | ||
exports.validateGitDirectory = exports.validateVersion = exports.validateFile = exports.validateDirectory = void 0; | ||
/******************************************************************************** | ||
@@ -72,2 +59,3 @@ * Copyright (c) 2022-2024 EclipseSource and others. | ||
} | ||
exports.validateDirectory = validateDirectory; | ||
function validateFile(filePath, hasToExist = false) { | ||
@@ -83,2 +71,3 @@ const path = (0, path_1.resolve)(filePath); | ||
} | ||
exports.validateFile = validateFile; | ||
function validateVersion(version) { | ||
@@ -91,2 +80,3 @@ logger_1.LOGGER.debug(`Validate version format of: ${version}`); | ||
} | ||
exports.validateVersion = validateVersion; | ||
function validateGitDirectory(repository) { | ||
@@ -99,2 +89,3 @@ const repoPath = validateDirectory(repository); | ||
} | ||
exports.validateGitDirectory = validateGitDirectory; | ||
//# sourceMappingURL=validation-util.js.map |
{ | ||
"name": "@eclipse-glsp/cli", | ||
"version": "2.3.0-next.172+ea441ee", | ||
"version": "2.3.0-next.173+cd23030", | ||
"description": "CLI Tooling & scripts for GLSP components", | ||
@@ -53,3 +53,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@eclipse-glsp/config": "2.3.0-next.172+ea441ee", | ||
"@eclipse-glsp/config": "2.3.0-next.173+cd23030", | ||
"@types/glob": "^8.1.0", | ||
@@ -64,3 +64,3 @@ "@types/node-fetch": "^2.6.6", | ||
}, | ||
"gitHead": "ea441ee371e231fe92e2b58c32a959fbd5fc3a14" | ||
"gitHead": "cd23030b1a500deb103c17d659169c62d34633bb" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 4 instances in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances in 1 package
304389
15
4022