@definitelytyped/header-parser
Advanced tools
Comparing version 0.2.1 to 0.2.2
# @definitelytyped/header-parser | ||
## 0.2.2 | ||
### Patch Changes | ||
- 4216821: Add @arethetypeswrong/cli run | ||
## 0.2.1 | ||
@@ -4,0 +10,0 @@ |
import { AllTypeScriptVersion, TypeScriptVersion } from "@definitelytyped/typescript-versions"; | ||
export interface Header { | ||
readonly nonNpm: boolean; | ||
readonly nonNpm: boolean | "conflict"; | ||
readonly nonNpmDescription?: string; | ||
@@ -5,0 +5,0 @@ readonly name: string; |
@@ -197,4 +197,4 @@ "use strict"; | ||
if (packageJson.nonNpm !== undefined) { | ||
if (packageJson.nonNpm !== true) { | ||
errors.push(`${typesDirectoryName}'s package.json has bad "nonNpm": must be true if present.`); | ||
if (packageJson.nonNpm !== true && packageJson.nonNpm !== "conflict") { | ||
errors.push(`${typesDirectoryName}'s package.json has bad "nonNpm": must be true or "conflict" if present.`); | ||
} | ||
@@ -208,3 +208,3 @@ else if (!packageJson.nonNpmDescription) { | ||
else { | ||
return true; | ||
return packageJson.nonNpm; | ||
} | ||
@@ -211,0 +211,0 @@ return { errors }; |
{ | ||
"name": "@definitelytyped/header-parser", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "Nathan Shively-Sanders <nathansa@microsoft.com>", |
Sorry, the diff of this file is not supported yet
37928