upcontent 0.1.2 → 0.1.3
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/.upcontent/config.json +2 -2
- package/README.md +0 -5
- package/package.json +1 -1
- package/scripts/verify-golden-build.mjs +6 -7
package/.upcontent/config.json
CHANGED
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
"navigation": {
|
|
43
43
|
"roots": [
|
|
44
44
|
"index.md",
|
|
45
|
-
"README.md",
|
|
46
45
|
"getting-started",
|
|
47
46
|
"guides",
|
|
48
47
|
"customization",
|
|
@@ -73,7 +72,8 @@
|
|
|
73
72
|
"AGENTS.md",
|
|
74
73
|
"CLAUDE.md",
|
|
75
74
|
"CONTEXT.md",
|
|
76
|
-
"PRODUCT.md"
|
|
75
|
+
"PRODUCT.md",
|
|
76
|
+
"README.md"
|
|
77
77
|
]
|
|
78
78
|
},
|
|
79
79
|
"labelOverrides": {
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { existsSync
|
|
1
|
+
import { existsSync } from 'node:fs'
|
|
2
2
|
|
|
3
|
-
const htmlPath =
|
|
4
|
-
const html = readFileSync(htmlPath, 'utf8')
|
|
3
|
+
const htmlPath = 'dist/index.html'
|
|
5
4
|
const requiredAssets = ['assets/readme/portal-home.png', 'assets/readme/portal-showcase.png']
|
|
6
5
|
|
|
6
|
+
if (!existsSync(htmlPath)) throw new Error(`Golden build is missing: ${htmlPath}`)
|
|
7
|
+
|
|
7
8
|
for (const asset of requiredAssets) {
|
|
8
9
|
if (!existsSync(`dist/${asset}`)) throw new Error(`Golden build is missing: dist/${asset}`)
|
|
9
|
-
if (existsSync('dist/readme/index.html') && !existsSync(`dist/readme/${asset}`)) {
|
|
10
|
-
throw new Error(`Golden build is missing README route asset: dist/readme/${asset}`)
|
|
11
|
-
}
|
|
12
|
-
if (!html.includes(asset)) throw new Error(`Golden build does not reference: ${asset}`)
|
|
13
10
|
}
|
|
11
|
+
|
|
12
|
+
if (existsSync('dist/readme/index.html')) throw new Error('Golden build unexpectedly published README as a portal route')
|