@forsakringskassan/docs-generator 3.22.3 → 3.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -2,18 +2,18 @@ import { createRequire as $createRequire } from "node:module";
2
2
 
3
3
  const require = $createRequire(import.meta.url);
4
4
 
5
- import { ApiItemKind, ApiModel } from '@microsoft/api-extractor-model';
6
- import { Z as Ze, M as MarkdownItCallable, g as fm, s as strToU8, z as zlibSync, h as strFromU8, d as dedent, i as closest, j as distance, k as isCI, m as moduleImporter, l as cliProgress, t as tinylr, w as watch, n as createInstance, o as fse, p as inter } from './vendor-DDcR0yPO.mjs';
7
- import path__default from 'node:path';
8
5
  import fs from 'node:fs/promises';
6
+ import { ApiItemKind, ApiModel } from '@microsoft/api-extractor-model';
7
+ import sp__default from 'node:path';
9
8
  import crypto from 'node:crypto';
10
9
  import path from 'node:path/posix';
11
10
  import { exec, execSync } from 'node:child_process';
12
- import { g as generateId, n as normalizePath, f as formatCode, p as parseInfostring, a as getFingerprint, h as hasTag, b as parseImport, d as findTag, e as getOutputFilePath, i as isDocumentPage, j as findDocument, k as getDocumentBody, l as htmlencode, c as createMarkdownRenderer } from './create-markdown-renderer-DtRTTcqZ.mjs';
11
+ import { g as generateId, n as normalizePath, f as formatCode, p as parseInfostring, a as getFingerprint, h as hasTag, b as parseImport, d as findTag, e as getOutputFilePath, i as isDocumentPage, j as findDocument, k as getDocumentBody, l as htmlencode, c as createMarkdownRenderer } from './create-markdown-renderer-Dg1icK2a.mjs';
13
12
  import { fileURLToPath } from 'node:url';
14
13
  import { DocExcerpt } from '@microsoft/tsdoc';
14
+ import { M as MarkdownItCallable, b as fm, s as strToU8, z as zlibSync, e as strFromU8, d as dedent, g as closest, h as distance, i as isCI, m as moduleImporter, j as cliProgress, t as tinylr, w as watch, k as createInstance, l as fse, n as inter } from './vendor-U53saQGg.mjs';
15
15
  import pkg from '../package.json' with { type: "json" };
16
- import fs__default, { existsSync, readFileSync, copyFileSync } from 'node:fs';
16
+ import fs$1, { existsSync, readFileSync, copyFileSync } from 'node:fs';
17
17
  import { version } from 'vue';
18
18
  import { g as generateCode } from './vue3-B2fm2G4T.mjs';
19
19
  import util, { promisify, styleText } from 'node:util';
@@ -27,18 +27,18 @@ import { t as tsconfigPath } from './tsconfig-path-ZL5FzYwU.mjs';
27
27
  import esbuild$1, { build } from 'esbuild';
28
28
  import { Worker } from 'node:worker_threads';
29
29
  import nunjucks from 'nunjucks';
30
+ import 'synckit';
30
31
  import 'fs';
31
- import 'node:events';
32
- import 'node:stream';
33
- import 'node:string_decoder';
34
- import 'node:module';
35
32
  import 'constants';
36
33
  import 'stream';
37
34
  import 'util';
38
35
  import 'assert';
39
36
  import 'path';
37
+ import 'node:module';
40
38
  import 'readline';
41
39
  import 'events';
40
+ import 'node:events';
41
+ import 'node:stream';
42
42
  import 'node:os';
43
43
  import 'http';
44
44
  import 'https';
