virmator 6.7.1 → 7.0.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.
Files changed (33) hide show
  1. package/configs/configs/ncu.config.ts +4 -1
  2. package/configs/configs/vite.config.ts +2 -5
  3. package/configs/npmignore.txt +1 -1
  4. package/configs/{index.html → src/index.html} +1 -1
  5. package/configs/src/ui/elements/vir-app.element.ts +10 -0
  6. package/dist/api/command/define-command-inputs.d.ts +9 -1
  7. package/dist/api/command/define-command-inputs.js +6 -0
  8. package/dist/api/run-command/check-npm-deps.js +12 -21
  9. package/dist/commands/code-in-markdown.command.d.ts +22 -6
  10. package/dist/commands/code-in-markdown.command.js +4 -1
  11. package/dist/commands/compile.command.d.ts +22 -6
  12. package/dist/commands/compile.command.js +4 -1
  13. package/dist/commands/extra-configs/all-extra-configs.js +8 -4
  14. package/dist/commands/format.command.d.ts +127 -6
  15. package/dist/commands/format.command.js +9 -8
  16. package/dist/commands/frontend.command.d.ts +97 -6
  17. package/dist/commands/frontend.command.js +17 -9
  18. package/dist/commands/init.command.d.ts +125 -5
  19. package/dist/commands/spellcheck.command.d.ts +22 -6
  20. package/dist/commands/spellcheck.command.js +4 -1
  21. package/dist/commands/test-web.command.d.ts +127 -6
  22. package/dist/commands/test-web.command.js +9 -8
  23. package/dist/commands/test.command.d.ts +142 -6
  24. package/dist/commands/test.command.js +10 -9
  25. package/dist/commands/upgrade-deps.command.d.ts +37 -6
  26. package/dist/commands/upgrade-deps.command.js +3 -2
  27. package/dist/compiled-base-configs/base-vite.d.ts +14 -4
  28. package/dist/compiled-base-configs/base-vite.js +73 -10
  29. package/dist/compiled-base-configs/vite-always-reload-plugin.d.ts +0 -1
  30. package/dist/compiled-base-configs/vite-always-reload-plugin.js +20 -15
  31. package/dist/index.d.ts +705 -45
  32. package/package.json +6 -5
  33. /package/configs/{public → www-static}/index.css +0 -0
@@ -5,7 +5,10 @@ export const ncuConfig: RunOptions = {
5
5
  upgrade: true,
6
6
  root: true,
7
7
  // exclude these
8
- reject: [],
8
+ reject: [
9
+ /** Not ready for v3. */
10
+ 'prettier',
11
+ ],
9
12
  // include only these
10
13
  filter: [],
11
14
  };
@@ -1,6 +1,3 @@
1
- import {baseViteConfig} from 'virmator/dist/compiled-base-configs/base-vite';
2
- import {defineConfig} from 'vite';
1
+ import {defineConfig} from 'virmator/dist/compiled-base-configs/base-vite';
3
2
 
4
- export default defineConfig({
5
- ...baseViteConfig,
6
- });
3
+ export default defineConfig({forGitHubPages: true}, {});
@@ -10,8 +10,8 @@
10
10
  /cspell.config.js
11
11
  /graphics/
12
12
  /Icon?
13
- /public/
14
13
  /src/
14
+ /www-static/
15
15
  bash-scripts/
16
16
  index.html
17
17
  test-files/
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>Page Name</title>
5
- <script type="module" src="/src/ui/elements/vir-app.element.ts"></script>
5
+ <script type="module" src="./ui/elements/vir-app.element.ts"></script>
6
6
  <link rel="stylesheet" type="text/css" href="/index.css" />
7
7
  </head>
8
8
  <body>
@@ -0,0 +1,10 @@
1
+ import {defineElementNoInputs, html} from 'element-vir';
2
+
3
+ export const VirApp = defineElementNoInputs({
4
+ tagName: 'vir-app',
5
+ renderCallback() {
6
+ return html`
7
+ Vir App goes here!
8
+ `;
9
+ },
10
+ });
@@ -1,9 +1,17 @@
1
1
  import { ConfigFileDefinition } from '../config/config-file-definition';
