Skip to content

Commit

Permalink
Replace UserConfig typedef with a subpath export (#3460) (#3562)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat authored Dec 9, 2024
2 parents d7434ab + 9a4b4d6 commit f2e9f4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@
"type": "module",
"main": "./src/Eleventy.js",
"exports": {
"import": "./src/Eleventy.js",
"require": "./src/EleventyCommonJs.cjs"
".": {
"import": "./src/Eleventy.js",
"require": "./src/EleventyCommonJs.cjs"
},
"./UserConfig": {
"types": "./src/UserConfig.js"
}
},
"bin": {
"eleventy": "cmd.cjs"
Expand Down
3 changes: 0 additions & 3 deletions src/Eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ const debug = debugUtil("Eleventy");
/**
* Eleventy’s programmatic API
* @module 11ty/eleventy/Eleventy
*
* This line is required for IDE autocomplete in config files
* @typedef {import('./UserConfig.js').default} UserConfig
*/

class Eleventy {
Expand Down

0 comments on commit f2e9f4d

Please sign in to comment.