virmator 4.2.9 → 4.2.11

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.
@@ -0,0 +1,11 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Page Name</title>
5
+ <script type="module" src="/src/ui/elements/app.element.ts"></script>
6
+ <link rel="stylesheet" type="text/css" href="index.css" />
7
+ </head>
8
+ <body>
9
+ <vir-app></vir-app>
10
+ </body>
11
+ </html>
@@ -10,6 +10,6 @@
10
10
  /graphics/
11
11
  /Icon?
12
12
  /src/
13
- /test-files/
14
13
  bash-scripts/
14
+ test-files/
15
15
  tsconfig*.json
@@ -0,0 +1,7 @@
1
+ html,
2
+ body {
3
+ margin: 0;
4
+ padding: 0;
5
+ height: 100%;
6
+ width: 100%;
7
+ }
@@ -12,5 +12,4 @@ export declare type ConfigFileDefinition = {
12
12
  * be the new file contents.
13
13
  */
14
14
  updateExistingConfigFileCallback?: UpdateConfigCallback;
15
- required: boolean;
16
15
  };
@@ -26,46 +26,49 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.updateDepsAsNeeded = void 0;
27
27
  const augment_vir_1 = require("augment-vir");
28
28
  const node_only_1 = require("augment-vir/dist/cjs/node-only");
29
+ const fs_1 = require("fs");
29
30
  const promises_1 = require("fs/promises");
30
31
  const path_1 = require("path");
31
32
  const semver = __importStar(require("semver"));
32
33
  const cli_color_1 = require("../cli-color");
