Skip to content

Commit 99b42da

Browse files
authored
Fixed deployment configuration (#304)
* Added latest python and node versions to CI. * added 3.13 snapshots * added 3.14 snapshots * version bump for npm package * Added publish command updates and slight refactor of package definition. * Updated lock file. * Fixed eleventy configuration
1 parent 5a42ac2 commit 99b42da

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

site/.eleventy.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11

2-
const shiki = require("shiki");
3-
4-
// @ts-expect-error
5-
const { EleventyHtmlBasePlugin } = require("@11ty/eleventy");
6-
72
const dateFormatter = new Intl.DateTimeFormat("en-US", { year: "numeric", month: "long", day: "numeric" });
83
const listFormatter = new Intl.ListFormat("en-US", { style: "long", type: "conjunction" });
94

105
/**
116
*
127
* @param {import("@11ty/eleventy").UserConfig} eleventyConfig
138
*/
14-
module.exports = function (eleventyConfig) {
9+
module.exports = async function (eleventyConfig) {
10+
const shiki = await import("shiki");
11+
const { EleventyHtmlBasePlugin } = await import("@11ty/eleventy");
12+
1513
eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
1614

1715
eleventyConfig.addPassthroughCopy("./src/css");

0 commit comments

Comments
 (0)