Skip to content

Commit

Permalink
feat(extend-lion-docs): release + forward settings from rocket preset
Browse files Browse the repository at this point in the history
  • Loading branch information
daKmoR committed Jun 16, 2021
1 parent 269ad57 commit 835c280
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/cool-lemons-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'rocket-preset-extend-lion-docs': patch
---

Handle exports that do not have a Lion prefix
5 changes: 5 additions & 0 deletions .changeset/curly-ants-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'rocket-preset-extend-lion-docs': patch
---

Add option `exportsMapJsonFileName` to configure the json filename containing the export map (default to `package.json`)
5 changes: 5 additions & 0 deletions .changeset/weak-pears-sing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'rocket-preset-extend-lion-docs': patch
---

Support usage without a subfolder for the npm scope (via setting `npmScope: ''`)
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,33 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
* @param {object} opts
* @param {string} [opts.rootDir]
* @param {string} [opts.nodeModulesDir]
* @param {string} [opts.npmScope]
* @param {string} opts.classPrefix
* @param {string} opts.classBareImport
* @param {string} opts.tagPrefix
* @param {string} opts.tagBareImport
* @param {string} opts.tagBareImport
* @param {string} [opts.exportsMapJsonFileName]
* @returns
*/
export async function extendLionDocs({
rootDir,
nodeModulesDir,
npmScope,
classPrefix,
classBareImport,
tagPrefix,
tagBareImport,
exportsMapJsonFileName,
}) {
const changes = await generateExtendDocsConfig({
nodeModulesDir,
npmScope,
classPrefix,
classBareImport,
tagPrefix,
tagBareImport,
exportsMapJsonFileName,
});
const extendDocsConfig = {
changes,
Expand Down

0 comments on commit 835c280

Please sign in to comment.