33
34
  async function updateDepsAsNeeded(inputs) {
34
- const upgradeVersions = await getVersionsToUpgradeTo(inputs);
35
- const depsToUpdate = inputs.npmDeps
36
- .map((npmDep, index) => {
37
- const version = upgradeVersions[index];
38
- if (version) {
39
- return {
40
- npmDep,
41
- version,
42
- };
43
- }
44
- else {
45
- return undefined;
46
- }
47
- })
48
- .filter(augment_vir_1.isTruthy);
49
- await (0, augment_vir_1.awaitedForEach)(depsToUpdate, async (depDetails) => {
50
- const depToInstall = `${depDetails.npmDep}@${depDetails.version}`;
51
- console.info(`${cli_color_1.Color.Info}Installing ${depToInstall}...`);
52
- await (0, node_only_1.runShellCommand)(`npm i -D ${depToInstall}`, {
53
- cwd: inputs.repoDir,
54
- rejectOnError: true,
35
+ try {
36
+ const upgradeVersions = await getVersionsToUpgradeTo(inputs);
37
+ const depsToUpdate = inputs.npmDeps
38
+ .map((npmDep, index) => {
39
+ const version = upgradeVersions[index];
40
+ if (version) {
41
+ return {
42
+ npmDep,
43
+ version,
44
+ };
45
+ }
46
+ else {
47
+ return undefined;
48
+ }
49
+ })
50
+ .filter(augment_vir_1.isTruthy);
51
+ await (0, augment_vir_1.awaitedForEach)(depsToUpdate, async (depDetails) => {
52
+ const depToInstall = `${depDetails.npmDep}@${depDetails.version}`;
53
+ console.info(`${cli_color_1.Color.Info}Installing ${depToInstall}...`);
54
+ await (0, node_only_1.runShellCommand)(`npm i -D ${depToInstall}`, {
55
+ cwd: inputs.repoDir,
56
+ rejectOnError: true,
57
+ });
55
58
  });
56
- });
59
+ }
60
+ catch (error) {
61
+ throw new Error(`Failed to update deps: ${(0, augment_vir_1.extractErrorMessage)(error)}`);
62
+ }
57
63
  }
58
64
  exports.updateDepsAsNeeded = updateDepsAsNeeded;
59
65
  async function getVersionsToUpgradeTo({ repoDir, packageDir, npmDeps, packageBinName, }) {
60
- const listedDeps = await (0, node_only_1.runShellCommand)(`npm list --depth=0 2>&1 -json`, {
61
- cwd: repoDir,
62
- rejectOnError: true,
63
- });
64
66
  const packageName = (await (0, node_only_1.runShellCommand)(`cut -d "=" -f 2 <<< $(npm run env | grep "npm_package_name")`, {
65
67
  cwd: repoDir,
66
68
  rejectOnError: true,
67
69
  })).stdout.trim();
68
- const currentRepoDepVersions = parseCurrentDeps(listedDeps.stdout, packageName);
70
+ const listedDepsJson = await findDepsListWithPackageName(repoDir, packageName);
71
+ const currentRepoDepVersions = parseCurrentDeps(listedDepsJson, packageName);
69
72
  const virmatorPackageJson = JSON.parse((await (0, promises_1.readFile)((0, path_1.join)(packageDir, 'package.json'))).toString());
70
73
  const packageDepVersions = {
71
74
  ...virmatorPackageJson.devDependencies,
@@ -88,8 +91,28 @@ async function getVersionsToUpgradeTo({ repoDir, packageDir, npmDeps, packageBin
88
91
  }
89
92
  });
90
93
  }
91
- function parseCurrentDeps(stdout, packageName) {
92
- const parsedListOutput = JSON.parse(stdout);
94
+ async function findDepsListWithPackageName(repoDir, packageName) {
95
+ if (repoDir === (0, path_1.parse)(process.cwd()).root) {
96
+ return {};
97
+ }
98
+ if (!(0, fs_1.existsSync)((0, path_1.join)(repoDir, 'package.json'))) {
99
+ return findDepsListWithPackageName((0, path_1.dirname)(repoDir), packageName);
100
+ }
101
+ const listedDeps = await (0, node_only_1.runShellCommand)(`npm list --depth=0 -json`, {
102
+ cwd: repoDir,
103
+ rejectOnError: true,
104
+ });
105
+ const output = JSON.parse(listedDeps.stdout);
106
+ if (output.name === packageName ||
107
+ (packageName in output.dependencies && 'dependencies' in output.dependencies[packageName])) {
108
+ return output;
109
+ }
110
+ else {
111
+ return findDepsListWithPackageName((0, path_1.dirname)(repoDir), packageName);
112
+ }
113
+ }
114
+ function parseCurrentDeps(objectInput, packageName) {
115
+ const parsedListOutput = objectInput;
93
116
  const deps = parsedListOutput.dependencies;
94
117
  return readDeps(deps, packageName);
95
118
  }
@@ -7,7 +7,6 @@ export declare const compileCommandDefinition: import("../api/command/define-com
7
7
  readonly tsConfig: {
8
8
  readonly copyFromInternalPath: string;
9
9
  readonly copyToPathRelativeToRepoDir: "tsconfig.json";
10
- readonly required: true;
11
10
  };
12
11
  };
13
12
  npmDeps: readonly ["typescript"];
@@ -13,7 +13,6 @@ exports.compileCommandDefinition = (0, define_command_1.defineCommand)({
13
13
  tsConfig: {
14
14
  copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, 'tsconfig.json'),
15
15
  copyToPathRelativeToRepoDir: 'tsconfig.json',
16
- required: true,
17
16
  },
18
17
  },
19
18
  npmDeps: ['typescript'],
@@ -10,51 +10,50 @@ exports.nonCommandConfigs = [
10
10
  {
11
11
  copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, '.gitattributes'),
12
12
  copyToPathRelativeToRepoDir: '.gitattributes',
13
- required: true,
14
13
  },
15
14
  {
16
15
  copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, '.nvmrc'),
17
16
  copyToPathRelativeToRepoDir: '.nvmrc',
18
- required: true,
19
17
  updateExistingConfigFileCallback: (newContents) => newContents,
20
18
  },
21
19
  {
22
20
  copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, 'gitignore.txt'),
23
21
  updateExistingConfigFileCallback: combine_text_config_1.combineTextConfig,
24
22
  copyToPathRelativeToRepoDir: '.gitignore',
25
- required: true,
26
23
  },
27
24
  {
28
25
  copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, 'npmignore.txt'),
29
26
  updateExistingConfigFileCallback: combine_text_config_1.combineTextConfig,
30
27
  copyToPathRelativeToRepoDir: '.npmignore',
31
- required: true,
32
28
  },
33
29
  {
34
30
  copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, 'package.json'),
