virmator 1.4.5 → 1.4.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.
- package/.prettierrc.js +1 -1
- package/dist/cli/cli-util/cli-flags.js +3 -3
- package/dist/cli/cli-util/shell-command-wrapper.d.ts +1 -1
- package/dist/cli/cli-util/shell-command-wrapper.js +2 -2
- package/dist/cli/cli-util/update-configs.js +3 -3
- package/dist/cli/commands/all-cli-commands.js +4 -4
- package/dist/cli/commands/implementations/code-in-markdown.command.js +2 -2
- package/dist/cli/commands/implementations/format.command.js +3 -3
- package/dist/cli/commands/implementations/test.command.js +2 -2
- package/dist/cli/commands/implementations/update-all-configs.command.js +3 -3
- package/dist/cli/commands/implementations/update-bare-configs.command.js +3 -3
- package/dist/cli/config/copy-config.js +3 -3
- package/dist/cli/config/extendable-config.js +3 -3
- package/dist/errors/cli-command-error.js +2 -2
- package/dist/errors/cli-flag-error.js +2 -2
- package/dist/file-paths/virmator-repo-paths.js +2 -2
- package/dist/file-paths/virmator-test-repos-paths.js +2 -2
- package/package.json +15 -15
package/.prettierrc.js
CHANGED
|
@@ -28,7 +28,7 @@ const prettierConfig = {
|
|
|
28
28
|
bracketSpacing: false,
|
|
29
29
|
endOfLine: 'lf',
|
|
30
30
|
// Arrays with just a single element don't wrap. But after that, they always wrap.
|
|
31
|
-
|
|
31
|
+
multilineArraysWrapThreshold: 1,
|
|
32
32
|
htmlWhitespaceSensitivity: 'ignore',
|
|
33
33
|
jsonRecursiveSort: true,
|
|
34
34
|
bracketSameLine: false,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.extractArguments = exports.fillInCliFlags = exports.flagDescriptions = exports.defaultCliFlags = exports.CliFlagName = void 0;
|
|
4
|
-
const
|
|
4
|
+
const augment_vir_1 = require("augment-vir");
|
|
5
5
|
const cli_command_name_1 = require("./cli-command-name");
|
|
6
6
|
var CliFlagName;
|
|
7
7
|
(function (CliFlagName) {
|
|
@@ -31,11 +31,11 @@ function fillInCliFlags(inputFlags) {
|
|
|
31
31
|
exports.fillInCliFlags = fillInCliFlags;
|
|
32
32
|
function extractArguments(args) {
|
|
33
33
|
const { inputFlags, invalidFlags, otherArgs, command } = args.reduce((accum, currentArg) => {
|
|
34
|
-
if ((0,
|
|
34
|
+
if ((0, augment_vir_1.isEnumValue)(currentArg, cli_command_name_1.CliCommandName) && !accum.command) {
|
|
35
35
|
accum.command = currentArg;
|
|
36
36
|
}
|
|
37
37
|
else if (currentArg.startsWith('--')) {
|
|
38
|
-
if ((0,
|
|
38
|
+
if ((0, augment_vir_1.isEnumValue)(currentArg, CliFlagName)) {
|
|
39
39
|
accum.inputFlags[currentArg] = true;
|
|
40
40
|
}
|
|
41
41
|
else if (!accum.command) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ShellOutput } from 'augment-vir/dist/node';
|
|
1
|
+
import { ShellOutput } from 'augment-vir/dist/cjs/node-only';
|
|
2
2
|
import { CommandFunctionInput } from '../commands/cli-command';
|
|
3
3
|
export declare type OutputFilter = (toPrint: string) => string;
|
|
4
4
|
export declare type Filters = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.runVirmatorShellCommand = void 0;
|
|
4
|
-
const
|
|
4
|
+
const node_only_1 = require("augment-vir/dist/cjs/node-only");
|
|
5
5
|
const defaultFilter = (input) => input;
|
|
6
6
|
function outputWrapper(callback, filter) {
|
|
7
7
|
return (input) => {
|
|
@@ -15,7 +15,7 @@ async function runVirmatorShellCommand(command, { repoDir: cwd, stdoutCallback,
|
|
|
15
15
|
stdoutFilter: defaultFilter,
|
|
16
16
|
stderrFilter: defaultFilter,
|
|
17
17
|
}) {
|
|
18
|
-
const shellResults = await (0,
|
|
18
|
+
const shellResults = await (0, node_only_1.runShellCommand)(command, {
|
|
19
19
|
cwd,
|
|
20
20
|
stdoutCallback: outputWrapper(stdoutCallback, stdoutFilter),
|
|
21
21
|
stderrCallback: outputWrapper(stderrCallback, stderrFilter),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.updateConfigs = void 0;
|
|
4
|
-
const
|
|
4
|
+
const augment_vir_1 = require("augment-vir");
|
|
5
5
|
const fs_extra_1 = require("fs-extra");
|
|
6
6
|
const cli_command_1 = require("../commands/cli-command");
|
|
7
7
|
const format_command_1 = require("../commands/implementations/format.command");
|
|
@@ -9,10 +9,10 @@ const copy_config_1 = require("../config/copy-config");
|
|
|
9
9
|
const extendable_config_1 = require("../config/extendable-config");
|
|
10
10
|
const cli_flags_1 = require("./cli-flags");
|
|
11
11
|
async function updateConfigs(configKeysEnum, commandInputs) {
|
|
12
|
-
const inputConfigFiles = (0,
|
|
12
|
+
const inputConfigFiles = (0, augment_vir_1.filterToEnumValues)(commandInputs.rawArgs, configKeysEnum);
|
|
13
13
|
const configFilesToCopy = inputConfigFiles.length
|
|
14
14
|
? inputConfigFiles
|
|
15
|
-
: (0,
|
|
15
|
+
: (0, augment_vir_1.getEnumTypedValues)(configKeysEnum);
|
|
16
16
|
let writtenFileCount = 0;
|
|
17
17
|
const errors = [];
|
|
18
18
|
await Promise.all(configFilesToCopy.map(async (configKey) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.allCliCommands = exports.runHelpCommand = exports.helpImplementation = exports.getUnsupportedFlags = void 0;
|
|
4
|
-
const
|
|
4
|
+
const augment_vir_1 = require("augment-vir");
|
|
5
5
|
const package_name_1 = require("../../package-name");
|
|
6
6
|
const cli_color_1 = require("../cli-util/cli-color");
|
|
7
7
|
const cli_command_name_1 = require("../cli-util/cli-command-name");
|
|
@@ -27,7 +27,7 @@ function createUnImplementedCommand(commandName) {
|
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
function getUnsupportedFlags(currentFlags, flagSupport) {
|
|
30
|
-
return (0,
|
|
30
|
+
return (0, augment_vir_1.getObjectTypedKeys)(currentFlags).filter((currentFlag) => {
|
|
31
31
|
if (currentFlags[currentFlag]) {
|
|
32
32
|
return !flagSupport[currentFlag];
|
|
33
33
|
}
|
|
@@ -51,13 +51,13 @@ exports.helpImplementation = {
|
|
|
51
51
|
},
|
|
52
52
|
};
|
|
53
53
|
function runHelpCommand({ stdoutCallback }) {
|
|
54
|
-
const flagsMessage = (0,
|
|
54
|
+
const flagsMessage = (0, augment_vir_1.getEnumTypedValues)(cli_flags_1.CliFlagName)
|
|
55
55
|
.sort()
|
|
56
56
|
.map((flagName) => {
|
|
57
57
|
return `${cli_color_1.Color.Bold}${cli_color_1.Color.Info} ${flagName}${cli_color_1.Color.Reset}: ${cli_flags_1.flagDescriptions[flagName].trim()}`;
|
|
58
58
|
})
|
|
59
59
|
.join('\n ');
|
|
60
|
-
const commandsMessage = (0,
|
|
60
|
+
const commandsMessage = (0, augment_vir_1.getEnumTypedValues)(cli_command_name_1.CliCommandName)
|
|
61
61
|
.sort()
|
|
62
62
|
.map((commandName) => {
|
|
63
63
|
return `${cli_color_1.Color.Bold}${cli_color_1.Color.Info} ${commandName}${cli_color_1.Color.Reset}: ${exports.allCliCommands[commandName].description.trim()}`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.runCodeInMarkdownCommand = exports.codeInMarkdownCommandImplementation = void 0;
|
|
4
|
-
const
|
|
4
|
+
const node_only_1 = require("augment-vir/dist/cjs/node-only");
|
|
5
5
|
const virmator_repo_paths_1 = require("../../../file-paths/virmator-repo-paths");
|
|
6
6
|
const cli_command_name_1 = require("../../cli-util/cli-command-name");
|
|
7
7
|
const cli_flags_1 = require("../../cli-util/cli-flags");
|
|
@@ -36,7 +36,7 @@ exports.codeInMarkdownCommandImplementation = {
|
|
|
36
36
|
const mdCodePath = (0, virmator_repo_paths_1.getNpmBinPath)('md-code');
|
|
37
37
|
async function runCodeInMarkdownCommand(inputs) {
|
|
38
38
|
const args = inputs.rawArgs.length
|
|
39
|
-
? (0,
|
|
39
|
+
? (0, node_only_1.interpolationSafeWindowsPath)(inputs.rawArgs.join(' '))
|
|
40
40
|
: `\"./**/*.md\"`;
|
|
41
41
|
const mdCodeCommand = `${mdCodePath} ${args}`;
|
|
42
42
|
const results = await (0, shell_command_wrapper_1.runVirmatorShellCommand)(mdCodeCommand, inputs);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.extractFormatArgs = exports.runFormatCommand = exports.formatImplementation = exports.filesMarkerArg = exports.defaultFormatArgs = exports.FormatOperation = void 0;
|
|
4
|
-
const
|
|
4
|
+
const augment_vir_1 = require("augment-vir");
|
|
5
5
|
const virmator_repo_paths_1 = require("../../../file-paths/virmator-repo-paths");
|
|
6
6
|
const package_name_1 = require("../../../package-name");
|
|
7
7
|
const cli_command_name_1 = require("../../cli-util/cli-command-name");
|
|
@@ -95,11 +95,11 @@ async function runFormatCommand(inputs) {
|
|
|
95
95
|
exports.runFormatCommand = runFormatCommand;
|
|
96
96
|
function extractFormatArgs(rawArgs) {
|
|
97
97
|
let addingFileExtensions = false;
|
|
98
|
-
const operation = (0,
|
|
98
|
+
const operation = (0, augment_vir_1.isEnumValue)(rawArgs[0], FormatOperation)
|
|
99
99
|
? rawArgs[0]
|
|
100
100
|
: FormatOperation.Write;
|
|
101
101
|
const extractedArgs = rawArgs.reduce((accum, currentRawArg, index) => {
|
|
102
|
-
if (index === 0 && (0,
|
|
102
|
+
if (index === 0 && (0, augment_vir_1.isEnumValue)(rawArgs[index], FormatOperation)) {
|
|
103
103
|
return accum;
|
|
104
104
|
}
|
|
105
105
|
else if (currentRawArg === exports.filesMarkerArg) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.runTestCommand = exports.testCommandImplementation = void 0;
|
|
4
|
-
const
|
|
4
|
+
const node_only_1 = require("augment-vir/dist/cjs/node-only");
|
|
5
5
|
const virmator_repo_paths_1 = require("../../../file-paths/virmator-repo-paths");
|
|
6
6
|
const cli_command_name_1 = require("../../cli-util/cli-command-name");
|
|
7
7
|
const cli_flags_1 = require("../../cli-util/cli-flags");
|
|
@@ -31,7 +31,7 @@ async function runTestCommand(inputs) {
|
|
|
31
31
|
return compileResult;
|
|
32
32
|
}
|
|
33
33
|
const args = inputs.rawArgs.length
|
|
34
|
-
? (0,
|
|
34
|
+
? (0, node_only_1.interpolationSafeWindowsPath)(inputs.rawArgs.join(' '))
|
|
35
35
|
: `\"./dist/**/!(*.type).test.js\"`;
|
|
36
36
|
const testCommand = `${testVirPath} ${args}`;
|
|
37
37
|
const results = await (0, shell_command_wrapper_1.runVirmatorShellCommand)(testCommand, inputs, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.runUpdateAllConfigsCommand = exports.updateAllConfigsCommandImplementation = void 0;
|
|
4
|
-
const
|
|
4
|
+
const augment_vir_1 = require("augment-vir");
|
|
5
5
|
const package_name_1 = require("../../../package-name");
|
|
6
6
|
const cli_command_name_1 = require("../../cli-util/cli-command-name");
|
|
7
7
|
const cli_flags_1 = require("../../cli-util/cli-flags");
|
|
@@ -19,12 +19,12 @@ exports.updateAllConfigsCommandImplementation = {
|
|
|
19
19
|
If no arguments are given, this command copies all config files.
|
|
20
20
|
|
|
21
21
|
list of possible arguments:
|
|
22
|
-
${(0,
|
|
22
|
+
${(0, augment_vir_1.getEnumTypedValues)(config_key_1.ConfigKey).join('\n ')}
|
|
23
23
|
|
|
24
24
|
examples:
|
|
25
25
|
update all config files:
|
|
26
26
|
${package_name_1.packageName} ${cli_command_name_1.CliCommandName.UpdateAllConfigs}
|
|
27
|
-
update only ${(0,
|
|
27
|
+
update only ${(0, augment_vir_1.joinWithFinalConjunction)(exampleFlags)} files:
|
|
28
28
|
${package_name_1.packageName} ${cli_command_name_1.CliCommandName.UpdateAllConfigs} ${exampleFlags.join(' ')}`,
|
|
29
29
|
implementation: runUpdateAllConfigsCommand,
|
|
30
30
|
configFlagSupport: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.runUpdateBareConfigsCommand = exports.updateBareConfigsCommandImplementation = void 0;
|
|
4
|
-
const
|
|
4
|
+
const augment_vir_1 = require("augment-vir");
|
|
5
5
|
const package_name_1 = require("../../../package-name");
|
|
6
6
|
const cli_command_name_1 = require("../../cli-util/cli-command-name");
|
|
7
7
|
const cli_flags_1 = require("../../cli-util/cli-flags");
|
|
@@ -20,12 +20,12 @@ exports.updateBareConfigsCommandImplementation = {
|
|
|
20
20
|
If no arguments are given, this command copies all the bare config files.
|
|
21
21
|
|
|
22
22
|
list of possible arguments:
|
|
23
|
-
${(0,
|
|
23
|
+
${(0, augment_vir_1.getEnumTypedValues)(config_key_1.BareConfigKey).join('\n ')}
|
|
24
24
|
|
|
25
25
|
examples:
|
|
26
26
|
update all bare config files:
|
|
27
27
|
${package_name_1.packageName} ${cli_command_name_1.CliCommandName.UpdateBareConfigs}
|
|
28
|
-
update only ${(0,
|
|
28
|
+
update only ${(0, augment_vir_1.joinWithFinalConjunction)(exampleFlags)} files:
|
|
29
29
|
${package_name_1.packageName} ${cli_command_name_1.CliCommandName.UpdateBareConfigs} ${exampleFlags.join(' ')}`,
|
|
30
30
|
implementation: runUpdateBareConfigsCommand,
|
|
31
31
|
configFlagSupport: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.copyConfig = void 0;
|
|
4
|
-
const
|
|
4
|
+
const node_only_1 = require("augment-vir/dist/cjs/node-only");
|
|
5
5
|
const fs_extra_1 = require("fs-extra");
|
|
6
6
|
const path_1 = require("path");
|
|
7
7
|
const config_file_error_1 = require("../../errors/config-file-error");
|
|
@@ -39,7 +39,7 @@ async function copyConfig({ configKey, forceExtendableConfig, repoDir, }) {
|
|
|
39
39
|
if (!repoConfigExists) {
|
|
40
40
|
// if extender config file does not exist, create it
|
|
41
41
|
const extenderContents = await (0, config_read_1.readUpdatedVirmatorConfigFile)(configKey, repoDir, true);
|
|
42
|
-
await (0,
|
|
42
|
+
await (0, node_only_1.writeFileAndDir)(repoConfigPath, extenderContents);
|
|
43
43
|
}
|
|
44
44
|
const repoExtendableConfigPath = (0, path_1.join)(repoDir, (0, extendable_config_1.getExtendableBaseConfigName)(configKey));
|
|
45
45
|
const repoExtendableConfigExists = (0, fs_extra_1.existsSync)(repoExtendableConfigPath);
|
|
@@ -89,7 +89,7 @@ async function copyConfig({ configKey, forceExtendableConfig, repoDir, }) {
|
|
|
89
89
|
outputFilePath = repoConfigPath;
|
|
90
90
|
}
|
|
91
91
|
if (shouldWriteConfig) {
|
|
92
|
-
await (0,
|
|
92
|
+
await (0, node_only_1.writeFileAndDir)(outputFilePath, virmatorConfigContents);
|
|
93
93
|
}
|
|
94
94
|
return {
|
|
95
95
|
logs,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isConfigExtending = exports.isExtendableConfig = exports.getExtendableBaseConfigName = exports.ExtendableConfig = void 0;
|
|
4
|
-
const
|
|
4
|
+
const augment_vir_1 = require("augment-vir");
|
|
5
5
|
const config_key_1 = require("./config-key");
|
|
6
6
|
const extendableConfigFileMap = {
|
|
7
7
|
[config_key_1.ConfigKey.Prettier]: '.prettierrc-base.js',
|
|
8
8
|
[config_key_1.ConfigKey.Cspell]: '.cspell-base.json',
|
|
9
9
|
[config_key_1.ConfigKey.TsConfig]: 'tsconfig-base.json',
|
|
10
10
|
};
|
|
11
|
-
exports.ExtendableConfig = (0,
|
|
11
|
+
exports.ExtendableConfig = (0, augment_vir_1.getObjectTypedKeys)(extendableConfigFileMap).reduce((accum, key) => {
|
|
12
12
|
accum[key] = key;
|
|
13
13
|
return accum;
|
|
14
14
|
}, {});
|
|
@@ -23,7 +23,7 @@ function isExtendableConfig(ConfigKey) {
|
|
|
23
23
|
if (!ConfigKey) {
|
|
24
24
|
return false;
|
|
25
25
|
}
|
|
26
|
-
return (0,
|
|
26
|
+
return (0, augment_vir_1.isEnumValue)(ConfigKey, exports.ExtendableConfig);
|
|
27
27
|
}
|
|
28
28
|
exports.isExtendableConfig = isExtendableConfig;
|
|
29
29
|
function isConfigExtending(key, contents) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VirmatorCliCommandError = void 0;
|
|
4
|
-
const
|
|
4
|
+
const augment_vir_1 = require("augment-vir");
|
|
5
5
|
const cli_command_name_1 = require("../cli/cli-util/cli-command-name");
|
|
6
6
|
class VirmatorCliCommandError extends Error {
|
|
7
7
|
constructor(message) {
|
|
8
|
-
super(`${message}\nExpected one of the following: ${(0,
|
|
8
|
+
super(`${message}\nExpected one of the following: ${(0, augment_vir_1.getEnumTypedValues)(cli_command_name_1.CliCommandName).join(', ')}`);
|
|
9
9
|
this.name = 'VirmatorCliCommandError';
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CliFlagError = void 0;
|
|
4
|
-
const
|
|
4
|
+
const augment_vir_1 = require("augment-vir");
|
|
5
5
|
const cli_flags_1 = require("../cli/cli-util/cli-flags");
|
|
6
6
|
class CliFlagError extends Error {
|
|
7
7
|
constructor(invalidFlags) {
|
|
8
|
-
super(`Invalid flags given: ${invalidFlags.join(',')}\nValid flags: ${(0,
|
|
8
|
+
super(`Invalid flags given: ${invalidFlags.join(',')}\nValid flags: ${(0, augment_vir_1.getObjectTypedKeys)(cli_flags_1.defaultCliFlags).join(',')}`);
|
|
9
9
|
this.name = 'CliFlagError';
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getNpmBinPath = exports.relativeSeparateConfigsDir = exports.extenderConfigsDir = exports.virmatorDistDir = exports.virmatorRootDir = void 0;
|
|
4
|
-
const
|
|
4
|
+
const node_only_1 = require("augment-vir/dist/cjs/node-only");
|
|
5
5
|
const fs_extra_1 = require("fs-extra");
|
|
6
6
|
const path_1 = require("path");
|
|
7
7
|
exports.virmatorRootDir = __dirname.replace(/(?:src|node_modules\/dist|dist).*/, '');
|
|
@@ -14,6 +14,6 @@ function getNpmBinPath(command) {
|
|
|
14
14
|
const actualBinPath = (0, fs_extra_1.existsSync)(virmatorBinPath)
|
|
15
15
|
? virmatorBinPath
|
|
16
16
|
: (0, path_1.join)(exports.virmatorRootDir, '..', '.bin', command);
|
|
17
|
-
return (0,
|
|
17
|
+
return (0, node_only_1.interpolationSafeWindowsPath)(actualBinPath);
|
|
18
18
|
}
|
|
19
19
|
exports.getNpmBinPath = getNpmBinPath;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.updateAllConfigsTestPaths = exports.updateBareConfigsTestPaths = exports.spellcheckTestPaths = exports.testTestPaths = exports.testCompilePaths = exports.testFormatPaths = exports.getCommandTestRepoDir = exports.createNodeModulesSymLinkForTests = void 0;
|
|
4
|
-
const
|
|
4
|
+
const node_only_1 = require("augment-vir/dist/cjs/node-only");
|
|
5
5
|
const path_1 = require("path");
|
|
6
6
|
const cli_command_name_1 = require("../cli/cli-util/cli-command-name");
|
|
7
7
|
const virmator_repo_paths_1 = require("./virmator-repo-paths");
|
|
8
8
|
async function createNodeModulesSymLinkForTests(dir) {
|
|
9
9
|
const symlinkPath = (0, path_1.join)(dir, 'node_modules');
|
|
10
|
-
await (0,
|
|
10
|
+
await (0, node_only_1.createSymLink)((0, path_1.join)(virmator_repo_paths_1.virmatorRootDir, 'node_modules'), symlinkPath, true);
|
|
11
11
|
return symlinkPath;
|
|
12
12
|
}
|
|
13
13
|
exports.createNodeModulesSymLinkForTests = createNodeModulesSymLinkForTests;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "virmator",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.6",
|
|
4
4
|
"description": "Handle all the stuffs in one package.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"automation",
|
|
@@ -38,24 +38,24 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"ansi-styles": "5.2.0",
|
|
41
|
-
"augment-vir": "^
|
|
42
|
-
"cspell": "^
|
|
43
|
-
"fs-extra": "^10.0
|
|
44
|
-
"markdown-code-example-inserter": "^0.1.
|
|
45
|
-
"prettier": "^2.
|
|
46
|
-
"prettier-plugin-jsdoc": "^0.
|
|
47
|
-
"prettier-plugin-multiline-arrays": "^
|
|
48
|
-
"prettier-plugin-organize-imports": "^
|
|
49
|
-
"prettier-plugin-packagejson": "^2.2.
|
|
50
|
-
"prettier-plugin-sort-json": "^0.0.
|
|
51
|
-
"simple-git": "^3.
|
|
41
|
+
"augment-vir": "^2.5.0",
|
|
42
|
+
"cspell": "^6.8.1",
|
|
43
|
+
"fs-extra": "^10.1.0",
|
|
44
|
+
"markdown-code-example-inserter": "^0.1.11",
|
|
45
|
+
"prettier": "^2.7.1",
|
|
46
|
+
"prettier-plugin-jsdoc": "^0.4.2",
|
|
47
|
+
"prettier-plugin-multiline-arrays": "^1.1.0",
|
|
48
|
+
"prettier-plugin-organize-imports": "^3.1.0",
|
|
49
|
+
"prettier-plugin-packagejson": "^2.2.18",
|
|
50
|
+
"prettier-plugin-sort-json": "^0.0.3",
|
|
51
|
+
"simple-git": "^3.13.0",
|
|
52
52
|
"test-vir": "^0.2.3",
|
|
53
|
-
"typescript": "^4.
|
|
53
|
+
"typescript": "^4.8.2"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/fs-extra": "^9.0.13",
|
|
57
|
-
"@types/node": "^
|
|
58
|
-
"ts-node": "^10.
|
|
57
|
+
"@types/node": "^18.7.13",
|
|
58
|
+
"ts-node": "^10.9.1"
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|
|
61
61
|
"node": ">=12",
|