Files
dotCooCoo cecfcf0e78 CMS: upload VectorCraft card pictures to /assets/uploads/vectorcraft/
The VectorCraft collection's Card picture field had no folder of its
own, so the editor saved an uploaded picture to public/assets/uploads/
and wrote /assets/uploads/<file> into the page's cover field. The
content schema only accepts a cover under /assets/uploads/<app>/, so
a page saved with such a cover failed the build.

The field now sets media_folder and public_folder to the vectorcraft
folder. scripts/cms-config.test.mjs checks that every collection with a
cover field uploads to the folder the schema accepts, and
npm run test:coverage runs it.
2026-11-14 13:01:26 -08:00

23 lines
952 B
JSON

{
"name": "craft-wiki",
"private": true,
"scripts": {
"dev": "astro dev",
"build": "node scripts/prepare-cms.mjs && astro build",
"preview": "astro preview",
"check:safebrowsing": "node scripts/check-safebrowsing.mjs craft.wiki",
"test:coverage": "mkdir -p coverage && node --test --experimental-test-coverage --test-coverage-include='worker/**' --test-coverage-exclude='**/*.test.mjs' --test-reporter=spec --test-reporter-destination=stdout --test-reporter=lcov --test-reporter-destination=coverage/lcov.info worker/index.test.mjs scripts/cms-config.test.mjs"
},
"dependencies": {
"@astrojs/starlight": "^0.42.10",
"@fontsource-variable/archivo": "^5.3.0",
"@fontsource-variable/geist-mono": "^5.3.0",
"@fontsource-variable/inter": "^5.3.0",
"@fontsource/instrument-serif": "^5.3.0",
"@resvg/resvg-js": "^2.6.2",
"@sveltia/cms": "^0.261.0",
"astro": "^7.4.7",
"sharp": "^0.35.5"
}
}