@virmator/docs 14.30.3 → 14.30.5

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/docs.d.ts CHANGED
@@ -35,6 +35,7 @@ export declare const virmatorDocsPlugin: Readonly<Readonly<{
35
35
  readonly "mono-package": true;
36
36
  };
37
37
  readonly required: true;
38
+ readonly skipPrivatePackages: true;
38
39
  };
39
40
  };
40
41
  readonly npmDeps: {
@@ -97,6 +98,7 @@ export declare const virmatorDocsPlugin: Readonly<Readonly<{
97
98
  readonly "mono-package": true;
98
99
  };
99
100
  readonly required: true;
101
+ readonly skipPrivatePackages: true;
100
102
  };
101
103
  };
102
104
  readonly npmDeps: {
package/dist/docs.js CHANGED
@@ -54,6 +54,7 @@ export const virmatorDocsPlugin = defineVirmatorPlugin(import.meta.dirname, {
54
54
  [PackageType.MonoPackage]: true,
55
55
  },
56
56
  required: true,
57
+ skipPrivatePackages: true,
57
58
  },
58
59
  },
59
60
  npmDeps: {
@@ -98,6 +99,12 @@ export const virmatorDocsPlugin = defineVirmatorPlugin(import.meta.dirname, {
98
99
  .filter(check.isTruthy)
99
100
  .join(' ');
100
101
  async function runDocs({ packageDir, packageName, color, }) {
102
+ const packageJson = await readPackageJson(packageDir);
103
+ /** Private packages are never published, so they are never documented either. */
104
+ if (packageJson.private) {
105
+ log.faint(`Skipping docs in private package ${packageName}`);
106
+ return;
107
+ }
101
108
  try {
102
109
  await runShellCommand(mdCodeCommand, {
103
110
  cwd: packageDir,
@@ -109,7 +116,9 @@ export const virmatorDocsPlugin = defineVirmatorPlugin(import.meta.dirname, {
109
116
  })
110
117
  : undefined,
111
118
  logTransform: {
112
- stderr: (stderrInput) => stderrInput.replace('Run without --check to update.', 'Run without the "check" sub-command to update.'),
119
+ stderr: (stderrInput) => {
120
+ return stderrInput.replace('Run without --check to update.', 'Run without the "check" sub-command to update.');
121
+ },
113
122
  },
114
123
  includeErrorMessage: true,
115
124
  });
@@ -123,12 +132,6 @@ export const virmatorDocsPlugin = defineVirmatorPlugin(import.meta.dirname, {
123
132
  }
124
133
  }
125
134
  /** Run typedoc */
126
- const typedocVerb = checkOnly ? 'check' : 'generation';
127
- const packageJson = await readPackageJson(packageDir);
128
- if (packageJson.private) {
129
- log.faint(`Skipping typedoc ${typedocVerb} in private repo ${packageName}`);
130
- return;
131
- }
132
135
  // dynamic imports are not branches
133
136
  /* node:coverage ignore next 7 */
134
137
  const config = (await import(pathToFileURL(join(packageDir, configs.docs.configs.typedoc.copyToPath)).toString())).typeDocConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virmator/docs",
3
- "version": "14.30.3",
3
+ "version": "14.30.5",
4
4
  "description": "Default TS docs plugin for virmator.",
5
5
  "keywords": [
6
6
  "virmator",
@@ -36,19 +36,22 @@
36
36
  "@augment-vir/assert": "^32.2.1",
37
37
  "@augment-vir/common": "^32.2.1",
38
38
  "@augment-vir/node": "^32.2.1",
39
- "@virmator/core": "^14.30.3",
39
+ "@virmator/core": "^14.30.5",
40
40
  "mri": "^1.2.0",
41
- "runstorm": "^1.0.5"
41
+ "runstorm": "^1.0.6"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@augment-vir/test": "^32.2.1",
45
- "@types/node": "^26.1.1",
45
+ "@types/node": "^26.1.2",
46
46
  "c8": "^12.0.0",
47
47
  "esbuild": "^0.28.1",
48
48
  "istanbul-smart-text-reporter": "^1.1.5",
49
49
  "markdown-code-example-inserter": "^3.0.6",
50
50
  "typedoc": "^0.28.20"
51
51
  },
52
+ "peerDependencies": {
53
+ "typedoc": "*"
54
+ },
52
55
  "engines": {
53
56
  "node": ">=22"
54
57
  },