35
31
  copyToPathRelativeToRepoDir: 'package.json',
36
32
  updateExistingConfigFileCallback: create_default_package_json_1.createDefaultPackageJson,
37
- required: true,
38
33
  },
39
34
  {
40
35
  copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, '.vscode', 'settings.json'),
41
36
  copyToPathRelativeToRepoDir: (0, path_1.join)('.vscode', 'settings.json'),
42
37
  updateExistingConfigFileCallback: combine_json_config_1.combineJsonConfig,
43
- required: true,
44
38
  },
45
39
  {
46
40
  copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, '.github', 'workflows', 'build-for-gh-pages.yml'),
47
41
  copyToPathRelativeToRepoDir: (0, path_1.join)('.github', 'workflows', 'build-for-gh-pages.yml'),
48
- required: true,
49
42
  },
50
43
  {
51
44
  copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, '.github', 'workflows', 'tagged-release.yml'),
52
45
  copyToPathRelativeToRepoDir: (0, path_1.join)('.github', 'workflows', 'tagged-release.yml'),
53
- required: true,
54
46
  },
55
47
  {
56
48
  copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, '.github', 'workflows', 'tests.yml'),
57
49
  copyToPathRelativeToRepoDir: (0, path_1.join)('.github', 'workflows', 'tests.yml'),
58
- required: true,
50
+ },
51
+ {
52
+ copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, 'public', 'index.css'),
53
+ copyToPathRelativeToRepoDir: (0, path_1.join)('public', 'index.css'),
54
+ },
55
+ {
56
+ copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, 'index.html'),
57
+ copyToPathRelativeToRepoDir: (0, path_1.join)('index.html'),
59
58
  },
60
59
  ];
@@ -7,12 +7,10 @@ export declare const formatCommandDefinition: import("../api/command/define-comm
7
7
  readonly prettierrc: {
8
8
  readonly copyFromInternalPath: string;
9
9
  readonly copyToPathRelativeToRepoDir: ".prettierrc.js";
10
- readonly required: true;
11
10
  };
12
11
  readonly prettierIgnore: {
13
12
  readonly copyFromInternalPath: string;
14
13
  readonly copyToPathRelativeToRepoDir: ".prettierignore";
15
- readonly required: true;
16
14
  };
17
15
  };
18
16
  npmDeps: readonly ["prettier", "prettier-plugin-jsdoc", "prettier-plugin-multiline-arrays", "prettier-plugin-organize-imports", "prettier-plugin-packagejson", "prettier-plugin-sort-json", "prettier-plugin-toml"];
@@ -32,12 +32,10 @@ exports.formatCommandDefinition = (0, define_command_1.defineCommand)({
32
32
  prettierrc: {
33
33
  copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, '.prettierrc.js'),
34
34
  copyToPathRelativeToRepoDir: '.prettierrc.js',
35
- required: true,
36
35
  },
37
36
  prettierIgnore: {
38
37
  copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, '.prettierignore'),
39
38
  copyToPathRelativeToRepoDir: '.prettierignore',
40
- required: true,
41
39
  },
42
40
  },
