+3
-3
| { | ||
| "name": "publint", | ||
| "version": "0.3.17", | ||
| "version": "0.3.18", | ||
| "description": "Lint packaging errors", | ||
@@ -44,3 +44,3 @@ "type": "module", | ||
| "sade": "^1.8.1", | ||
| "@publint/pack": "^0.1.3" | ||
| "@publint/pack": "^0.1.4" | ||
| }, | ||
@@ -51,3 +51,3 @@ "devDependencies": { | ||
| "prompts": "^2.4.2", | ||
| "vitest": "^4.0.17" | ||
| "vitest": "^4.0.18" | ||
| }, | ||
@@ -54,0 +54,0 @@ "scripts": { |
+3
-2
@@ -148,3 +148,3 @@ export type MessageType = 'suggestion' | 'warning' | 'error' | ||
| * - **Browser**: Automatically inferred from `{ tarball: ArrayBuffer | ReadableStream }`. If `{ files: PackFile[] }` is used, | ||
| * this must be the shared directory of all files in `files`. e.g. if `name` has `"package/src/index.js", | ||
| * this must be the shared directory of all files in `files`. e.g. if `name` has `"package/src/index.js"`, | ||
| * the `pkgDir` should be `"package"`. | ||
@@ -191,3 +191,4 @@ * ::: | ||
| /** | ||
| * Report warnings as errors. | ||
| * Report warnings as errors. This runs before `level` filters the result, which means that if | ||
| * `level` is set to `'error'`, all warnings (elevated as errors) will still be reported. | ||
| */ | ||
@@ -194,0 +195,0 @@ strict?: boolean |
@@ -469,3 +469,3 @@ import { lintableFileExtensions } from './constants.js' | ||
| for (const p of path) { | ||
| v = v[p] | ||
| v = v?.[p] | ||
| } | ||
@@ -472,0 +472,0 @@ return v |
109044
0.15%2758
0.04%Updated