@semantic-release-plus/core
Advanced tools
Comparing version 2.0.0-alpha.4 to 2.0.0-alpha.5
{ | ||
"name": "@semantic-release-plus/core", | ||
"version": "2.0.0-alpha.4", | ||
"version": "2.0.0-alpha.5", | ||
"description": "semantic-release-plus core interfaces and functionality", | ||
@@ -23,4 +23,7 @@ "private": false, | ||
}, | ||
"dependencies": { | ||
"tslib": "^2.3.0" | ||
}, | ||
"main": "./src/index.js", | ||
"typings": "./src/index.d.ts" | ||
"type": "commonjs" | ||
} |
@@ -1,2 +0,2 @@ | ||
export { Context, Logger, Release, Options, Plugin } from './lib/interfaces'; | ||
export { BranchType } from './lib/enums'; | ||
export * from './lib/interfaces'; | ||
export * from './lib/enums'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BranchType = void 0; | ||
var enums_1 = require("./lib/enums"); | ||
Object.defineProperty(exports, "BranchType", { enumerable: true, get: function () { return enums_1.BranchType; } }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./lib/interfaces"), exports); | ||
tslib_1.__exportStar(require("./lib/enums"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -9,3 +9,3 @@ "use strict"; | ||
BranchType["Maintenance"] = "maintenance"; | ||
})(BranchType = exports.BranchType || (exports.BranchType = {})); | ||
})(BranchType || (exports.BranchType = BranchType = {})); | ||
var CommitType; | ||
@@ -20,3 +20,3 @@ (function (CommitType) { | ||
CommitType["PreRelease"] = "prerelease"; | ||
})(CommitType = exports.CommitType || (exports.CommitType = {})); | ||
})(CommitType || (exports.CommitType = CommitType = {})); | ||
//# sourceMappingURL=enums.js.map |
/// <reference types="node" /> | ||
import { BranchType } from '../enums'; | ||
export interface CommonContext { | ||
stdout: NodeJS.WriteStream; | ||
stderr: NodeJS.WriteStream; | ||
logger: Logger; | ||
gitNotesRef?: string; | ||
} | ||
export interface VerifyConditionsContext extends CommonContext { | ||
cwd: string; | ||
env: NodeJS.ProcessEnv; | ||
envCi: { | ||
isCi: boolean; | ||
commit: string; | ||
branch: string; | ||
[key: string]: unknown; | ||
}; | ||
options: Options; | ||
branch: Branch; | ||
branches: Branch[]; | ||
} | ||
export interface AnalyzeCommitsContext extends VerifyConditionsContext { | ||
commits: Commit[]; | ||
releases: Release[]; | ||
lastRelease: Release; | ||
} | ||
export interface VerifyReleaseContext extends AnalyzeCommitsContext { | ||
nextRelease: Release; | ||
} | ||
export type GenerateNotesContext = VerifyReleaseContext; | ||
export type PrepareContext = GenerateNotesContext; | ||
export type PublishContext = PrepareContext; | ||
export type SuccessContext = PublishContext; | ||
export interface FailContext extends PublishContext { | ||
errors: Error[]; | ||
} | ||
export type AnyLifecycleContext = VerifyConditionsContext | AnalyzeCommitsContext | VerifyReleaseContext | GenerateNotesContext | PrepareContext | PublishContext | SuccessContext | FailContext; | ||
export interface Context { | ||
@@ -19,3 +54,3 @@ branch: Branch; | ||
} | ||
export interface Options { | ||
interface Options { | ||
tagFormat?: string; | ||
@@ -38,9 +73,9 @@ repositoryUrl?: string; | ||
} | ||
export interface Logger { | ||
log?: (message: string) => void; | ||
error?: (message: string) => void; | ||
warn?: (message: string) => void; | ||
success?: (message: string) => void; | ||
interface Logger { | ||
log: (message: string) => void; | ||
error: (message: string) => void; | ||
warn: (message: string) => void; | ||
success: (message: string) => void; | ||
} | ||
export interface Branch { | ||
interface Branch { | ||
name: string; | ||
@@ -55,3 +90,3 @@ channel?: string; | ||
} | ||
export interface Tag { | ||
interface Tag { | ||
version: string; | ||
@@ -63,3 +98,3 @@ channel: string; | ||
} | ||
export interface Commit { | ||
interface Commit { | ||
commit: { | ||
@@ -90,1 +125,2 @@ long: string; | ||
} | ||
export {}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7744
184
1
+ Addedtslib@^2.3.0
+ Addedtslib@2.8.1(transitive)