zod-package-json
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -180,5 +180,9 @@ import { z } from 'zod'; | ||
packageManager: z.ZodOptional<z.ZodString>; | ||
/** True if importing modules from the package causes side effects. */ | ||
sideEffects: z.ZodOptional<z.ZodBoolean>; | ||
/** | ||
False if importing modules from the package does not cause side effects. | ||
True or a list of file patterns if importing modules from the package causes side effects. | ||
@see {@link https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free} | ||
*/ | ||
sideEffects: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>; | ||
/** | ||
Imports map. | ||
@@ -370,5 +374,9 @@ @see {@link https://nodejs.org/api/packages.html#imports} | ||
packageManager: z.ZodOptional<z.ZodString>; | ||
/** True if importing modules from the package causes side effects. */ | ||
sideEffects: z.ZodOptional<z.ZodBoolean>; | ||
/** | ||
False if importing modules from the package does not cause side effects. | ||
True or a list of file patterns if importing modules from the package causes side effects. | ||
@see {@link https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free} | ||
*/ | ||
sideEffects: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>; | ||
/** | ||
Imports map. | ||
@@ -560,5 +568,9 @@ @see {@link https://nodejs.org/api/packages.html#imports} | ||
packageManager: z.ZodOptional<z.ZodString>; | ||
/** True if importing modules from the package causes side effects. */ | ||
sideEffects: z.ZodOptional<z.ZodBoolean>; | ||
/** | ||
False if importing modules from the package does not cause side effects. | ||
True or a list of file patterns if importing modules from the package causes side effects. | ||
@see {@link https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free} | ||
*/ | ||
sideEffects: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodString, "many">]>>; | ||
/** | ||
Imports map. | ||
@@ -565,0 +577,0 @@ @see {@link https://nodejs.org/api/packages.html#imports} |
@@ -138,5 +138,9 @@ // src/package-json.ts | ||
packageManager: z.string().optional(), | ||
/** True if importing modules from the package causes side effects. */ | ||
sideEffects: z.boolean().optional(), | ||
/** | ||
False if importing modules from the package does not cause side effects. | ||
True or a list of file patterns if importing modules from the package causes side effects. | ||
@see {@link https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free} | ||
*/ | ||
sideEffects: z.union([z.boolean(), z.array(z.string())]).optional(), | ||
/** | ||
Imports map. | ||
@@ -143,0 +147,0 @@ @see {@link https://nodejs.org/api/packages.html#imports} |
{ | ||
"name": "zod-package-json", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Zod schema for the package.json file format", | ||
@@ -50,16 +50,16 @@ "license": "MIT", | ||
"pre-push": "bun install && bun run lint && bun run build && bun run test:ci && bun run attw", | ||
"release": "np" | ||
"release": "np --no-cleanup" | ||
}, | ||
"dependencies": { | ||
"zod": "^3.23.3" | ||
"zod": "^3.23.8" | ||
}, | ||
"devDependencies": { | ||
"@arethetypeswrong/cli": "^0.15.3", | ||
"@vitest/coverage-v8": "^1.5.0", | ||
"@vitest/coverage-v8": "^1.6.0", | ||
"np": "^10.0.5", | ||
"prettier": "^3.2.5", | ||
"tsup": "^8.0.2", | ||
"prettier": "^3.3.2", | ||
"tsup": "^8.1.0", | ||
"typescript": "^5.4.5", | ||
"vitest": "^1.5.0" | ||
"vitest": "^1.6.0" | ||
} | ||
} |
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
36619
744
Updatedzod@^3.23.8