feat(extend-lion-docs): release + forward settings from rocket preset
This commit is contained in:
parent
269ad57fdd
commit
835c2804a9
4 changed files with 22 additions and 0 deletions
5
.changeset/cool-lemons-search.md
Normal file
5
.changeset/cool-lemons-search.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'rocket-preset-extend-lion-docs': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Handle exports that do not have a Lion prefix
|
||||||
5
.changeset/curly-ants-beg.md
Normal file
5
.changeset/curly-ants-beg.md
Normal file
|
|
@ -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
.changeset/weak-pears-sing.md
Normal file
5
.changeset/weak-pears-sing.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'rocket-preset-extend-lion-docs': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Support usage without a subfolder for the npm scope (via setting `npmScope: ''`)
|
||||||
|
|
@ -14,26 +14,33 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||||
* @param {object} opts
|
* @param {object} opts
|
||||||
* @param {string} [opts.rootDir]
|
* @param {string} [opts.rootDir]
|
||||||
* @param {string} [opts.nodeModulesDir]
|
* @param {string} [opts.nodeModulesDir]
|
||||||
|
* @param {string} [opts.npmScope]
|
||||||
* @param {string} opts.classPrefix
|
* @param {string} opts.classPrefix
|
||||||
* @param {string} opts.classBareImport
|
* @param {string} opts.classBareImport
|
||||||
* @param {string} opts.tagPrefix
|
* @param {string} opts.tagPrefix
|
||||||
* @param {string} opts.tagBareImport
|
* @param {string} opts.tagBareImport
|
||||||
|
* @param {string} opts.tagBareImport
|
||||||
|
* @param {string} [opts.exportsMapJsonFileName]
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
export async function extendLionDocs({
|
export async function extendLionDocs({
|
||||||
rootDir,
|
rootDir,
|
||||||
nodeModulesDir,
|
nodeModulesDir,
|
||||||
|
npmScope,
|
||||||
classPrefix,
|
classPrefix,
|
||||||
classBareImport,
|
classBareImport,
|
||||||
tagPrefix,
|
tagPrefix,
|
||||||
tagBareImport,
|
tagBareImport,
|
||||||
|
exportsMapJsonFileName,
|
||||||
}) {
|
}) {
|
||||||
const changes = await generateExtendDocsConfig({
|
const changes = await generateExtendDocsConfig({
|
||||||
nodeModulesDir,
|
nodeModulesDir,
|
||||||
|
npmScope,
|
||||||
classPrefix,
|
classPrefix,
|
||||||
classBareImport,
|
classBareImport,
|
||||||
tagPrefix,
|
tagPrefix,
|
||||||
tagBareImport,
|
tagBareImport,
|
||||||
|
exportsMapJsonFileName,
|
||||||
});
|
});
|
||||||
const extendDocsConfig = {
|
const extendDocsConfig = {
|
||||||
changes,
|
changes,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue