virmator 11.2.0 → 11.3.1

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.
@@ -24,6 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.docsCommandDefinition = void 0;
27
+ const node_js_1 = require("@augment-vir/node-js");
27
28
  const path_1 = require("path");
28
29
  const define_command_1 = require("../api/command/define-command");
29
30
  const define_command_inputs_1 = require("../api/command/define-command-inputs");
@@ -85,7 +86,14 @@ exports.docsCommandDefinition = (0, define_command_1.defineCommand)({
85
86
  },
86
87
  ],
87
88
  };
88
- }, async ({ repoDir, packageDir, configFiles, filteredInputArgs, inputSubCommands, subCommands, packageBinName, }) => {
89
+ }, async ({ repoDir, packageDir, configFiles, filteredInputArgs, inputSubCommands, subCommands, packageBinName, logging, }) => {
90
+ const packageJson = await (0, node_js_1.readPackageJson)(repoDir);
91
+ if (packageJson.private) {
92
+ logging.stdout('Package is private. Skipping doc check.');
93
+ return {
94
+ success: true,
95
+ };
96
+ }
89
97
  const typeDocConfigPath = (0, path_1.join)(repoDir, configFiles.typeDocConfig.copyToPathRelativeToRepoDir);
90
98
  return await (0, typescript_config_file_1.withTypescriptConfigFile)(typeDocConfigPath, async (loadedConfig) => {
91
99
  const containsManualMarkdownArgs = filteredInputArgs.some((arg) => arg.match(/\.md['"]?$/));
@@ -67,7 +67,7 @@ exports.frontendCommandDefinition = (0, define_command_1.defineCommand)({
67
67
  configFileDefinition: inputs.configFiles.vite,
68
68
  packageDir: package_paths_1.virmatorPackageDir,
69
69
  });
70
- const tempFilePath = (0, path_1.join)((0, path_1.dirname)(viteConfigPath), `config-output-${Date.now()}-${(0, common_1.randomString)()}.cjs`);
70
+ const tempFilePath = (0, path_1.join)((0, path_1.dirname)(viteConfigPath), `generated-config-${Date.now()}-${(0, common_1.randomString)()}.cjs`);
71
71
  const oldWrite = process.stdout.write;
72
72
  try {
73
73
  const needToBuild = !!inputs.inputSubCommands.length;
@@ -2,5 +2,5 @@ export declare const baseNcuConfig: {
2
2
  readonly color: true;
3
3
  readonly upgrade: true;
4
4
  readonly root: true;
5
- readonly reject: readonly ["npm-check-updates", "vite", "chai"];
5
+ readonly reject: readonly ["npm-check-updates", "vite", "chai", "prettier"];
6
6
  };
@@ -12,5 +12,7 @@ exports.baseNcuConfig = {
12
12
  'vite',
13
13
  /** V5 requires "type":"module" */
14
14
  'chai',
15
+ /** 3.2.3 breaks tsconfig.json formatting. */
16
+ 'prettier',
15
17
  ],
16
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "virmator",
3
- "version": "11.2.0",
3
+ "version": "11.3.1",
4
4
  "description": "Handle common package configs, commands, and dependencies.",
5
5
  "keywords": [
6
6
  "automation",
@@ -62,7 +62,7 @@
62
62
  "@types/fs-extra": "^11.0.4",
63
63
  "@types/glob": "^8.1.0",
64
64
  "@types/mocha": "^10.0.6",
65
- "@types/node": "^20.11.0",
65
+ "@types/node": "^20.11.5",
66
66
  "@types/semver": "^7.5.6",
67
67
  "@web/dev-server-esbuild": "^1.0.1",
68
68
  "@web/test-runner": "^0.18.0",
@@ -72,7 +72,7 @@
72
72
  "chai": "^4.3.10",
73
73
  "cspell": "^8.3.2",
74
74
  "dependency-cruiser": "^16.0.0",
75
- "element-vir": "^19.0.0",
75
+ "element-vir": "^20.0.6",
76
76
  "esbuild": "^0.19.11",
77
77
  "fs-extra": "^11.2.0",
78
78
  "istanbul-smart-text-reporter": "^1.1.3",
@@ -80,7 +80,7 @@
80
80
  "mocha": "^10.2.0",
81
81
  "mocha-spec-reporter-with-file-names": "^0.0.3",
82
82
  "npm-check-updates": "~16.12.3",
83
- "prettier": "^3.1.1",
83
+ "prettier": "3.2.2",
84
84
  "prettier-plugin-interpolated-html-tags": "^1.0.3",
85
85
  "prettier-plugin-jsdoc": "^1.3.0",
86
86
  "prettier-plugin-multiline-arrays": "^3.0.1",
@@ -94,9 +94,9 @@
94
94
  "tsconfig-paths": "^4.2.0",
95
95
  "typedoc": "^0.25.7",
96
96
  "typescript": "5.3.3",
97
- "virmator": "file:./",
97
+ "virmator": "^11.3.0",
98
98
  "vite": "^4.5.0",
99
- "vite-tsconfig-paths": "^4.2.3"
99
+ "vite-tsconfig-paths": "^4.3.1"
100
100
  },
101
101
  "overrides": {
102
102
  "semver": "^7.5.4",