@monodeploy/types
Advanced tools
Comparing version 3.0.1 to 3.1.0
@@ -5,2 +5,20 @@ # Changelog | ||
## [3.1.0](https://github.com/tophat/monodeploy/compare/@monodeploy/types@3.0.1...@monodeploy/types@3.1.0) "@monodeploy/types" (2022-07-03)<a name="3.1.0"></a> | ||
### Features | ||
* add registryMode option, deprecated noRegistry ([6945cdb](https://github.com/tophat/monodeploy/commits/6945cdb)) | ||
## [3.1.0](https://github.com/tophat/monodeploy/compare/@monodeploy/types@3.0.1...@monodeploy/types@3.1.0) "@monodeploy/types" (2022-07-03)<a name="3.1.0"></a> | ||
### Features | ||
* add registryMode option, deprecated noRegistry ([6945cdb](https://github.com/tophat/monodeploy/commits/6945cdb)) | ||
## [3.0.1](https://github.com/tophat/monodeploy/compare/@monodeploy/types@3.0.0...@monodeploy/types@3.0.1) "@monodeploy/types" (2022-05-26)<a name="3.0.1"></a> | ||
@@ -7,0 +25,0 @@ |
/// <reference types="node" /> | ||
import { Configuration, Project, Report, Workspace } from '@yarnpkg/core'; | ||
import { AsyncSeriesHook } from 'tapable'; | ||
import type { Configuration, Project, Report, Workspace } from '@yarnpkg/core'; | ||
import type { AsyncSeriesHook } from 'tapable'; | ||
export declare type RecursivePartial<T> = { | ||
[P in keyof T]?: T[P] extends Record<string, unknown> ? RecursivePartial<T[P]> : T[P]; | ||
}; | ||
export declare enum RegistryMode { | ||
NPM = "npm", | ||
Manifest = "manifest" | ||
} | ||
export interface MonodeployConfiguration { | ||
@@ -29,2 +33,4 @@ /** | ||
* | ||
* @deprecated In favour of registryMode='manifest'. | ||
* | ||
* @default false | ||
@@ -34,2 +40,13 @@ */ | ||
/** | ||
* By default the latest package versions upon which the version strategy | ||
* is applied is taken from the NPM registry (npm mode). If registryMode is set to 'manifest' | ||
* the latest version is instead taken from the package.json files. Note that | ||
* 'manifest' mode is incompatible with prerelease mode. | ||
* | ||
* Can be either 'npm' or 'manifest'. | ||
* | ||
* @default "npm" | ||
*/ | ||
registryMode: RegistryMode; | ||
/** | ||
* If enabled, any operation performing a destructive action on an external | ||
@@ -171,2 +188,7 @@ * system is skipped over. This includes publishing to NPM, committing to git, | ||
/** | ||
* Package group specific settings. Note that if no packageGroupManifestField is set, | ||
* each workspace is in its own group. | ||
*/ | ||
packageGroups?: Record<string, GroupConfiguration>; | ||
/** | ||
* Whether to run the lifecycle scripts of the packages to publish in topological order, | ||
@@ -234,2 +256,13 @@ * based on dependencies and peerDependencies. This excludes devDependencies from the graph. | ||
} | ||
export interface GroupConfiguration { | ||
/** | ||
* By default the latest package versions upon which the version strategy | ||
* is applied is taken from the NPM registry (npm mode). If registryMode is set to 'manifest' | ||
* the latest version is instead taken from the package.json files. Note that | ||
* 'manifest' mode is incompatible with prerelease mode. | ||
* | ||
* @default "npm" | ||
*/ | ||
registryMode: RegistryMode; | ||
} | ||
export interface YarnContext { | ||
@@ -236,0 +269,0 @@ configuration: Configuration; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isNodeError = void 0; | ||
exports.isNodeError = exports.RegistryMode = void 0; | ||
var RegistryMode; | ||
(function (RegistryMode) { | ||
RegistryMode["NPM"] = "npm"; | ||
RegistryMode["Manifest"] = "manifest"; | ||
})(RegistryMode = exports.RegistryMode || (exports.RegistryMode = {})); | ||
function isNodeError(error) { | ||
@@ -5,0 +10,0 @@ return error instanceof Error || error?.code !== undefined; |
{ | ||
"name": "@monodeploy/types", | ||
"version": "3.0.1", | ||
"version": "3.1.0", | ||
"repository": { | ||
@@ -39,7 +39,7 @@ "type": "git", | ||
"@yarnpkg/core": "^3.2.1", | ||
"ts-node": "^10.7.0", | ||
"typedoc": "^0.22.14", | ||
"typescript": "~4.6.3" | ||
"ts-node": "^10.8.2", | ||
"typedoc": "^0.23.5", | ||
"typescript": "4.7.4" | ||
}, | ||
"types": "./lib/types.d.ts" | ||
} |
22978
315