Skip to content

Commit

Permalink
chore: Changes fdocs config to ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrsskls committed Oct 28, 2024
1 parent 021a722 commit db02fdc
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .fdocs.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const config = require("@factorial/docs/config");
import config from "@factorial/docs/config.js";

module.exports = function (defaultConfig) {
export default function (defaultConfig) {
return config(defaultConfig, {
projectName: "Phabalicious",
input: "docs",
Expand Down Expand Up @@ -66,4 +66,4 @@ module.exports = function (defaultConfig) {
"changelog",
],
});
};
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
"author": "Stephan Huber <[email protected]>",
"license": "MIT",
"private": true,
"type": "module",
"devDependencies": {
"@commitlint/cli": "^17.0.1",
"@commitlint/config-conventional": "^17.0.0",
"@factorial/docs": "^0.5.0",
"@factorial/docs": "^0.5.3",
"commitizen": "^4.2.4",
"cz-conventional-changelog": "3.3.0",
"cz-customizable": "^7.0.0",
Expand Down
55 changes: 51 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,13 @@
chalk "^2.0.0"
js-tokens "^4.0.0"

"@babel/runtime@^7.8.4":
version "7.26.0"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.26.0.tgz#8600c2f595f277c60815256418b85356a65173c1"
integrity sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==
dependencies:
regenerator-runtime "^0.14.0"

"@commitlint/cli@^17.0.1":
version "17.4.3"
resolved "https://registry.yarnpkg.com/@commitlint/cli/-/cli-17.4.3.tgz#49583a7946b4030e7e6d9caafac44307835fb05e"
Expand Down Expand Up @@ -526,10 +533,10 @@
dependencies:
tslib "^2.4.0"

"@factorial/docs@^0.5.0":
version "0.5.0"
resolved "https://registry.yarnpkg.com/@factorial/docs/-/docs-0.5.0.tgz#ed5f9fbcbca9d23404b01fe2a65c35ea150066f6"
integrity sha512-ymBANn7fGu/+SAcWxcJP6fJS5K64qByUIktpvOQ2/non7ii9E0qKzbBKdvn53ik/qx8MEe7fpZbLhhJ+dFQxqQ==
"@factorial/docs@^0.5.3":
version "0.5.3"
resolved "https://registry.yarnpkg.com/@factorial/docs/-/docs-0.5.3.tgz#a056470ba09281267e7c577f66464a3d5a05aa5a"
integrity sha512-4uLzbKmQSqDRJEv6sgXbE8rFSl0ugjSFEQojHwpYbQjvnwk2iiSiWqPvxGahYBxNzBbWQzfhdiuIsAila8g1KA==
dependencies:
"@11ty/eleventy" "^3.0.0"
"@11ty/eleventy-img" "^5.0.0"
Expand All @@ -542,6 +549,7 @@
markdown-it-anchor "^9.2.0"
markdown-it-front-matter "^0.2.4"
markdown-it-replace-link "^1.2.1"
twig "^1.17.1"

"@factorial/eleventy-plugin-twig@^0.2.0":
version "0.2.0"
Expand Down Expand Up @@ -2091,6 +2099,11 @@ flatted@^3.1.0:
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.7.tgz#609f39207cb614b89d0765b477cb2d437fbf9787"
integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==

foreachasync@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/foreachasync/-/foreachasync-3.0.0.tgz#5502987dc8714be3392097f32e0071c9dee07cf6"
integrity sha512-J+ler7Ta54FwwNcx6wQRDhTIbNeyDcARMkOcguEqnEdtm0jKvN3Li3PDAb2Du3ubJYEWfYL83XMROXdsXAXycw==

foreground-child@^3.1.0:
version "3.3.0"
resolved "https://registry.yarnpkg.com/foreground-child/-/foreground-child-3.3.0.tgz#0ac8644c06e431439f8561db8ecf29a7b5519c77"
Expand Down Expand Up @@ -2876,6 +2889,11 @@ locate-path@^6.0.0:
dependencies:
p-locate "^5.0.0"

locutus@^2.0.11:
version "2.0.32"
resolved "https://registry.yarnpkg.com/locutus/-/locutus-2.0.32.tgz#4468e0a73b74e5c26a3d1b94394e6e1275e2bcec"
integrity sha512-fr7OCpbE4xeefhHqfh6hM2/l9ZB3XvClHgtgFnQNImrM/nqL950o6FO98vmUH8GysfQRCcyBYtZ4C8GcY52Edw==

lodash.camelcase@^4.3.0:
version "4.3.0"
resolved "https://registry.yarnpkg.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6"
Expand Down Expand Up @@ -3108,6 +3126,13 @@ min-indent@^1.0.0:
resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869"
integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==

[email protected]:
version "3.0.8"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.8.tgz#5e6a59bd11e2ab0de1cfb843eb2d82e546c321c1"
integrity sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==
dependencies:
brace-expansion "^1.1.7"

minimatch@^3.0.0, minimatch@^3.0.4, minimatch@^3.1.1:
version "3.1.2"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
Expand Down Expand Up @@ -3704,6 +3729,11 @@ redent@^3.0.0:
indent-string "^4.0.0"
strip-indent "^3.0.0"

regenerator-runtime@^0.14.0:
version "0.14.1"
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz#356ade10263f685dda125100cd862c1db895327f"
integrity sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==

require-directory@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42"
Expand Down Expand Up @@ -4338,6 +4368,16 @@ tslib@^2.4.0:
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.3.tgz#0438f810ad7a9edcde7a241c3d80db693c8cbfe0"
integrity sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==

twig@^1.17.1:
version "1.17.1"
resolved "https://registry.yarnpkg.com/twig/-/twig-1.17.1.tgz#2e4b158cbd072e93deac009d76a807a3d9966b24"
integrity sha512-atxccyr/BHtb1gPMA7Lvki0OuU17XBqHsNH9lzDHt9Rr1293EVZOosSZabEXz/DPVikIW8ZDqSkEddwyJnQN2w==
dependencies:
"@babel/runtime" "^7.8.4"
locutus "^2.0.11"
minimatch "3.0.x"
walk "2.3.x"

type-fest@^0.18.0:
version "0.18.1"
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.18.1.tgz#db4bc151a4a2cf4eebf9add5db75508db6cc841f"
Expand Down Expand Up @@ -4432,6 +4472,13 @@ w3c-xmlserializer@^5.0.0:
dependencies:
xml-name-validator "^5.0.0"

[email protected]:
version "2.3.15"
resolved "https://registry.yarnpkg.com/walk/-/walk-2.3.15.tgz#1b4611e959d656426bc521e2da5db3acecae2424"
integrity sha512-4eRTBZljBfIISK1Vnt69Gvr2w/wc3U6Vtrw7qiN5iqYJPH7LElcYh/iU4XWhdCy2dZqv1ToMyYlybDylfG/5Vg==
dependencies:
foreachasync "^3.0.0"

wcwidth@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8"
Expand Down

0 comments on commit db02fdc

Please sign in to comment.