virmator 6.6.5 → 6.7.0

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.
@@ -52,6 +52,7 @@ const basePrettierConfig = {
52
52
  endOfLine: 'lf',
53
53
  htmlWhitespaceSensitivity: 'ignore',
54
54
  jsonRecursiveSort: true,
55
+ multilineArraysWrapThreshold: 1,
55
56
  plugins,
56
57
  pluginSearchDirs: false,
57
58
  printWidth: 100,
@@ -24,9 +24,9 @@
24
24
  "useUnknownInCatchVariables": true
25
25
  },
26
26
  "ts-node": {
27
- "transpileOnly": true,
28
27
  "compilerOptions": {
29
28
  "module": "CommonJS"
30
- }
29
+ },
30
+ "transpileOnly": true
31
31
  }
32
32
  }
@@ -7,6 +7,8 @@ export const ncuConfig: RunOptions = {
7
7
  // exclude these
8
8
  reject: [
9
9
  'glob',
10
+ /** Not ready for v3. */
11
+ 'prettier',
10
12
  ],
11
13
  // include only these
12
14
  filter: [],
@@ -1,5 +1,4 @@
1
1
  {
2
- "extends": "virmator/base-configs/base-tsconfig.json",
3
2
  "compilerOptions": {
4
3
  "outDir": "./dist",
5
4
  "rootDir": "./src"
@@ -10,5 +9,6 @@
10
9
  "./dist",
11
10
  "./node_modules",
12
11
  "./test-files"
13
- ]
12
+ ],
13
+ "extends": "virmator/base-configs/base-tsconfig.json"
14
14
  }
@@ -120,6 +120,9 @@ ${packageBinName} ${commandName} --ignore-path .prettierignore ${filesMarkerArg}
120
120
  packageDirPath: inputs.packageDir,
121
121
  }),
122
122
  '--color',
123
+ '--cache',
124
+ '--cache-strategy',
125
+ 'content',
123
126
  listDifferentFlag,
124
127
  ...extraPrettierFlags,
125
128
  filesToFormat,
@@ -80,7 +80,10 @@ exports.frontendCommandDefinition = (0, define_command_1.defineCommand)({
80
80
  format: 'cjs',
81
81
  });
82
82
  const viteConfigValues = require(tempFilePath).default;
83
- const buildOutputPath = viteConfigValues?.build?.outDir || 'dist';
83
+ const root = viteConfigValues.root
84
+ ? (0, path_1.join)(process.cwd(), viteConfigValues.root)
85
+ : process.cwd();
86
+ const buildOutputPath = (0, path_1.resolve)(root, viteConfigValues?.build?.outDir || 'dist');
84
87
  const viteBinPath = await (0, package_paths_1.getNpmBinPath)({
85
88
  repoDir: inputs.repoDir,
86
89
  command: 'vite',
@@ -1 +1,5 @@
1
- export declare const baseViteConfig: import("vite").UserConfigExport;
1
+ export declare const baseViteConfig: {
2
+ readonly clearScreen: false;
3
+ readonly plugins: readonly [import("vite").PluginOption, import("vite").Plugin];
4
+ readonly root: string;
5
+ };
@@ -4,14 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.baseViteConfig = void 0;
7
- const vite_1 = require("vite");
8
7
  const vite_tsconfig_paths_1 = __importDefault(require("vite-tsconfig-paths"));
9
8
  const vite_always_reload_plugin_1 = require("./vite-always-reload-plugin");
10
- exports.baseViteConfig = (0, vite_1.defineConfig)({
9
+ exports.baseViteConfig = {
11
10
  clearScreen: false,
12
11
  plugins: [
13
12
  (0, vite_always_reload_plugin_1.alwaysReloadPlugin)(),
14
13
  (0, vite_tsconfig_paths_1.default)(),
15
14
  ],
16
15
  root: process.cwd(),
17
- });
16
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "virmator",
3
- "version": "6.6.5",
3
+ "version": "6.7.0",
4
4
  "description": "Handle common package configs, commands, and dependencies.",
5
5
  "keywords": [
6
6
  "automation",
@@ -43,14 +43,14 @@
43
43
  "test:types": "tsc --noEmit"
44
44
  },
45
45
  "dependencies": {
46
- "@augment-vir/common": "^15.2.1",
47
- "@augment-vir/node-js": "^15.2.1",
46
+ "@augment-vir/common": "^15.3.0",
47
+ "@augment-vir/node-js": "^15.3.0",
48
48
  "ansi-colors": "^4.1.3",
49
49
  "concurrently": "^8.2.0",
50
50
  "glob": "^8.1.0",
51
51
  "glob-promise": "^6.0.3",
52
52
  "semver": "^7.5.3",
53
- "simple-git": "^3.19.0",
53
+ "simple-git": "^3.19.1",
54
54
  "type-fest": "^3.12.0"
55
55
  },
56
56
  "devDependencies": {
@@ -61,7 +61,7 @@
61
61
  "@types/fs-extra": "^11.0.1",
62
62
  "@types/glob": "^8.1.0",
63
63
  "@types/mocha": "^10.0.1",
64
- "@types/node": "^20.3.1",
64
+ "@types/node": "^20.4.0",
65
65
  "@types/semver": "^7.5.0",
66
66
  "@web/dev-server-esbuild": "^0.4.1",
67
67
  "@web/test-runner": "^0.16.1",
@@ -70,28 +70,28 @@
70
70
  "@web/test-runner-visual-regression": "^0.8.0",
71
71
  "chai": "^4.3.7",
72
72
  "cspell": "^6.31.1",
73
- "esbuild": "^0.18.7",
73
+ "esbuild": "^0.18.11",
74
74
  "fs-extra": "^11.1.1",
75
75
  "istanbul-smart-text-reporter": "^1.1.2",
76
76
  "markdown-code-example-inserter": "^0.3.1",
77
77
  "mocha": "^10.2.0",
78
78
  "mocha-spec-reporter-with-file-names": "^0.0.3",
79
- "npm-check-updates": "^16.10.13",
79
+ "npm-check-updates": "^16.10.15",
80
80
  "prettier": "^2.8.8",
81
81
  "prettier-plugin-interpolated-html-tags": "^0.0.4",
82
82
  "prettier-plugin-jsdoc": "^0.4.2",
83
- "prettier-plugin-multiline-arrays": "^1.1.4",
83
+ "prettier-plugin-multiline-arrays": "^2.0.0",
84
84
  "prettier-plugin-organize-imports": "^3.2.2",
85
- "prettier-plugin-packagejson": "^2.4.3",
85
+ "prettier-plugin-packagejson": "^2.4.4",
86
86
  "prettier-plugin-sort-json": "^1.0.0",
87
87
  "prettier-plugin-toml": "^0.3.1",
88
88
  "test-as-package": "^0.0.4",
89
89
  "test-established-expectations": "^0.5.0",
90
90
  "ts-node": "^10.9.1",
91
91
  "tsconfig-paths": "^4.2.0",
92
- "typescript": "^5.1.3",
93
- "virmator": "^6.6.4",
94
- "vite": "^4.3.9",
92
+ "typescript": "^5.1.6",
93
+ "virmator": "^6.6.6",
94
+ "vite": "^4.4.2",
95
95
  "vite-tsconfig-paths": "^4.2.0"
96
96
  },
97
97
  "engines": {