@ts-type/package-dts
Advanced tools
Comparing version 1.0.36 to 1.0.37
@@ -6,2 +6,20 @@ # Change Log | ||
## [1.0.37](https://github.com/bluelovers/ws-ts-type/compare/@ts-type/package-dts@1.0.36...@ts-type/package-dts@1.0.37) (2020-07-26) | ||
### ✨ Features | ||
* update type to interface, add simple test ([888fa10](https://github.com/bluelovers/ws-ts-type/commit/888fa10f2f492e1fe315cd42ffe7ec55d091eba7)) | ||
* disable create `[k: string]` in `CoreProperties` ([18ba556](https://github.com/bluelovers/ws-ts-type/commit/18ba5566d6fc82d64fb4ebf53c6c3bc797e8de9e)) | ||
### BREAKING CHANGES | ||
* omit `[k: string]` | ||
* omit `[k: string]` in `CoreProperties` | ||
## [1.0.36](https://github.com/bluelovers/ws-ts-type/compare/@ts-type/package-dts@1.0.35...@ts-type/package-dts@1.0.36) (2020-07-26) | ||
@@ -8,0 +26,0 @@ |
@@ -5,3 +5,3 @@ /** | ||
import { AJSONSchemaForLernaJsonFiles } from './types/lerna.json'; | ||
import { ITSPartialPick } from 'ts-type/lib/type/record'; | ||
import { ITSMergeBoth, ITSOverwrite } from 'ts-type/lib/type/record'; | ||
import { IPackageJsonTag, IReleaseType } from './lib/package-json/types'; | ||
@@ -11,4 +11,9 @@ export * from './lib/lerna-json/types'; | ||
export type { IReleaseType }; | ||
export interface ILernaJsonCommand extends ITSPartialPick<AJSONSchemaForLernaJsonFiles["command"], keyof AJSONSchemaForLernaJsonFiles["command"]> { | ||
publish?: AJSONSchemaForLernaJsonFiles["command"]["publish"] & { | ||
declare type _Command = AJSONSchemaForLernaJsonFiles["command"]; | ||
declare type _MergeCommand<T extends Record<string, Record<string, any>>> = { | ||
[P in keyof (T & _Command)]?: (P extends keyof _Command ? P extends keyof T ? ITSMergeBoth<_Command[P], T[P]> : _Command[P] : T[P]); | ||
}; | ||
export interface ILernaJsonCommand extends _MergeCommand<{ | ||
publish?: { | ||
concurrency?: number; | ||
"bump"?: IReleaseType; | ||
@@ -19,3 +24,4 @@ "conventionalCommits"?: boolean; | ||
}; | ||
"version"?: AJSONSchemaForLernaJsonFiles["command"]["version"] & { | ||
"version"?: { | ||
concurrency?: number; | ||
"bump"?: IReleaseType; | ||
@@ -25,11 +31,16 @@ "conventionalCommits"?: boolean; | ||
}; | ||
run?: AJSONSchemaForLernaJsonFiles["command"]["run"] & { | ||
run?: { | ||
concurrency?: number; | ||
"stream": boolean; | ||
[k: string]: unknown; | ||
}; | ||
exec?: AJSONSchemaForLernaJsonFiles["command"]["exec"] & { | ||
exec?: { | ||
concurrency?: number; | ||
"stream": boolean; | ||
[k: string]: unknown; | ||
}; | ||
[k: string]: Record<string, any>; | ||
}> { | ||
[k: string]: Record<string, unknown>; | ||
} | ||
export interface ILernaJson extends AJSONSchemaForLernaJsonFiles { | ||
export interface ILernaJson extends ITSOverwrite<AJSONSchemaForLernaJsonFiles, { | ||
/** | ||
@@ -46,3 +57,4 @@ * The current version of the repository (or independent). | ||
command?: ILernaJsonCommand; | ||
}> { | ||
} | ||
export default ILernaJson; |
@@ -14,7 +14,7 @@ /** | ||
*/ | ||
export declare type IPackageJson<T = any> = ITSOverwrite<CoreProperties, { | ||
export interface IPackageJson<T = any> extends ITSOverwrite<CoreProperties, { | ||
/** | ||
* yarn workspaces | ||
*/ | ||
workspaces?: string[] | unknown | ILernaJson["packages"]; | ||
workspaces?: ILernaJson["packages"]; | ||
/** | ||
@@ -50,5 +50,4 @@ * This is a set of config values that will be used at publish-time. | ||
'umd:main'?: string; | ||
}> & ITSPartialRecord<IPackageJsonDependenciesField, IDependency> & { | ||
[k: string]: T; | ||
}; | ||
}>, ITSPartialRecord<IPackageJsonDependenciesField, IDependency> { | ||
} | ||
export default IPackageJson; |
{ | ||
"name": "@ts-type/package-dts", | ||
"version": "1.0.36", | ||
"version": "1.0.37", | ||
"private": false, | ||
@@ -60,2 +60,3 @@ "description": "A Typescript type definition for NPM package json", | ||
"sort-package-json": "npx yarn-tool sort", | ||
"ts:check": "tsc --noEmit -p tsconfig.check.json", | ||
"update:schema": "npx ts-node ./script/index" | ||
@@ -65,3 +66,3 @@ }, | ||
"@types/semver": "^7.3.1", | ||
"ts-type": "^1.2.26" | ||
"ts-type": "^1.2.27" | ||
}, | ||
@@ -77,3 +78,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "d88cb4538f62d58638f85c5195311d77f06f0220", | ||
"gitHead": "810f2c52bfca66e36f8f2819a79e0a8972c8c3d9", | ||
"sharedDependencies": { | ||
@@ -80,0 +81,0 @@ "eslint-config-bluelovers": "latest" |
@@ -107,5 +107,4 @@ /* tslint:disable */ | ||
}; | ||
[k: string]: unknown; | ||
}; | ||
[k: string]: unknown; | ||
} |
@@ -312,9 +312,2 @@ /* tslint:disable */ | ||
}; | ||
/** | ||
* Any property starting with _ is valid. | ||
* | ||
* This interface was referenced by `CoreProperties`'s JSON-Schema definition | ||
* via the `patternProperty` "^_". | ||
*/ | ||
[k: string]: any; | ||
} | ||
@@ -321,0 +314,0 @@ /** |
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
471668
41
8856
Updatedts-type@^1.2.27