@verekia/warden 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verekia/warden",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Linter that checks repositories share consistent configs and tool versions.",
5
5
  "bin": {
6
6
  "warden": "./src/index.ts"
@@ -36,7 +36,7 @@
36
36
  "../gputex",
37
37
  "../gradient-normal-textures",
38
38
  "../nanothree",
39
- "../svg-to-tsl",
39
+ "../svg-to-msdf",
40
40
  "../manalab",
41
41
  "../tslfx",
42
42
  "../polydraw",
@@ -48,10 +48,16 @@
48
48
  "checks": {
49
49
  "typecheckScript": {
50
50
  "modes": {
51
- "svg-to-tsl": "bun-filter-all",
52
- "manalab": "bun-filter-all",
53
51
  "voidcore": "bun-filter-all"
54
52
  }
53
+ },
54
+ "pinnedDependencyVersions": {
55
+ "exclude": {
56
+ "webgamer": [
57
+ "react",
58
+ "react-dom"
59
+ ]
60
+ }
55
61
  }
56
62
  }
57
63
  }
@@ -66,9 +66,14 @@ export const pinnedDependencyVersions = async (
66
66
 
67
67
  for (const project of projects) {
68
68
  const pkgs = await collectPackageJsons(project)
69
+ const excluded = new Set([
70
+ ...(options.exclude?.[project.name] ?? []),
71
+ ...(project.packageJson?.warden?.checks?.pinnedDependencyVersions?.exclude?.[project.name] ?? []),
72
+ ])
69
73
 
70
74
  for (const { relPath, pkg } of pkgs) {
71
75
  for (const [name, expected] of packages) {
76
+ if (excluded.has(name)) continue
72
77
  for (const group of DEP_GROUPS) {
73
78
  const declared = pkg[group]?.[name]
74
79
  if (declared === undefined) continue
package/src/types.ts CHANGED
@@ -4,7 +4,11 @@ export type WardenConfig = {
4
4
  configFilesPresent?: { enabled?: boolean; files?: string[] }
5
5
  matchingDependencyVersions?: { enabled?: boolean; packages?: string[] }
6
6
  exactDependencyVersions?: { enabled?: boolean; packages?: Record<string, string> }
7
- pinnedDependencyVersions?: { enabled?: boolean; packages?: Record<string, string> }
7
+ pinnedDependencyVersions?: {
8
+ enabled?: boolean
9
+ packages?: Record<string, string>
10
+ exclude?: Record<string, string[]>
11
+ }
8
12
  requiredScripts?: { enabled?: boolean; scripts?: Record<string, string> }
9
13
  typecheckScript?: { enabled?: boolean; modes?: Record<string, 'auto' | 'bun-filter-all'> }
10
14
  testScriptConsistency?: {
@@ -33,6 +37,7 @@ export type PackageJson = {
33
37
  dependencies?: Record<string, string>
34
38
  devDependencies?: Record<string, string>
35
39
  peerDependencies?: Record<string, string>
40
+ warden?: WardenConfig
36
41
  }
37
42
 
38
43
  export type Project = {