Build and copy to prod / build-and-copy (push) Successful in 4m15s
Eleventy Image v7 removed its synchronous stats API, which broke the build. Rather than downgrade (older versions bundle a vulnerable sharp), adapt to v7 and clear out the remaining vulnerable dependencies: - Make the `image` shortcode async - Replace the unmaintained markdown-it-eleventy-img with a local plugin that pre-loads image metadata in eleventy.before, so markdown (and feed) images keep rendering as <picture> elements - Upgrade @11ty/eleventy-fetch to v6 - Swap npm-run-all for the maintained npm-run-all2 fork - Override eleventy-plugin-og-image's satori (and its pinned fflate) to patched versions, and set explicit heading weights in the OG template so newer satori doesn't synthesise bold text
70 lines
2.1 KiB
JSON
70 lines
2.1 KiB
JSON
{
|
|
"name": "whimsy",
|
|
"version": "1.0.0",
|
|
"description": "",
|
|
"main": "index.js",
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "npm run build:props && npm run build:css && npm run build:eleventy",
|
|
"build:props": "node scripts/custom-props.js",
|
|
"build:css": "npx postcss src/css/styles.css --base src --dir _site/assets",
|
|
"build:eleventy": "npx eleventy",
|
|
"serve": "run-p \"serve:*\"",
|
|
"serve:props": "node scripts/custom-props.js",
|
|
"serve:css": "postcss src/css/styles.css --base src --dir _site/assets -w",
|
|
"serve:eleventy": "eleventy --serve --incremental",
|
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
"post": "./node_modules/.bin/blog-post",
|
|
"ci": "npm run build"
|
|
},
|
|
"author": "",
|
|
"license": "ISC",
|
|
"dependencies": {
|
|
"@11ty/eleventy": "^3.0.0",
|
|
"@11ty/eleventy-fetch": "^6.0.1",
|
|
"@11ty/eleventy-img": "^7.1.1",
|
|
"@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0",
|
|
"@lewisdale/blog-post-cli": "^1.0.3",
|
|
"@toycode/markdown-it-class": "^1.2.4",
|
|
"autoprefixer": "^10.4.13",
|
|
"cssnano": "^6.0.1",
|
|
"glob": "^14.0.3",
|
|
"lodash": "^4.17.21",
|
|
"markdown-it": "^14.1.0",
|
|
"markdown-it-abbr": "^2.0.0",
|
|
"markdown-it-anchor": "^9.2.0",
|
|
"markdown-it-emoji": "^3.0.0",
|
|
"markdown-it-footnote": "^4.0.0",
|
|
"markdown-it-link-attributes": "^4.0.1",
|
|
"markdown-it-mark": "^4.0.0",
|
|
"markdown-it-obsidian-callouts": "^0.2.6",
|
|
"markdown-it-prism": "^2.3.0",
|
|
"npm-run-all2": "^9.0.4",
|
|
"p-map": "^7.0.2",
|
|
"postcss": "^8.4.21",
|
|
"postcss-cli": "^10.1.0",
|
|
"postcss-import": "^15.1.0",
|
|
"postcss-import-ext-glob": "^2.1.1",
|
|
"postcss-nested": "^6.0.0",
|
|
"prettier": "^2.8.3",
|
|
"tailwindcss": "^3.4.13"
|
|
},
|
|
"devDependencies": {
|
|
"@11ty/eleventy-plugin-rss": "^2.0.2",
|
|
"@11ty/eleventy-upgrade-help": "^3.0.1",
|
|
"eleventy-plugin-og-image": "^4.3.0"
|
|
},
|
|
"allowScripts": {
|
|
"sharp@0.35.5": false,
|
|
"fsevents@2.3.2": false
|
|
},
|
|
"overrides": {
|
|
"eleventy-plugin-og-image": {
|
|
"satori": {
|
|
".": "^0.63.2",
|
|
"fflate": "^0.7.5"
|
|
}
|
|
}
|
|
}
|
|
}
|