2
+ export declare enum NpmDepTypeEnum {
3
+ Regular = "regular",
4
+ Dev = "dev"
5
+ }
6
+ export type NpmDep = {
7
+ name: string;
8
+ type: NpmDepTypeEnum;
9
+ };
2
10
  export type DefineCommandInputs<CommandName extends string = string> = Readonly<{
3
11
  commandName: CommandName;
4
12
  subCommandDescriptions: Readonly<Record<string, string>> | Readonly<{}>;
5
13
  configFiles: Readonly<Record<string, Readonly<ConfigFileDefinition>>> | Readonly<{}>;
6
- npmDeps: ReadonlyArray<string>;
14
+ npmDeps: ReadonlyArray<NpmDep>;
7
15
  }>;
8
16
  export type SharedExecutorInputsAndCommandDefinition<DefineCommandInputsGeneric extends DefineCommandInputs> = DefineCommandInputsGeneric & {
9
17
  allAvailableSubCommands: ReadonlyArray<keyof DefineCommandInputsGeneric['subCommandDescriptions'] extends string ? keyof DefineCommandInputsGeneric['subCommandDescriptions'] : never>;
@@ -1,2 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NpmDepTypeEnum = void 0;
4
+ var NpmDepTypeEnum;
5
+ (function (NpmDepTypeEnum) {
6
+ NpmDepTypeEnum["Regular"] = "regular";
7
+ NpmDepTypeEnum["Dev"] = "dev";
8
+ })(NpmDepTypeEnum || (exports.NpmDepTypeEnum = NpmDepTypeEnum = {}));
@@ -31,27 +31,15 @@ const promises_1 = require("fs/promises");
31
31
  const path_1 = require("path");
32
32
  const semver = __importStar(require("semver"));
33
33
  const fs_2 = require("../../augments/fs");
34
+ const define_command_inputs_1 = require("../command/define-command-inputs");
34
35
  async function updateDepsAsNeeded(inputs) {
35
36
  try {
36
37
  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(common_1.isTruthy);
38
+ const depsToUpdate = upgradeVersions.filter(common_1.isTruthy);
51
39
  await (0, common_1.awaitedForEach)(depsToUpdate, async (depDetails) => {
52
- const depToInstall = `${depDetails.npmDep}@${depDetails.version}`;
40
+ const depToInstall = `${depDetails.name}@${depDetails.version}`;
53
41
  console.info(`${node_js_1.logColors.info}Installing ${depToInstall}...`);
54
- await (0, node_js_1.runShellCommand)(`npm i -D ${depToInstall}`, {
42
+ await (0, node_js_1.runShellCommand)(`npm i ${depDetails.type === define_command_inputs_1.NpmDepTypeEnum.Dev ? '-D' : ''} ${depToInstall}`, {
55
43
  cwd: inputs.repoDir,
56
44
  rejectOnError: true,
57
45
  });
@@ -80,17 +68,20 @@ async function getVersionsToUpgradeTo({ repoDir, packageDir, npmDeps: neededNpmD
80
68
  ...virmatorPackageJson.dependencies,
81
69
  };
82
70
  return neededNpmDeps.map((npmDep) => {
83
- const currentRepoVersion = cleanDepVersion(currentRepoDepVersions[npmDep]);
84
- const virmatorDepVersion = cleanDepVersion(packageDepVersions[npmDep]);
71
+ const currentRepoVersion = cleanDepVersion(currentRepoDepVersions[npmDep.name]);
72
+ const virmatorDepVersion = cleanDepVersion(packageDepVersions[npmDep.name]);
85
73
  if (!virmatorDepVersion) {
86
- throw new Error(`No npm dep version listed for "${npmDep}" in ${packageBinName}'s dependencies.`);
74
+ throw new Error(`No npm dep version listed for "${npmDep.name}" in ${packageBinName}'s dependencies.`);
87
75
  }
88
76
  if (currentRepoVersion !== '*' &&
89
77
  (!currentRepoVersion ||
90
78
  semver.gt(virmatorDepVersion, currentRepoVersion) ||
91
- (packageDepVersions[npmDep].match(/^\d/) &&
79
+ (packageDepVersions[npmDep.name].match(/^\d/) &&
92
80
  virmatorDepVersion !== currentRepoVersion))) {
93
- return virmatorDepVersion;
81
+ return {
82
+ ...npmDep,
83
+ version: virmatorDepVersion,
84
+ };
94
85
  }
95
86
  else {
96
87
  return undefined;
@@ -1,19 +1,26 @@
1
+ import { NpmDepTypeEnum } from '../api/command/define-command-inputs';
1
2
  export declare const codeInMarkdownCommandDefinition: {
2
3
  commandName: "code-in-markdown";
3
4
  subCommandDescriptions: {
4
5
  readonly check: "Check that markdown files have their examples inserted and are up-to-date.";
5
6
  };
6
7
  configFiles: {};
7
- npmDeps: readonly ["markdown-code-example-inserter"];
8
+ npmDeps: readonly [{
9
+ readonly name: "markdown-code-example-inserter";
10
+ readonly type: NpmDepTypeEnum.Dev;
11
+ }];
8
12
  } & {
9
13
  allAvailableSubCommands: readonly "check"[];
10
- subCommands: import("..").SubCommandsMap<{
14
+ subCommands: import("../api/command/define-command-inputs").SubCommandsMap<{
11
15
  commandName: "code-in-markdown";
12
16
  subCommandDescriptions: {
13
17
  readonly check: "Check that markdown files have their examples inserted and are up-to-date.";
14
18
  };
15
19
  configFiles: {};
16
- npmDeps: readonly ["markdown-code-example-inserter"];
20
+ npmDeps: readonly [{
21
+ readonly name: "markdown-code-example-inserter";
22
+ readonly type: NpmDepTypeEnum.Dev;
23
+ }];
17
24
  }>;
18
25
  } & {
19
26
  executor: import("..").CommandExecutor<{
@@ -22,7 +29,10 @@ export declare const codeInMarkdownCommandDefinition: {
22
29
  readonly check: "Check that markdown files have their examples inserted and are up-to-date.";
23
30
  };
24
31
  configFiles: {};
25
- npmDeps: readonly ["markdown-code-example-inserter"];
32
+ npmDeps: readonly [{
33
+ readonly name: "markdown-code-example-inserter";
34
+ readonly type: NpmDepTypeEnum.Dev;
35
+ }];
26
36
  }>;
27
37
  createDescription: import("..").CreateDescriptionsCallback<{
28
38
  commandName: "code-in-markdown";
@@ -30,7 +40,10 @@ export declare const codeInMarkdownCommandDefinition: {
30
40
  readonly check: "Check that markdown files have their examples inserted and are up-to-date.";
31
41
  };
32
42
  configFiles: {};
33
- npmDeps: readonly ["markdown-code-example-inserter"];
43
+ npmDeps: readonly [{
44
+ readonly name: "markdown-code-example-inserter";
45
+ readonly type: NpmDepTypeEnum.Dev;
46
+ }];
34
47
  }>;
35
48
  extend: import("../api/command/define-command").ExtendCallback<{
36
49
  commandName: "code-in-markdown";
@@ -38,6 +51,9 @@ export declare const codeInMarkdownCommandDefinition: {
38
51
  readonly check: "Check that markdown files have their examples inserted and are up-to-date.";
39
52
  };
40
53
  configFiles: {};
41
- npmDeps: readonly ["markdown-code-example-inserter"];
54
+ npmDeps: readonly [{
55
+ readonly name: "markdown-code-example-inserter";
56
+ readonly type: NpmDepTypeEnum.Dev;
57
+ }];
42
58
  }>;
43
59
  };
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.codeInMarkdownCommandDefinition = void 0;
4
4
  const define_command_1 = require("../api/command/define-command");
5
+ const define_command_inputs_1 = require("../api/command/define-command-inputs");
5
6
  const package_paths_1 = require("../file-paths/package-paths");
6
7
  exports.codeInMarkdownCommandDefinition = (0, define_command_1.defineCommand)({
7
8
  commandName: 'code-in-markdown',
@@ -9,7 +10,9 @@ exports.codeInMarkdownCommandDefinition = (0, define_command_1.defineCommand)({
9
10
  check: 'Check that markdown files have their examples inserted and are up-to-date.',
10
11
  },
11
12
  configFiles: {},
12
- npmDeps: ['markdown-code-example-inserter'],
13
+ npmDeps: [
14
+ { name: 'markdown-code-example-inserter', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
15
+ ],
13
16
  }, ({ commandName, packageBinName }) => {
14
17
  return {
15
18
  sections: [
@@ -1,3 +1,4 @@
1
+ import { NpmDepTypeEnum } from '../api/command/define-command-inputs';
1
2
  export declare const compileCommandDefinition: {
2
3
  commandName: "compile";
3
4
  subCommandDescriptions: {
@@ -9,10 +10,13 @@ export declare const compileCommandDefinition: {
9
10
  readonly copyToPathRelativeToRepoDir: "tsconfig.json";
10
11
  };
11
12
  };
12
- npmDeps: readonly ["typescript"];
13
+ npmDeps: readonly [{
14
+ readonly name: "typescript";
15
+ readonly type: NpmDepTypeEnum.Dev;
16
+ }];
13
17
  } & {
14
18
  allAvailableSubCommands: readonly "check"[];
15
- subCommands: import("..").SubCommandsMap<{
19
+ subCommands: import("../api/command/define-command-inputs").SubCommandsMap<{
16
20
  commandName: "compile";
17
21
  subCommandDescriptions: {
18
22
  readonly check: "Run type checking without emitting compiled files.";
@@ -23,7 +27,10 @@ export declare const compileCommandDefinition: {
23
27
  readonly copyToPathRelativeToRepoDir: "tsconfig.json";
24
28
  };
25
29
  };
26
- npmDeps: readonly ["typescript"];
30
+ npmDeps: readonly [{
31
+ readonly name: "typescript";
32
+ readonly type: NpmDepTypeEnum.Dev;
33
+ }];
27
34
  }>;
28
35
  } & {
29
36
  executor: import("..").CommandExecutor<{
@@ -37,7 +44,10 @@ export declare const compileCommandDefinition: {
37
44
  readonly copyToPathRelativeToRepoDir: "tsconfig.json";
38
45
  };
39
46
  };
40
- npmDeps: readonly ["typescript"];
47
+ npmDeps: readonly [{
48
+ readonly name: "typescript";
49
+ readonly type: NpmDepTypeEnum.Dev;
50
+ }];
41
51
  }>;
42
52
  createDescription: import("..").CreateDescriptionsCallback<{
43
53
  commandName: "compile";
@@ -50,7 +60,10 @@ export declare const compileCommandDefinition: {
50
60
  readonly copyToPathRelativeToRepoDir: "tsconfig.json";
51
61
  };
52
62
  };
53
- npmDeps: readonly ["typescript"];
63
+ npmDeps: readonly [{
64
+ readonly name: "typescript";
65
+ readonly type: NpmDepTypeEnum.Dev;
66
+ }];
54
67
  }>;
55
68
  extend: import("../api/command/define-command").ExtendCallback<{
56
69
  commandName: "compile";
@@ -63,6 +76,9 @@ export declare const compileCommandDefinition: {
63
76
  readonly copyToPathRelativeToRepoDir: "tsconfig.json";
64
77
  };
65
78
  };
66
- npmDeps: readonly ["typescript"];
79
+ npmDeps: readonly [{
80
+ readonly name: "typescript";
81
+ readonly type: NpmDepTypeEnum.Dev;
82
+ }];
67
83
  }>;
68
84
  };
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.compileCommandDefinition = void 0;
4
4
  const path_1 = require("path");
5
5
  const define_command_1 = require("../api/command/define-command");
6
+ const define_command_inputs_1 = require("../api/command/define-command-inputs");
6
7
  const package_paths_1 = require("../file-paths/package-paths");
7
8
  exports.compileCommandDefinition = (0, define_command_1.defineCommand)({
8
9
  commandName: 'compile',
@@ -15,7 +16,9 @@ exports.compileCommandDefinition = (0, define_command_1.defineCommand)({
15
16
  copyToPathRelativeToRepoDir: 'tsconfig.json',
16
17
  },
17
18
  },
18
- npmDeps: ['typescript'],
19
+ npmDeps: [
20
+ { name: 'typescript', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
21
+ ],
19
22
  }, ({ commandName, packageBinName }) => {
20
23
  return {
21
24
  sections: [
@@ -57,11 +57,15 @@ exports.nonCommandConfigs = [
57
57
  copyToPathRelativeToRepoDir: (0, path_1.join)('.github', 'workflows', 'tests.yml'),
58
58
  },
59
59
  {
60
- copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, 'public', 'index.css'),
61
- copyToPathRelativeToRepoDir: (0, path_1.join)('public', 'index.css'),
60
+ copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, 'www-static', 'index.css'),
61
+ copyToPathRelativeToRepoDir: (0, path_1.join)('www-static', 'index.css'),
62
62
  },
63
63
  {
64
- copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, 'index.html'),
65
- copyToPathRelativeToRepoDir: (0, path_1.join)('index.html'),
64
+ copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, 'src', 'index.html'),
65
+ copyToPathRelativeToRepoDir: (0, path_1.join)('src', 'index.html'),
66
+ },
67
+ {
68
+ copyFromInternalPath: (0, path_1.join)(package_paths_1.virmatorConfigsDir, 'src', 'ui', 'elements', 'vir-app.element.ts'),
69
+ copyToPathRelativeToRepoDir: (0, path_1.join)('src', 'ui', 'elements', 'vir-app.element.ts'),
66
70
  },
67
71
  ];
@@ -1,3 +1,4 @@
1
+ import { NpmDepTypeEnum } from '../api/command/define-command-inputs';
1
2
  import { combineTextConfig } from './extra-configs/combine-text-config';
2
3
  export declare const formatCommandDefinition: {
3
4
  commandName: "format";
@@ -15,10 +16,34 @@ export declare const formatCommandDefinition: {
15
16
  readonly updateExistingConfigFileCallback: typeof combineTextConfig;
16
17
  };
17
18
  };
18
- npmDeps: readonly ["prettier", "prettier-plugin-jsdoc", "prettier-plugin-multiline-arrays", "prettier-plugin-organize-imports", "prettier-plugin-packagejson", "prettier-plugin-sort-json", "prettier-plugin-toml", "prettier-plugin-interpolated-html-tags"];
19
+ npmDeps: readonly [{
20
+ readonly name: "prettier";
21
+ readonly type: NpmDepTypeEnum.Dev;
22
+ }, {
23
+ readonly name: "prettier-plugin-jsdoc";
24
+ readonly type: NpmDepTypeEnum.Dev;
25
+ }, {
26
+ readonly name: "prettier-plugin-multiline-arrays";
27
+ readonly type: NpmDepTypeEnum.Dev;
28
+ }, {
29
+ readonly name: "prettier-plugin-organize-imports";
30
+ readonly type: NpmDepTypeEnum.Dev;
31
+ }, {
32
+ readonly name: "prettier-plugin-packagejson";
33
+ readonly type: NpmDepTypeEnum.Dev;
34
+ }, {
35
+ readonly name: "prettier-plugin-sort-json";
36
+ readonly type: NpmDepTypeEnum.Dev;
37
+ }, {
38
+ readonly name: "prettier-plugin-toml";
39
+ readonly type: NpmDepTypeEnum.Dev;
40
+ }, {
41
+ readonly name: "prettier-plugin-interpolated-html-tags";
42
+ readonly type: NpmDepTypeEnum.Dev;
43
+ }];
19
44
  } & {
20
45
  allAvailableSubCommands: readonly "check"[];
21
- subCommands: import("..").SubCommandsMap<{
46
+ subCommands: import("../api/command/define-command-inputs").SubCommandsMap<{
22
47
  commandName: "format";
23
48
  subCommandDescriptions: {
24
49
  readonly check: "check formatting without overwriting files.";
@@ -34,7 +59,31 @@ export declare const formatCommandDefinition: {
34
59
  readonly updateExistingConfigFileCallback: typeof combineTextConfig;
35
60
  };
36
61
  };
37
- npmDeps: readonly ["prettier", "prettier-plugin-jsdoc", "prettier-plugin-multiline-arrays", "prettier-plugin-organize-imports", "prettier-plugin-packagejson", "prettier-plugin-sort-json", "prettier-plugin-toml", "prettier-plugin-interpolated-html-tags"];
62
+ npmDeps: readonly [{
63
+ readonly name: "prettier";
64
+ readonly type: NpmDepTypeEnum.Dev;
65
+ }, {
66
+ readonly name: "prettier-plugin-jsdoc";
67
+ readonly type: NpmDepTypeEnum.Dev;
68
+ }, {
69
+ readonly name: "prettier-plugin-multiline-arrays";
70
+ readonly type: NpmDepTypeEnum.Dev;
71
+ }, {
72
+ readonly name: "prettier-plugin-organize-imports";
73
+ readonly type: NpmDepTypeEnum.Dev;
74
+ }, {
75
+ readonly name: "prettier-plugin-packagejson";
76
+ readonly type: NpmDepTypeEnum.Dev;
77
+ }, {
78
+ readonly name: "prettier-plugin-sort-json";
79
+ readonly type: NpmDepTypeEnum.Dev;
80
+ }, {
81
+ readonly name: "prettier-plugin-toml";
82
+ readonly type: NpmDepTypeEnum.Dev;
83
+ }, {
84
+ readonly name: "prettier-plugin-interpolated-html-tags";
85
+ readonly type: NpmDepTypeEnum.Dev;
86
+ }];
38
87
  }>;
39
88
  } & {
40
89
  executor: import("..").CommandExecutor<{
@@ -53,7 +102,31 @@ export declare const formatCommandDefinition: {
53
102
  readonly updateExistingConfigFileCallback: typeof combineTextConfig;
54
103
  };
55
104
  };
56
- npmDeps: readonly ["prettier", "prettier-plugin-jsdoc", "prettier-plugin-multiline-arrays", "prettier-plugin-organize-imports", "prettier-plugin-packagejson", "prettier-plugin-sort-json", "prettier-plugin-toml", "prettier-plugin-interpolated-html-tags"];
105
+ npmDeps: readonly [{
106
+ readonly name: "prettier";
107
+ readonly type: NpmDepTypeEnum.Dev;
108
+ }, {
109
+ readonly name: "prettier-plugin-jsdoc";
110
+ readonly type: NpmDepTypeEnum.Dev;
111
+ }, {
112
+ readonly name: "prettier-plugin-multiline-arrays";
113
+ readonly type: NpmDepTypeEnum.Dev;
114
+ }, {
115
+ readonly name: "prettier-plugin-organize-imports";
116
+ readonly type: NpmDepTypeEnum.Dev;
117
+ }, {
118
+ readonly name: "prettier-plugin-packagejson";
119
+ readonly type: NpmDepTypeEnum.Dev;
120
+ }, {
121
+ readonly name: "prettier-plugin-sort-json";
122
+ readonly type: NpmDepTypeEnum.Dev;
123
+ }, {
124
+ readonly name: "prettier-plugin-toml";
125
+ readonly type: NpmDepTypeEnum.Dev;
126
+ }, {
127
+ readonly name: "prettier-plugin-interpolated-html-tags";
128
+ readonly type: NpmDepTypeEnum.Dev;
129
+ }];
57
130
  }>;
58
131
  createDescription: import("..").CreateDescriptionsCallback<{
59
132
  commandName: "format";
@@ -71,7 +144,31 @@ export declare const formatCommandDefinition: {
71
144
  readonly updateExistingConfigFileCallback: typeof combineTextConfig;
72
145
  };
73
146
  };
74
- npmDeps: readonly ["prettier", "prettier-plugin-jsdoc", "prettier-plugin-multiline-arrays", "prettier-plugin-organize-imports", "prettier-plugin-packagejson", "prettier-plugin-sort-json", "prettier-plugin-toml", "prettier-plugin-interpolated-html-tags"];
147
+ npmDeps: readonly [{
148
+ readonly name: "prettier";
149
+ readonly type: NpmDepTypeEnum.Dev;
150
+ }, {
151
+ readonly name: "prettier-plugin-jsdoc";
152
+ readonly type: NpmDepTypeEnum.Dev;
153
+ }, {
154
+ readonly name: "prettier-plugin-multiline-arrays";
155
+ readonly type: NpmDepTypeEnum.Dev;
156
+ }, {
157
+ readonly name: "prettier-plugin-organize-imports";
158
+ readonly type: NpmDepTypeEnum.Dev;
159
+ }, {
160
+ readonly name: "prettier-plugin-packagejson";
161
+ readonly type: NpmDepTypeEnum.Dev;
162
+ }, {
163
+ readonly name: "prettier-plugin-sort-json";
164
+ readonly type: NpmDepTypeEnum.Dev;
165
+ }, {
166
+ readonly name: "prettier-plugin-toml";
167
+ readonly type: NpmDepTypeEnum.Dev;
168
+ }, {
169
+ readonly name: "prettier-plugin-interpolated-html-tags";
170
+ readonly type: NpmDepTypeEnum.Dev;
171
+ }];
75
172
  }>;
76
173
  extend: import("../api/command/define-command").ExtendCallback<{
77
174
  commandName: "format";
@@ -89,6 +186,30 @@ export declare const formatCommandDefinition: {
89
186
  readonly updateExistingConfigFileCallback: typeof combineTextConfig;
90
187
  };
91
188
  };
92
- npmDeps: readonly ["prettier", "prettier-plugin-jsdoc", "prettier-plugin-multiline-arrays", "prettier-plugin-organize-imports", "prettier-plugin-packagejson", "prettier-plugin-sort-json", "prettier-plugin-toml", "prettier-plugin-interpolated-html-tags"];
189
+ npmDeps: readonly [{
190
+ readonly name: "prettier";
191
+ readonly type: NpmDepTypeEnum.Dev;
192
+ }, {
193
+ readonly name: "prettier-plugin-jsdoc";
194
+ readonly type: NpmDepTypeEnum.Dev;
195
+ }, {
196
+ readonly name: "prettier-plugin-multiline-arrays";
197
+ readonly type: NpmDepTypeEnum.Dev;
198
+ }, {
199
+ readonly name: "prettier-plugin-organize-imports";
200
+ readonly type: NpmDepTypeEnum.Dev;
201
+ }, {
202
+ readonly name: "prettier-plugin-packagejson";
203
+ readonly type: NpmDepTypeEnum.Dev;
204
+ }, {
205
+ readonly name: "prettier-plugin-sort-json";
206
+ readonly type: NpmDepTypeEnum.Dev;
207
+ }, {
208
+ readonly name: "prettier-plugin-toml";
209
+ readonly type: NpmDepTypeEnum.Dev;
210
+ }, {
211
+ readonly name: "prettier-plugin-interpolated-html-tags";
212
+ readonly type: NpmDepTypeEnum.Dev;
213
+ }];
93
214
  }>;
94
215
  };
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.formatCommandDefinition = void 0;
4
4
  const path_1 = require("path");
5
5
  const define_command_1 = require("../api/command/define-command");
6
+ const define_command_inputs_1 = require("../api/command/define-command-inputs");
6
7
  const package_paths_1 = require("../file-paths/package-paths");
7
8
  const combine_text_config_1 = require("./extra-configs/combine-text-config");
8
9
  const defaultFormatExtensions = [
@@ -41,14 +42,14 @@ exports.formatCommandDefinition = (0, define_command_1.defineCommand)({
41
42
  },
42
43
  },
43
44
  npmDeps: [
44
- 'prettier',
45
- 'prettier-plugin-jsdoc',
46
- 'prettier-plugin-multiline-arrays',
47
- 'prettier-plugin-organize-imports',
48
- 'prettier-plugin-packagejson',
49
- 'prettier-plugin-sort-json',
50
- 'prettier-plugin-toml',
51
- 'prettier-plugin-interpolated-html-tags',
45
+ { name: 'prettier', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
46
+ { name: 'prettier-plugin-jsdoc', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
47
+ { name: 'prettier-plugin-multiline-arrays', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
48
+ { name: 'prettier-plugin-organize-imports', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
49
+ { name: 'prettier-plugin-packagejson', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
50
+ { name: 'prettier-plugin-sort-json', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
51
+ { name: 'prettier-plugin-toml', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
52
+ { name: 'prettier-plugin-interpolated-html-tags', type: define_command_inputs_1.NpmDepTypeEnum.Dev },
52
53
  ],
53
54
  }, ({ commandName, subCommands, packageBinName }) => {
54
55
  return {