@virmator/core 14.7.0 → 14.7.2
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.
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import {baseTypedocConfig} from '@virmator/docs/configs/typedoc.config.base';
|
|
2
|
-
import {
|
|
2
|
+
import {dirname, join} from 'node:path';
|
|
3
|
+
import {fileURLToPath} from 'node:url';
|
|
3
4
|
import {type TypeDocOptions} from 'typedoc';
|
|
4
5
|
|
|
5
|
-
const
|
|
6
|
-
const
|
|
6
|
+
const indexTsFile = join(dirname(dirname(fileURLToPath(import.meta.url))), 'src', 'index.ts');
|
|
7
|
+
const outDirPath = join(dirname(dirname(fileURLToPath(import.meta.url))), 'dist-docs');
|
|
7
8
|
|
|
8
9
|
export const typeDocConfig: Partial<TypeDocOptions> = {
|
|
9
10
|
...baseTypedocConfig,
|
|
10
|
-
out:
|
|
11
|
+
out: outDirPath,
|
|
11
12
|
entryPoints: [
|
|
12
|
-
indexTsFile,
|
|
13
|
+
indexTsFile.replaceAll('\\', '/'),
|
|
13
14
|
],
|
|
14
15
|
intentionallyNotExported: [],
|
|
15
16
|
defaultCategory: 'MISSING CATEGORY',
|
package/dist/api/copy-configs.js
CHANGED
|
@@ -63,7 +63,9 @@ packageName) {
|
|
|
63
63
|
try {
|
|
64
64
|
const copyFromContents = (await readFile(config.fullCopyFromPath)).toString();
|
|
65
65
|
const writeContents = transform ? await transform(copyFromContents) : copyFromContents;
|
|
66
|
-
await mkdir(dirname(config.fullCopyToPath), {
|
|
66
|
+
await mkdir(dirname(config.fullCopyToPath), {
|
|
67
|
+
recursive: true,
|
|
68
|
+
});
|
|
67
69
|
await writeFile(config.fullCopyToPath, writeContents);
|
|
68
70
|
log.info(`${logPrefix}Copied ${baseConfigFileName}`);
|
|
69
71
|
}
|
|
@@ -18,7 +18,9 @@ export async function withImportedTsFile({ inputPath, outputPath }, moduleType,
|
|
|
18
18
|
return await callback(loadedConfig);
|
|
19
19
|
}
|
|
20
20
|
finally {
|
|
21
|
-
await wrapInTry(() => rm(compiledPath, {
|
|
21
|
+
await wrapInTry(() => rm(compiledPath, {
|
|
22
|
+
force: true,
|
|
23
|
+
}));
|
|
22
24
|
}
|
|
23
25
|
}
|
|
24
26
|
/**
|
|
@@ -35,7 +37,9 @@ export async function withCompiledTsFile({ inputPath, outputPath }, moduleType,
|
|
|
35
37
|
return await callback(compiledPath);
|
|
36
38
|
}
|
|
37
39
|
finally {
|
|
38
|
-
await wrapInTry(() => rm(compiledPath, {
|
|
40
|
+
await wrapInTry(() => rm(compiledPath, {
|
|
41
|
+
force: true,
|
|
42
|
+
}));
|
|
39
43
|
}
|
|
40
44
|
}
|
|
41
45
|
function createOutfilePath(inputFilePath, moduleType) {
|