@@ -96,9 +96,9 @@ async function fileMatcher(patterns, options) {
96
96
  const fileList = await Array.fromAsync(fs.glob(patterns, { exclude }));
97
97
  return memoize((filename, context) => {
98
98
  const matches = fileList.filter((file) => {
99
- const regex = path__default.sep === "/" ? /^(?:\.\.\/)+/ : /^(?:\.\.\\)+/;
99
+ const regex = sp__default.sep === "/" ? /^(?:\.\.\/)+/ : /^(?:\.\.\\)+/;
100
100
  const stem = file.replace(regex, "");
101
- return path__default.matchesGlob(stem, `**/${filename}`);
101
+ return sp__default.matchesGlob(stem, `**/${filename}`);
102
102
  });
103
103
  if (matches.length === 0) {
104
104
  const additionalInfo = context ? ` (${context})` : "";
@@ -512,7 +512,7 @@ function renderInterface() {
512
512
  }
513
513
 
514
514
  function getFilenames(patterns) {
515
- return Ze(patterns, { posix: true });
515
+ return Array.fromAsync(fs.glob(patterns), (it) => it.replaceAll("\\", "/"));
516
516
  }
517
517
  function pluralize(text, array) {
518
518
  const s = array.length !== 1 ? "s" : "";
@@ -775,7 +775,7 @@ function manifestProcessor(options = {}) {
775
775
  context.setState(manifestState, manifest);
776
776
  if (markdown) {
777
777
  const content = normalize(renderMarkdown(manifest));
778
- await fs.mkdir(path__default.dirname(markdown), { recursive: true });
778
+ await fs.mkdir(sp__default.dirname(markdown), { recursive: true });
779
779
  if (verify) {
780
780
  const actual = normalize(
781
781
  await fs.readFile(markdown, "utf8")
@@ -789,7 +789,7 @@ function manifestProcessor(options = {}) {
789
789
  }
790
790
  if (json) {
791
791
  const content = renderJSON(manifest);
792
- await fs.mkdir(path__default.dirname(json), { recursive: true });
792
+ await fs.mkdir(sp__default.dirname(json), { recursive: true });
793
793
  await fs.writeFile(json, content, "utf8");
794
794
  }
795
795
  }
@@ -797,16 +797,16 @@ function manifestProcessor(options = {}) {
797
797
  }
798
798
 
799
799
  async function copyFile(src, dst) {
800
- await fs.mkdir(path__default.dirname(dst), { recursive: true });
800
+ await fs.mkdir(sp__default.dirname(dst), { recursive: true });
801
801
  await fs.cp(src, dst);
802
802
  }
803
803
  function equal(values) {
804
804
  return values[0] === values[1];
805
805
  }
806
806
  function commonPath(a, b) {
807
- const it = zip(a.split(path__default.sep), b.split(path__default.sep));
807
+ const it = zip(a.split(sp__default.sep), b.split(sp__default.sep));
808
808
  const common = Array.from(takeWhile(it, equal), (it2) => it2[0]);
809
- return common.join(path__default.sep);
809
+ return common.join(sp__default.sep);
810
810
  }
811
811
  async function extractExamples(page, options) {
812
812
  const { outputFolder } = options;
@@ -815,11 +815,11 @@ async function extractExamples(page, options) {
815
815
  continue;
816
816
  }
817
817
  const common = commonPath(
818
- path__default.resolve(outputFolder),
819
- path__default.resolve(example.src)
818
+ sp__default.resolve(outputFolder),
819
+ sp__default.resolve(example.src)
820
820
  );
821
- const subpath = path__default.relative(common, path__default.resolve(example.src));
822
- await copyFile(example.src, path__default.join(outputFolder, "files", subpath));
821
+ const subpath = sp__default.relative(common, sp__default.resolve(example.src));
822
+ await copyFile(example.src, sp__default.join(outputFolder, "files", subpath));
823
823
  }
824
824
  }
825
825
  function isMarkdown(doc) {
@@ -882,10 +882,10 @@ async function extractDocument(doc, docs, partials, options) {
882
882
  return onApiContainer(docs, partials, container);
883
883
  });
884
884
  const src = doc.fileInfo.fullPath;
885
- const dst = path__default.join(outputFolder, "files", doc.fileInfo.fullPath);
885
+ const dst = sp__default.join(outputFolder, "files", doc.fileInfo.fullPath);
886
886
  const fm2 = await getFrontMatter(src);
887
887
  const content = `${fm2}${markdown}`;
888
- await fs.mkdir(path__default.dirname(dst), { recursive: true });
888
+ await fs.mkdir(sp__default.dirname(dst), { recursive: true });
889
889
  await fs.writeFile(dst, content, "utf8");
890
890
  }
891
891
  async function extractDocuments(docs, partials, options) {
@@ -894,9 +894,9 @@ async function extractDocuments(docs, partials, options) {
894
894
  }
895
895
  async function extractPartials(partials, options) {
896
896
  const { outputFolder } = options;
897
- const dst = path__default.join(outputFolder, "partials.json");
897
+ const dst = sp__default.join(outputFolder, "partials.json");
898
898
  const content = JSON.stringify(Array.from(partials.values()), null, 2);
899
- await fs.mkdir(path__default.dirname(dst), { recursive: true });
899
+ await fs.mkdir(sp__default.dirname(dst), { recursive: true });
900
900
  await fs.writeFile(dst, content, "utf8");
901
901
  }
902
902
  async function extractLinks(docs, options) {
@@ -918,8 +918,8 @@ async function extractLinks(docs, options) {
918
918
  const sorted = Array.from(links).toSorted(cmp);
919
919
  const entries = Object.fromEntries(sorted);
920
920
  const content = JSON.stringify(entries, null, 2);
921
- const dst = path__default.join(outputFolder, "links.json");
922
- await fs.mkdir(path__default.dirname(dst), { recursive: true });
921
+ const dst = sp__default.join(outputFolder, "links.json");
922
+ await fs.mkdir(sp__default.dirname(dst), { recursive: true });
923
923
  await fs.writeFile(dst, content, "utf8");
924
924
  }
925
925
  function generateIndex$1(options) {
@@ -956,7 +956,7 @@ function generateIndex$1(options) {
956
956
  }
957
957
  async function writeIndex(options) {
958
958
  const { outputFolder, version, metadata } = options;
959
- const dst = path__default.join(outputFolder, "index.mjs");
959
+ const dst = sp__default.join(outputFolder, "index.mjs");
960
960
  const lines = generateIndex$1({
961
961
  generatorVersion: pkg.version,
962
962
  version,
@@ -966,7 +966,7 @@ async function writeIndex(options) {
966
966
  }
967
967
  async function writeDts(options) {
968
968
  const { outputFolder } = options;
969
- const dst = path__default.join(outputFolder, "index.d.mts");
969
+ const dst = sp__default.join(outputFolder, "index.d.mts");
970
970
  const lines = [
971
971
  `import { ExtractedDocsMetadata, SourceFiles } from "@forsakringskassan/docs-generator";`,
972
972
  ``,
@@ -1031,7 +1031,7 @@ function extractMarkdownProcessor(options) {
1031
1031
  }
1032
1032
 
1033
1033
  function getExampleName(filename) {
1034
- return path__default.parse(filename).name;
1034
+ return sp__default.parse(filename).name;
1035
1035
  }
1036
1036
 
1037
1037
  const vueMajor = Number(version.split(".", 2)[0]);
@@ -1052,7 +1052,7 @@ function generateExample(options) {
1052
1052
  const filename = fileMatcher(parsed.filename, "when importing example");
1053
1053
  const language2 = parsed.extension;
1054
1054
  const comments = parsed.comments;
1055
- const content = fs__default.readFileSync(filename, "utf8");
1055
+ const content = fs$1.readFileSync(filename, "utf8");
1056
1056
  const example = generateExample({
1057
1057
  ...options,
1058
1058
  source: content,
@@ -1129,7 +1129,7 @@ function generateStaticExample(options) {
1129
1129
  };
1130
1130
  }
1131
1131
 
1132
- const url = new URL("./worker-CNOMn6wO.mjs", import.meta.url);
1132
+ const url = new URL("./worker-DfGi2yYp.mjs", import.meta.url);
1133
1133
  const filePath = fileURLToPath(url);
1134
1134
 
1135
1135
  const md$5 = MarkdownItCallable();
@@ -1315,7 +1315,7 @@ async function getFiles(entry) {
1315
1315
  const filenames = await Array.fromAsync(fs.glob("**", { cwd }));
1316
1316
  const sorted = filenames.toSorted((a, b) => a.localeCompare(b));
1317
1317
  for (const filename of sorted) {
1318
- const filePath = path__default.join(cwd, filename);
1318
+ const filePath = sp__default.join(cwd, filename);
1319
1319
  const st = await fs.lstat(filePath);
1320
1320
  if (!st.isFile()) {
1321
1321
  continue;
@@ -1607,7 +1607,7 @@ function pathFromDoc({ fileInfo }) {
1607
1607
  return [fileInfo.path.replaceAll("\\", "/"), true];
1608
1608
  }
1609
1609
  return [
1610
- `./${path__default.join(fileInfo.path, fileInfo.name).replaceAll("\\", "/")}`,
1610
+ `./${sp__default.join(fileInfo.path, fileInfo.name).replaceAll("\\", "/")}`,
1611
1611
  false
1612
1612
  ];
1613
1613
  }
@@ -2113,7 +2113,7 @@ function toArray$1(value) {
2113
2113
  return Array.isArray(value) ? value : [value];
2114
2114
  }
2115
2115
  function isIndexPage(parsed) {
2116
- const folder = path__default.basename(parsed.dir);
2116
+ const folder = sp__default.basename(parsed.dir);
2117
2117
  if (parsed.name === folder) {
2118
2118
  return true;
2119
2119
  }
@@ -2189,8 +2189,8 @@ function normalizeBody(text) {
2189
2189
  return text;
2190
2190
  }
2191
2191
  function parseFile$2(filePath, basePath, content) {
2192
- const relative = basePath ? path__default.relative(basePath, normalizePath(filePath)) : normalizePath(filePath);
2193
- const parsed = path__default.parse(relative);
2192
+ const relative = basePath ? sp__default.relative(basePath, normalizePath(filePath)) : normalizePath(filePath);
2193
+ const parsed = sp__default.parse(relative);
2194
2194
  const blocks = fm(content);
2195
2195
  const attributes = blocks.attributes;
2196
2196
  const isIndex = isIndexPage(parsed);
@@ -2881,7 +2881,7 @@ async function translateAPI(filePath) {
2881
2881
 
2882
2882
  function parseAPI(filePath, api) {
2883
2883
  const relative = normalizePath(filePath);
2884
- const parsedPath = path__default.parse(relative);
2884
+ const parsedPath = sp__default.parse(relative);
2885
2885
  const componentName = parsedPath.name;
2886
2886
  let html = "";
2887
2887
  if (api.models.length > 0) {
@@ -2910,7 +2910,7 @@ function parseAPI(filePath, api) {
2910
2910
  }
2911
2911
  async function parseTranslation(slug, filePath) {
2912
2912
  const relative = normalizePath(filePath);
2913
- const parsedPath = path__default.parse(relative);
2913
+ const parsedPath = sp__default.parse(relative);
2914
2914
  const componentName = parsedPath.name;
2915
2915
  const content = await fs.readFile(filePath, "utf8");
2916
2916
  return {
@@ -2939,7 +2939,7 @@ async function glob(pattern) {
2939
2939
  const cwd = process.cwd();
2940
2940
  const iterator = fs.glob(pattern, { withFileTypes: true });
2941
2941
  const ents = await Array.fromAsync(iterator);
2942
- return ents.filter((st) => st.isFile()).map((st) => path__default.relative(cwd, path__default.join(st.parentPath, st.name)));
2942
+ return ents.filter((st) => st.isFile()).map((st) => sp__default.relative(cwd, sp__default.join(st.parentPath, st.name)));
2943
2943
  }
2944
2944
  async function globAll(pattern) {
2945
2945
  if (!pattern) {
@@ -3013,8 +3013,8 @@ function parseFile$1(filePath, basePath, content) {
3013
3013
  if (!title) {
3014
3014
  throw new Error(`No title property set in "${filePath}"`);
3015
3015
  }
3016
- const relative = basePath ? path__default.relative(basePath, normalizePath(filePath)) : normalizePath(filePath);
3017
- const parsed = path__default.parse(relative);
3016
+ const relative = basePath ? sp__default.relative(basePath, normalizePath(filePath)) : normalizePath(filePath);
3017
+ const parsed = sp__default.parse(relative);
3018
3018
  const filename = parsed.name.toLowerCase();
3019
3019
  const name = parsed.name;
3020
3020
  const urlpath = parsed.dir;
@@ -3077,7 +3077,7 @@ async function compileSassString(dst, filePath) {
3077
3077
  style: "expanded",
3078
3078
  importers: [new NodePackageImporter(), moduleImporter()]
3079
3079
  });
3080
- await fs.mkdir(path__default.dirname(dst), { recursive: true });
3080
+ await fs.mkdir(sp__default.dirname(dst), { recursive: true });
3081
3081
  await fs.writeFile(dst, result.css, "utf8");
3082
3082
  }
3083
3083
 
@@ -3170,7 +3170,7 @@ async function compileScript(options) {
3170
3170
  const sanitizedName = name.replaceAll(/[^a-z0-9-]+/gi, "_");
3171
3171
  try {
3172
3172
  const entryPoints = [src instanceof URL ? fileURLToPath(src) : src];
3173
- const outfile = path__default.join("temp", `asset-${sanitizedName}.js`);
3173
+ const outfile = sp__default.join("temp", `asset-${sanitizedName}.js`);
3174
3174
  const external = [...assets, ...vendor.map(toExternalVendor)];
3175
3175
  const format = buildOptions.format ?? "esm";
3176
3176
  await esbuild({
@@ -3191,12 +3191,12 @@ async function compileScript(options) {
3191
3191
  const fingerprint = getFingerprint(content);
3192
3192
  const integrity = getIntegrity(content);
3193
3193
  const filename = `${outputName}.js`.replaceAll("[name]", () => sanitizedName).replaceAll("[hash]", () => fingerprint);
3194
- const dst = path__default.join(outputFolder, filename);
3195
- const publicPath = path__default.posix.join(
3196
- path__default.posix.relative(rootDir, outputFolder),
3194
+ const dst = sp__default.join(outputFolder, filename);
3195
+ const publicPath = sp__default.posix.join(
3196
+ sp__default.posix.relative(rootDir, outputFolder),
3197
3197
  filename
3198
3198
  );
3199
- await fs$1.mkdir(path__default.dirname(dst), { recursive: true });
3199
+ await fs$1.mkdir(sp__default.dirname(dst), { recursive: true });
3200
3200
  await fs$1.rename(outfile, dst);
3201
3201
  const stat = await fs$1.stat(dst);
3202
3202
  return {
@@ -3297,7 +3297,7 @@ function compileProcessorRuntime(generator, distDir, processors) {
3297
3297
  const assetName = [
3298
3298
  "processors",
3299
3299
  processor.name.replace(/-processor/, ""),
3300
- entry.name ?? path__default.parse(entry.src).name
3300
+ entry.name ?? sp__default.parse(entry.src).name
3301
3301
  ].join("/");
3302
3302
  const name = processorRuntimeName(processor, entry);
3303
3303
  const bundled = new URL(`${name}.mjs`, distDir);
@@ -3438,9 +3438,9 @@ function findTemplate(folders, from, src, format) {
3438
3438
  folders = [...folders, templateDirectory];
3439
3439
  const template = `${layout}.template.${format}`;
3440
3440
  const searchPaths = folders.map((it) => {
3441
- return path__default.join(it, template);
3441
+ return sp__default.join(it, template);
3442
3442
  });
3443
- const found = searchPaths.some((it) => fs__default.existsSync(it));
3443
+ const found = searchPaths.some((it) => fs$1.existsSync(it));
3444
3444
  if (!found) {
3445
3445
  throw new MissingTemplateError(from, template, format, folders);
3446
3446
  }
@@ -3505,7 +3505,7 @@ Make sure the name is correct and the template file exists in one of the listed
3505
3505
  }
3506
3506
  findTemplateFile(name) {
3507
3507
  const { folders } = this;
3508
- const searchPaths = folders.map((it) => path__default.join(it, name));
3508
+ const searchPaths = folders.map((it) => sp__default.join(it, name));
3509
3509
  return searchPaths.find((it) => existsSync(it));
3510
3510
  }
3511
3511
  }
@@ -3574,8 +3574,8 @@ function findSidenav(doc, tree) {
3574
3574
  }
3575
3575
  function cache(cacheFolder, outputFolder) {
3576
3576
  return (it) => {
3577
- const cacheFile = path__default.join(cacheFolder, it.outputFile);
3578
- const outputFile = path__default.join(outputFolder, it.outputFile);
3577
+ const cacheFile = sp__default.join(cacheFolder, it.outputFile);
3578
+ const outputFile = sp__default.join(outputFolder, it.outputFile);
3579
3579
  if (existsSync(cacheFile)) {
3580
3580
  copyFileSync(cacheFile, outputFile);
3581
3581
  return false;
@@ -3592,8 +3592,8 @@ async function compileExamples(options) {
3592
3592
  ...assets.map((it) => it.name),
3593
3593
  ...vendors.map((it) => it.package)
3594
3594
  ];
3595
- const cacheFolder = path__default.posix.join(options.cacheFolder, fileInfo.path);
3596
- const outputFolder = path__default.posix.join(options.outputFolder, fileInfo.path);
3595
+ const cacheFolder = sp__default.posix.join(options.cacheFolder, fileInfo.path);
3596
+ const outputFolder = sp__default.posix.join(options.outputFolder, fileInfo.path);
3597
3597
  const cacheMiss = cache(cacheFolder, outputFolder);
3598
3598
  const dirtyTasks = tasks.filter(cacheMiss);
3599
3599
  if (dirtyTasks.length === 0) {
@@ -3629,8 +3629,8 @@ async function compileStandalones(options) {
3629
3629
  if (tasks.length === 0) {
3630
3630
  return;
3631
3631
  }
3632
- const cacheFolder = path__default.posix.join(options.cacheFolder, fileInfo.path);
3633
- const outputFolder = path__default.posix.join(options.outputFolder, fileInfo.path);
3632
+ const cacheFolder = sp__default.posix.join(options.cacheFolder, fileInfo.path);
3633
+ const outputFolder = sp__default.posix.join(options.outputFolder, fileInfo.path);
3634
3634
  const cacheMiss = cache(cacheFolder, outputFolder);
3635
3635
  const dirtyTasks = tasks.filter(cacheMiss);
3636
3636
  const standaloneTemplate = findTemplate(
@@ -3639,7 +3639,7 @@ async function compileStandalones(options) {
3639
3639
  "example"
3640
3640
  );
3641
3641
  for (const task of dirtyTasks) {
3642
- const outputFile = path__default.join(outputFolder, task.outputFile);
3642
+ const outputFile = sp__default.join(outputFolder, task.outputFile);
3643
3643
  const content = await renderTemplate(standaloneTemplate, {
3644
3644
  ...templateData,
3645
3645
  content: task.content
@@ -3670,7 +3670,7 @@ async function render(doc, docs, options) {
3670
3670
  return null;
3671
3671
  }
3672
3672
  const dst = getOutputFilePath(outputFolder, fileInfo);
3673
- const mkdir = fs.mkdir(path__default.dirname(dst), { recursive: true });
3673
+ const mkdir = fs.mkdir(sp__default.dirname(dst), { recursive: true });
3674
3674
  const topnav = nav.topnav;
3675
3675
  const sidenav = findSidenav(doc, nav.sidenav);
3676
3676
  if (sidenav && isNavigationSection(sidenav)) {
@@ -3736,12 +3736,12 @@ async function render(doc, docs, options) {
3736
3736
  fileMatcher: exampleFileMatcher
3737
3737
  });
3738
3738
  if (example.output) {
3739
- const { dir, name } = path__default.parse(example.output);
3739
+ const { dir, name } = sp__default.parse(example.output);
3740
3740
  if (example.task) {
3741
3741
  generatedExamples.push(example.task);
3742
3742
  }
3743
3743
  generatedStandalone.push({
3744
- outputFile: path__default.join(dir, `${name}.html`),
3744
+ outputFile: sp__default.join(dir, `${name}.html`),
3745
3745
  content: example.markup
3746
3746
  });
3747
3747
  }
@@ -4037,7 +4037,7 @@ function getAssetSource(asset) {
4037
4037
  return lines.join("\n");
4038
4038
  }
4039
4039
  async function compileVendor(assetFolder, vendor, options) {
4040
- const name = path__default.isAbsolute(vendor.package) ? path__default.basename(vendor.package) : vendor.package;
4040
+ const name = sp__default.isAbsolute(vendor.package) ? sp__default.basename(vendor.package) : vendor.package;
4041
4041
  const slug = slugify(name);
4042
4042
  const outfile = `temp/vendor-${slug}.out.js`;
4043
4043
  const tmpfile = `temp/vendor-${slug}.in.js`;
@@ -4063,7 +4063,7 @@ async function compileVendor(assetFolder, vendor, options) {
4063
4063
  const fingerprint = getFingerprint(content);
4064
4064
  const integrity = getIntegrity(content);
4065
4065
  const filename = `vendor-${slug}-${fingerprint}.js`;
4066
- const dst = path__default.join(assetFolder, filename).replaceAll("\\", "/");
4066
+ const dst = sp__default.join(assetFolder, filename).replaceAll("\\", "/");
4067
4067
  await fs.rename(outfile, dst);
4068
4068
  const stat = await fs.stat(dst);
4069
4069
  return {
@@ -4327,7 +4327,7 @@ class Generator {
4327
4327
  this.bundleDefaultFont = options.bundleDefaultFont ?? true;
4328
4328
  this.outputFolder = options.outputFolder ?? "./public";
4329
4329
  this.cacheFolder = options.cacheFolder ?? "./temp/docs";
4330
- this.assetFolder = path__default.posix.join(this.outputFolder, "assets");
4330
+ this.assetFolder = sp__default.posix.join(this.outputFolder, "assets");
4331
4331
  this.exampleFolders = options.exampleFolders ?? [];
4332
4332
  this.templateFolders = options.templateFolders ?? [];
4333
4333
  this.processors = options.processors ?? [];
@@ -4562,7 +4562,7 @@ class Generator {
4562
4562
  const { outputFolder, cacheFolder, assetFolder } = this;
4563
4563
  await fs.rm(cacheFolder, { force: true, recursive: true });
4564
4564
  if (existsSync(outputFolder)) {
4565
- await fs.mkdir(path__default.dirname(cacheFolder), { recursive: true });
4565
+ await fs.mkdir(sp__default.dirname(cacheFolder), { recursive: true });
4566
4566
  await fse.copy(outputFolder, cacheFolder);
4567
4567
  await fs.rm(outputFolder, { recursive: true });
4568
4568
  }
@@ -4579,7 +4579,7 @@ class Generator {
4579
4579
  const filename = `inter-${subset}-wght-normal.woff2`;
4580
4580
  const module = `@fontsource-variable/inter/files/${filename}`;
4581
4581
  const src = fileURLToPath(import.meta.resolve(module));
4582
- const dst = path__default.join(assetFolder, filename);
4582
+ const dst = sp__default.join(assetFolder, filename);
4583
4583
  return fs.copyFile(src, dst);
4584
4584
  });
4585
4585
  await Promise.all(files);