43
41
  npmDeps: [
@@ -8,7 +8,6 @@ export declare const frontendCommandDefinition: import("../api/command/define-co
8
8
  readonly vite: {
9
9
  readonly copyFromInternalPath: string;
10
10
  readonly copyToPathRelativeToRepoDir: string;
11
- readonly required: true;
12
11
  };
13
12
  };
14
13
  npmDeps: readonly ["vite", "ansi-colors"];
@@ -15,7 +15,6 @@ exports.frontendCommandDefinition = (0, define_command_1.defineCommand)({
15
15
  vite: {
16
16
  copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, 'configs', 'vite.config.ts'),
17
17
  copyToPathRelativeToRepoDir: (0, path_1.join)('configs', 'vite.config.ts'),
18
- required: true,
19
18
  },
20
19
  },
21
20
  npmDeps: [
@@ -43,13 +42,11 @@ exports.frontendCommandDefinition = (0, define_command_1.defineCommand)({
43
42
  })}`
44
43
  : '';
45
44
  const viteBinPath = await (0, package_paths_1.getNpmBinPath)(inputs.repoDir, 'vite');
46
- const removeOutput = needToBuild ? 'rm -rf dist ' : '';
45
+ const removeOutput = needToBuild ? 'rm -rf dist && ' : '';
47
46
  const mainCommand = `${removeOutput}${viteBinPath}`;
48
47
  const subCommandArgs = needToBuild
49
48
  ? [
50
- '--colors',
51
49
  'build',
52
- configString,
53
50
  ...inputs.filteredInputArgs,
54
51
  '&&',
55
52
  'cp dist/index.html dist/404.html',
@@ -61,7 +58,6 @@ exports.frontendCommandDefinition = (0, define_command_1.defineCommand)({
61
58
  '&&',
62
59
  viteBinPath,
63
60
  'preview',
64
- configString,
65
61
  ...inputs.filteredInputArgs,
66
62
  hostString,
67
63
  ]
@@ -5,7 +5,6 @@ export declare const spellcheckCommandDefinition: import("../api/command/define-
5
5
  readonly cspell: {
6
6
  readonly copyFromInternalPath: string;
7
7
  readonly copyToPathRelativeToRepoDir: "cspell.config.js";
8
- readonly required: true;
9
8
  };
10
9
  };
11
10
  npmDeps: readonly ["cspell"];
@@ -14,7 +14,6 @@ exports.spellcheckCommandDefinition = (0, define_command_1.defineCommand)({
14
14
  cspell: {
15
15
  copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, 'cspell.config.js'),
16
16
  copyToPathRelativeToRepoDir: 'cspell.config.js',
17
- required: true,
18
17
  },
19
18
  },
20
19
  npmDeps: ['cspell'],
@@ -5,7 +5,6 @@ export declare const testWebCommandDefinition: import("../api/command/define-com
5
5
  readonly webTestRunner: {
6
6
  readonly copyFromInternalPath: string;
7
7
  readonly copyToPathRelativeToRepoDir: string;
8
- readonly required: true;
9
8
  };
10
9
  };
11
10
  npmDeps: readonly ["@open-wc/testing", "@types/mocha", "@web/dev-server-esbuild", "@web/test-runner-commands", "@web/test-runner-playwright", "@web/test-runner"];
@@ -12,7 +12,6 @@ exports.testWebCommandDefinition = (0, define_command_1.defineCommand)({
12
12
  webTestRunner: {
13
13
  copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, 'configs', 'web-test-runner.config.mjs'),
14
14
  copyToPathRelativeToRepoDir: (0, path_1.join)('configs', 'web-test-runner.config.mjs'),
15
- required: true,
16
15
  },
17
16
  },
18
17
  npmDeps: [
@@ -5,12 +5,10 @@ export declare const testCommandDefinition: import("../api/command/define-comman
5
5
  readonly mochaConfig: {
6
6
  readonly copyFromInternalPath: string;
7
7
  readonly copyToPathRelativeToRepoDir: string;
8
- readonly required: true;
9
8
  };
10
9
  readonly nycConfig: {
11
10
  readonly copyFromInternalPath: string;
12
11
  readonly copyToPathRelativeToRepoDir: string;
13
- readonly required: true;
14
12
  };
15
13
  };
16
14
  npmDeps: readonly ["@istanbuljs/nyc-config-typescript", "@types/chai", "@types/mocha", "chai", "istanbul-smart-text-reporter", "mocha-spec-reporter-with-file-names", "mocha", "nyc", "ts-node"];
@@ -11,12 +11,10 @@ exports.testCommandDefinition = (0, define_command_1.defineCommand)({
11
11
  mochaConfig: {
12
12
  copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, 'configs', 'mocha.config.js'),
13
13
  copyToPathRelativeToRepoDir: (0, path_1.join)('configs', 'mocha.config.js'),
14
- required: true,
15
14
  },
16
15
  nycConfig: {
17
16
  copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, 'configs', 'nyc.config.js'),
18
17
  copyToPathRelativeToRepoDir: (0, path_1.join)('configs', 'nyc.config.js'),
19
- required: true,
20
18
  },
21
19
  },
22
20
  npmDeps: [
package/dist/index.d.ts CHANGED
@@ -32,7 +32,6 @@ export declare const virmator: Readonly<{
32
32
  readonly tsConfig: {
33
33
  readonly copyFromInternalPath: string;
34
34
  readonly copyToPathRelativeToRepoDir: "tsconfig.json";
35
- readonly required: true;
36
35
  };
37
36
  };
38
37
  npmDeps: readonly ["typescript"];
@@ -45,12 +44,10 @@ export declare const virmator: Readonly<{
45
44
  readonly prettierrc: {
46
45
  readonly copyFromInternalPath: string;
47
46
  readonly copyToPathRelativeToRepoDir: ".prettierrc.js";
48
- readonly required: true;
49
47
  };
50
48
  readonly prettierIgnore: {
51
49
  readonly copyFromInternalPath: string;
52
50
  readonly copyToPathRelativeToRepoDir: ".prettierignore";
53
- readonly required: true;
54
51
  };
55
52
  };
56
53
  npmDeps: readonly ["prettier", "prettier-plugin-jsdoc", "prettier-plugin-multiline-arrays", "prettier-plugin-organize-imports", "prettier-plugin-packagejson", "prettier-plugin-sort-json", "prettier-plugin-toml"];
@@ -64,7 +61,6 @@ export declare const virmator: Readonly<{
64
61
  readonly vite: {
65
62
  readonly copyFromInternalPath: string;
66
63
  readonly copyToPathRelativeToRepoDir: string;
67
- readonly required: true;
68
64
  };
69
65
  };
70
66
  npmDeps: readonly ["vite", "ansi-colors"];
@@ -82,7 +78,6 @@ export declare const virmator: Readonly<{
82
78
  readonly cspell: {
83
79
  readonly copyFromInternalPath: string;
84
80
  readonly copyToPathRelativeToRepoDir: "cspell.config.js";
85
- readonly required: true;
86
81
  };
87
82
  };
88
83
  npmDeps: readonly ["cspell"];
@@ -93,12 +88,10 @@ export declare const virmator: Readonly<{
93
88
  readonly mochaConfig: {
94
89
  readonly copyFromInternalPath: string;
95
90
  readonly copyToPathRelativeToRepoDir: string;
96
- readonly required: true;
97
91
  };
98
92
  readonly nycConfig: {
99
93
  readonly copyFromInternalPath: string;
100
94
  readonly copyToPathRelativeToRepoDir: string;
101
- readonly required: true;
102
95
  };
103
96
  };
104
97
  npmDeps: readonly ["@istanbuljs/nyc-config-typescript", "@types/chai", "@types/mocha", "chai", "istanbul-smart-text-reporter", "mocha-spec-reporter-with-file-names", "mocha", "nyc", "ts-node"];
@@ -109,7 +102,6 @@ export declare const virmator: Readonly<{
109
102
  readonly webTestRunner: {
110
103
  readonly copyFromInternalPath: string;
111
104
  readonly copyToPathRelativeToRepoDir: string;
112
- readonly required: true;
113
105
  };
114
106
  };
115
107
  npmDeps: readonly ["@open-wc/testing", "@types/mocha", "@web/dev-server-esbuild", "@web/test-runner-commands", "@web/test-runner-playwright", "@web/test-runner"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "virmator",
3
- "version": "4.2.9",
3
+ "version": "4.2.11",
4
4
  "description": "Handle all the stuffs in one package.",
5
5
  "keywords": [
6
6
  "automation",
@@ -30,7 +30,6 @@
30
30
  "compile": "rm -rf dist && tsc",
31
31
  "format": "npm run format:base -- --write --list-different",
32
32
  "format:base": "prettier \"./**/*.+(ts|json|html|css|md|js)\"",
33
- "prepack": "npm run compile",
34
33
  "prepublishOnly": "npm run test:all",
35
34
  "readme:check": "npm run compile && ts-node -r tsconfig-paths/register src/scripts/save-help-message.ts check && md-code --check README.md",
36
35
  "readme:update": "npm run compile && ts-node -r tsconfig-paths/register src/scripts/save-help-message.ts && md-code README.md",
@@ -43,43 +42,43 @@
43
42
  },
44
43
  "dependencies": {
45
44
  "ansi-colors": "^4.1.3",
46
- "augment-vir": "3.0.2",
47
- "semver": "7.3.8",
48
- "simple-git": "3.14.1"
45
+ "augment-vir": "^3.0.3",
46
+ "semver": "^7.3.8",
47
+ "simple-git": "^3.14.1"
49
48
  },
50
49
  "devDependencies": {
51
50
  "@istanbuljs/nyc-config-typescript": "^1.0.2",
52
- "@open-wc/testing": "3.1.6",
53
- "@types/chai": "4.3.3",
51
+ "@open-wc/testing": "^3.1.6",
52
+ "@types/chai": "^4.3.3",
54
53
  "@types/fs-extra": "^9.0.13",
55
- "@types/mocha": "10.0.0",
56
- "@types/node": "18.8.5",
57
- "@types/semver": "7.3.12",
58
- "@web/dev-server-esbuild": "0.3.2",
59
- "@web/test-runner": "0.14.0",
60
- "@web/test-runner-commands": "0.6.5",
61
- "@web/test-runner-playwright": "0.8.10",
62
- "ansi-colors": "4.1.3",
63
- "augment-vir": "3.0.2",
64
- "chai": "4.3.6",
65
- "cspell": "6.12.0",
54
+ "@types/mocha": "^10.0.0",
55
+ "@types/node": "^18.11.7",
56
+ "@types/semver": "^7.3.13",
57
+ "@web/dev-server-esbuild": "^0.3.3",
58
+ "@web/test-runner": "^0.15.0",
59
+ "@web/test-runner-commands": "^0.6.5",
60
+ "@web/test-runner-playwright": "^0.9.0",
61
+ "ansi-colors": "^4.1.3",
62
+ "augment-vir": "^3.0.3",
63
+ "chai": "^4.3.6",
64
+ "cspell": "^6.12.0",
66
65
  "fs-extra": "^10.1.0",
67
66
  "istanbul-smart-text-reporter": "^0.0.1",
68
- "markdown-code-example-inserter": "0.1.11",
69
- "mocha": "10.0.0",
67
+ "markdown-code-example-inserter": "^0.1.11",
68
+ "mocha": "^10.1.0",
70
69
  "mocha-spec-reporter-with-file-names": "^0.0.0",
71
70
  "nyc": "^15.1.0",
72
- "prettier": "2.7.1",
73
- "prettier-plugin-jsdoc": "0.4.2",
74
- "prettier-plugin-multiline-arrays": "1.1.1",
75
- "prettier-plugin-organize-imports": "3.1.1",
76
- "prettier-plugin-packagejson": "2.3.0",
77
- "prettier-plugin-sort-json": "0.0.3",
78
- "prettier-plugin-toml": "0.3.1",
79
- "ts-node": "10.9.1",
80
- "tsconfig-paths": "4.1.0",
71
+ "prettier": "^2.7.1",
72
+ "prettier-plugin-jsdoc": "^0.4.2",
73
+ "prettier-plugin-multiline-arrays": "^1.1.1",
74
+ "prettier-plugin-organize-imports": "^3.1.1",
75
+ "prettier-plugin-packagejson": "^2.3.0",
76
+ "prettier-plugin-sort-json": "^0.0.3",
77
+ "prettier-plugin-toml": "^0.3.1",
78
+ "ts-node": "^10.9.1",
79
+ "tsconfig-paths": "^4.1.0",
81
80
  "typescript": "^4.8.4",
82
- "vite": "3.1.7"
81
+ "vite": "^3.2.0"
83
82
  },
84
83
  "engines": {
85
84
  "node": ">=16",
@@ -1,3 +0,0 @@
1
- import { Constructor } from './type';
2
- export declare function assertInstanceOf<T>(input: unknown, classConstructor: Constructor<T>, message?: string): asserts input is T;
3
- export declare function assertString(input: unknown, message?: string): asserts input is string;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.assertString = exports.assertInstanceOf = void 0;
4
- const chai_1 = require("chai");
5
- function assertInstanceOf(input, classConstructor, message) {
6
- chai_1.assert.instanceOf(input, classConstructor, message);
7
- }
8
- exports.assertInstanceOf = assertInstanceOf;
9
- function assertString(input, message) {
10
- chai_1.assert.typeOf(input, 'string', message);
11
- }
12
- exports.assertString = assertString;