@t8/docsgen 0.2.42 → 0.2.43
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/bin.js +4 -1
- package/package.json +1 -1
- package/src/bin/setContent.ts +5 -1
package/dist/bin.js
CHANGED
|
@@ -252,7 +252,8 @@ async function setCName({ dir = "", name, cname, jsorg }) {
|
|
|
252
252
|
// src/bin/setContent.ts
|
|
253
253
|
import { exec as defaultExec } from "node:child_process";
|
|
254
254
|
import { access, cp, mkdir, writeFile as writeFile2 } from "node:fs/promises";
|
|
255
|
-
import { join as join3 } from "node:path";
|
|
255
|
+
import { dirname, join as join3 } from "node:path";
|
|
256
|
+
import { fileURLToPath } from "node:url";
|
|
256
257
|
import { promisify } from "node:util";
|
|
257
258
|
|
|
258
259
|
// src/const/packageName.ts
|
|
@@ -666,6 +667,8 @@ function toFileContent(x) {
|
|
|
666
667
|
|
|
667
668
|
// src/bin/setContent.ts
|
|
668
669
|
var exec = promisify(defaultExec);
|
|
670
|
+
var __filename = fileURLToPath(import.meta.url);
|
|
671
|
+
var __dirname = dirname(__filename);
|
|
669
672
|
function getDefaultCodeStyleContent(cssRoot) {
|
|
670
673
|
return `
|
|
671
674
|
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-light.min.css" media="(prefers-color-scheme: light)">
|
package/package.json
CHANGED
package/src/bin/setContent.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { exec as defaultExec } from "node:child_process";
|
|
2
2
|
import { access, cp, mkdir, writeFile } from "node:fs/promises";
|
|
3
|
-
import { join } from "node:path";
|
|
3
|
+
import { dirname, join } from "node:path";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
4
5
|
import { promisify } from "node:util";
|
|
5
6
|
import { packageName } from "../const/packageName.ts";
|
|
6
7
|
import type { Context } from "../types/Context.ts";
|
|
@@ -18,6 +19,9 @@ import { toFileContent } from "./toFileContent.ts";
|
|
|
18
19
|
|
|
19
20
|
const exec = promisify(defaultExec);
|
|
20
21
|
|
|
22
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
23
|
+
const __dirname = dirname(__filename);
|
|
24
|
+
|
|
21
25
|
function getDefaultCodeStyleContent(cssRoot: string) {
|
|
22
26
|
return `
|
|
23
27
|
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-light.min.css" media="(prefers-color-scheme: light)">
|