virmator 3.0.5 → 3.0.6

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.
@@ -3,6 +3,7 @@
3
3
  "main": "dist/index.js",
4
4
  "types": "dist/index.d.ts",
5
5
  "scripts": {
6
+ "build": "virmator frontend build",
6
7
  "compile": "rm -rf dist && tsc --project tsconfig.json",
7
8
  "docs:update": "virmator code-in-markdown",
8
9
  "format": "virmator format write",
@@ -31,7 +31,7 @@ exports.frontendCommandDefinition = (0, define_cli_command_1.defineCliCommand)({
31
31
  let viteCommand = `${vitePath} --force ${configString} ${joinedArgs}`;
32
32
  // insert the build command in either sub command
33
33
  if (inputs.inputSubCommands.length) {
34
- viteCommand = `rm -rf dist && ${vitePath} --colors build ${configString} ${joinedArgs} && cp dist/index.html dist/404.html`;
34
+ viteCommand = `rm -rf dist && ${vitePath} build ${configString} ${joinedArgs} && cp dist/index.html dist/404.html`;
35
35
  }
36
36
  if (inputs.inputSubCommands.includes('preview')) {
37
37
  const hostString = joinedArgs.includes('--host') ? '' : `--host`;
@@ -27,7 +27,7 @@ async function createDefaultPackageJson(copyFromContents, existingConfigContents
27
27
  ...gitProperties,
28
28
  scripts: combinedScripts,
29
29
  };
30
- return await JSON.stringify(newPackageJson);
30
+ return JSON.stringify(newPackageJson);
31
31
  }
32
32
  exports.createDefaultPackageJson = createDefaultPackageJson;
33
33
  function combineScripts(virmatorPackageJson, currentRepoPackageJson) {
@@ -35,10 +35,13 @@ function combineScripts(virmatorPackageJson, currentRepoPackageJson) {
35
35
  ...currentRepoPackageJson.scripts,
36
36
  };
37
37
  (0, augment_vir_1.getObjectTypedKeys)(virmatorPackageJson.scripts).forEach((key) => {
38
- const virmatorValue = virmatorPackageJson[key];
39
- const currentRepoValue = currentRepoPackageJson[key];
40
- if (!scripts.hasOwnProperty(key) ||
41
- (key === 'test' && currentRepoValue === `echo \"Error: no test specified\" && exit 1`)) {
38
+ var _a, _b;
39
+ const virmatorValue = (_a = virmatorPackageJson.scripts) === null || _a === void 0 ? void 0 : _a[key];
40
+ const currentRepoValue = (_b = currentRepoPackageJson.scripts) === null || _b === void 0 ? void 0 : _b[key];
41
+ if (virmatorValue &&
42
+ (!scripts.hasOwnProperty(key) ||
43
+ (key === 'test' &&
44
+ currentRepoValue === `echo \"Error: no test specified\" && exit 1`))) {
42
45
  scripts[key] = virmatorValue;
43
46
  }
44
47
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "virmator",
3
- "version": "3.0.5",
3
+ "version": "3.0.6",
4
4
  "description": "Handle all the stuffs in one package.",
5
5
  "keywords": [
6
6
  "automation",
@@ -41,33 +41,33 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@open-wc/testing": "3.1.6",
44
- "@types/chai": "4.3.1",
44
+ "@types/chai": "4.3.3",
45
45
  "@types/mocha": "9.1.1",
46
- "@web/dev-server-esbuild": "0.3.1",
47
- "@web/test-runner": "0.13.31",
48
- "@web/test-runner-commands": "0.6.3",
49
- "@web/test-runner-playwright": "0.8.9",
46
+ "@web/dev-server-esbuild": "0.3.2",
47
+ "@web/test-runner": "0.14.0",
48
+ "@web/test-runner-commands": "0.6.4",
49
+ "@web/test-runner-playwright": "0.8.10",
50
50
  "ansi-colors": "4.1.3",
51
- "augment-vir": "2.3.0",
51
+ "augment-vir": "2.4.0",
52
52
  "chai": "4.3.6",
53
- "cspell": "6.4.1",
53
+ "cspell": "6.7.0",
54
54
  "markdown-code-example-inserter": "0.1.11",
55
55
  "mocha": "10.0.0",
56
56
  "prettier": "2.7.1",
57
57
  "prettier-plugin-jsdoc": "0.3.38",
58
58
  "prettier-plugin-multiline-arrays": "1.1.0",
59
- "prettier-plugin-organize-imports": "3.0.0",
59
+ "prettier-plugin-organize-imports": "3.1.0",
60
60
  "prettier-plugin-packagejson": "2.2.18",
61
- "prettier-plugin-sort-json": "0.0.2",
61
+ "prettier-plugin-sort-json": "0.0.3",
62
62
  "prettier-plugin-toml": "0.3.1",
63
- "simple-git": "3.10.0",
63
+ "simple-git": "3.12.0",
64
64
  "ts-node": "10.9.1",
65
- "tsconfig-paths": "4.0.0",
65
+ "tsconfig-paths": "4.1.0",
66
66
  "typescript": "4.7.4",
67
- "vite": "3.0.2"
67
+ "vite": "3.0.9"
68
68
  },
69
69
  "devDependencies": {
70
- "@types/node": "18.0.6"
70
+ "@types/node": "18.7.8"
71
71
  },
72
72
  "engines": {
73
73
  "node": ">=14",