@virmator/publish 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.
- package/configs/typedoc.config.ts +6 -5
- package/dist/publish.js +6 -2
- package/package.json +2 -2
|
@@ -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', 'publish.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/publish.js
CHANGED
|
@@ -35,7 +35,9 @@ export const virmatorPublishPlugin = defineVirmatorPlugin(import.meta.dirname, {
|
|
|
35
35
|
},
|
|
36
36
|
}, async ({ cliInputs: { filteredArgs }, package: { cwdValidPackageJson, monoRepoRootPath, monoRepoPackages }, log, cwd, runPerPackage, runShellCommand, }) => {
|
|
37
37
|
if (process.env[inVirmatorEnvKey]) {
|
|
38
|
-
return {
|
|
38
|
+
return {
|
|
39
|
+
noLog: true,
|
|
40
|
+
};
|
|
39
41
|
}
|
|
40
42
|
else if (!cwdValidPackageJson) {
|
|
41
43
|
throw new VirmatorNoTraceError(`Missing "name" / "version" package.json fields.`);
|
|
@@ -51,7 +53,9 @@ export const virmatorPublishPlugin = defineVirmatorPlugin(import.meta.dirname, {
|
|
|
51
53
|
const nonFlagArgs = mri(filteredArgs)._;
|
|
52
54
|
const publishArgs = filteredArgs.filter((arg) => !nonFlagArgs.includes(arg));
|
|
53
55
|
if (Object.keys(publishArgs).length) {
|
|
54
|
-
log.faint({
|
|
56
|
+
log.faint({
|
|
57
|
+
publishArgs,
|
|
58
|
+
});
|
|
55
59
|
}
|
|
56
60
|
const isDryRun = publishArgs.includes('--dry-run');
|
|
57
61
|
const monoRepoPackageJsonFiles = await Promise.all(monoRepoPackages.map(async (monoRepoPackage) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@virmator/publish",
|
|
3
|
-
"version": "14.7.
|
|
3
|
+
"version": "14.7.2",
|
|
4
4
|
"description": "Default publish plugin for virmator.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"virmator",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@augment-vir/assert": "^31.64.0",
|
|
38
38
|
"@augment-vir/common": "^31.64.0",
|
|
39
39
|
"@augment-vir/node": "^31.64.0",
|
|
40
|
-
"@virmator/core": "^14.7.
|
|
40
|
+
"@virmator/core": "^14.7.2",
|
|
41
41
|
"mri": "^1.2.0",
|
|
42
42
|
"semver": "^7.7.4",
|
|
43
43
|
"simple-git": "^3.30.0",
|