Repository navigation
Expand file tree
/
Copy pathpackage-policy.json
More file actions
89 lines (89 loc) · 2.82 KB
/
Copy pathpackage-policy.json
File metadata and controls
89 lines (89 loc) · 2.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
"$schema": "./package-policy.schema.json",
"description": "Hard rules for packages/*/package.json consistency. Scripts listed under hardRules.scripts must be present with the exact declared value (or have an allowlist entry with a reason).",
"hardRules": {
"scripts": {
"build": "tsup",
"clean": "rm -rf node_modules dist",
"lint": "pnpm exec biome lint",
"prepack": "pnpm run build",
"test": "vitest",
"typecheck": "tsc"
},
"publishConfig": {
"access": "public",
"registry": "https://npm.pkg.github.com"
},
"workspaceDependencySpec": "workspace:*",
"catalogDependencies": {
"react": "catalog:react",
"react-dom": "catalog:react",
"@types/react": "catalog:react",
"@types/react-dom": "catalog:react",
"@vanilla-extract/css": "catalog:",
"@vanilla-extract/recipes": "catalog:",
"@vanilla-extract/dynamic": "catalog:",
"clsx": "catalog:"
},
"sideEffectsAllowedValues": [false, ["**/*.css"]]
},
"allowlist": [
{
"packageName": "@sipe-team/tokens",
"rule": "scripts.test",
"reason": "design tokens only, no tests"
},
{
"packageName": "@sipe-team/tokens",
"rule": "scripts.build",
"reason": "tokens build runs tsup before generating Style Dictionary artifacts"
},
{
"packageName": "@sipe-team/tokens",
"rule": "extraScript",
"fieldPath": "scripts.build:tokens",
"reason": "token-specific Style Dictionary generation invoked by the package build"
},
{
"packageName": "@sipe-team/side",
"rule": "scripts.test",
"reason": "aggregator package, no tests"
},
{
"packageName": "@sipe-team/chip",
"rule": "extraScript",
"fieldPath": "scripts.test:ui",
"reason": "chip-specific vitest UI runner"
},
{
"packageName": "@sipe-team/chip",
"rule": "extraScript",
"fieldPath": "scripts.test:coverage",
"reason": "chip-specific coverage runner"
},
{
"packageName": "@sipe-team/theme",
"rule": "extraScript",
"fieldPath": "scripts.test:ui",
"reason": "theme-specific vitest UI runner"
},
{
"packageName": "@sipe-team/button",
"rule": "directDependency",
"fieldPath": "devDependencies.sanitize.css",
"reason": "sanitize.css is a button-specific reset layer; not shared with other packages"
},
{
"packageName": "@sipe-team/switch",
"rule": "directDependency",
"fieldPath": "dependencies.@radix-ui/react-use-controllable-state",
"reason": "switch-specific radix utility, not used elsewhere"
},
{
"packageName": "@sipe-team/icon",
"rule": "extraScript",
"fieldPath": "scripts.generate-icons",
"reason": "icon-specific codegen script for SVG -> React components"
}
]
}