@virmator/core 13.3.15 → 13.4.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.
- package/dist/api/copy-configs.d.ts +3 -3
- package/dist/api/copy-configs.js +1 -1
- package/dist/api/execute-command.d.ts +2 -2
- package/dist/api/install-deps.d.ts +3 -3
- package/dist/api/parse-args.d.ts +4 -4
- package/dist/api/typescript-config-file.d.ts +1 -1
- package/dist/augments/object/access.d.ts +1 -1
- package/dist/augments/tsconfig/parse-tsconfig.d.ts +1 -1
- package/dist/colors.d.ts +1 -1
- package/dist/plugin/plugin-executor.d.ts +4 -4
- package/dist/plugin/plugin-init.d.ts +2 -2
- package/dist/plugin/plugin.d.ts +2 -2
- package/package.json +1 -1
- package/dist/file-paths.mock.d.ts +0 -3
- package/dist/file-paths.mock.js +0 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { VirmatorPluginResolvedConfigFile } from '../plugin/plugin-configs.js';
|
|
1
|
+
import { type Logger, type MaybePromise } from '@augment-vir/common';
|
|
2
|
+
import { type VirmatorPluginResolvedConfigFile } from '../plugin/plugin-configs.js';
|
|
3
3
|
import { PackageType } from '../plugin/plugin-env.js';
|
|
4
|
-
import { MonoRepoPackage, UsedVirmatorPluginCommands, VirmatorPluginResolvedConfigs } from '../plugin/plugin-executor.js';
|
|
4
|
+
import { type MonoRepoPackage, type UsedVirmatorPluginCommands, type VirmatorPluginResolvedConfigs } from '../plugin/plugin-executor.js';
|
|
5
5
|
/**
|
|
6
6
|
* Extracts a 1d array of virmator plugin config files from previously calculated used commands and
|
|
7
7
|
* resolved configs.
|
package/dist/api/copy-configs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { awaitedForEach, extractErrorMessage } from '@augment-vir/common';
|
|
1
|
+
import { awaitedForEach, extractErrorMessage, } from '@augment-vir/common';
|
|
2
2
|
import { existsSync } from 'node:fs';
|
|
3
3
|
import { mkdir, readFile, writeFile } from 'node:fs/promises';
|
|
4
4
|
import { basename, dirname, join } from 'node:path';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { VirmatorPlugin } from '../plugin/plugin.js';
|
|
1
|
+
import { type Logger, type PartialWithUndefined } from '@augment-vir/common';
|
|
2
|
+
import { type VirmatorPlugin } from '../plugin/plugin.js';
|
|
3
3
|
/** Params for executing a plugin command. */
|
|
4
4
|
export type ExecuteCommandParams = {
|
|
5
5
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type Logger } from '@augment-vir/common';
|
|
2
|
-
import { PackageJson } from 'type-fest';
|
|
2
|
+
import { type PackageJson } from 'type-fest';
|
|
3
3
|
import { PackageType } from '../plugin/plugin-env.js';
|
|
4
|
-
import { UsedVirmatorPluginCommands } from '../plugin/plugin-executor.js';
|
|
5
|
-
import { PluginNpmDeps } from '../plugin/plugin-init.js';
|
|
4
|
+
import { type UsedVirmatorPluginCommands } from '../plugin/plugin-executor.js';
|
|
5
|
+
import { type PluginNpmDeps } from '../plugin/plugin-init.js';
|
|
6
6
|
/** Install's a virmator plugin's listed npm deps depending on which command is being run. */
|
|
7
7
|
export declare function installPluginNpmDeps({ usedCommands, ...params }: {
|
|
8
8
|
cwdPackagePath: string;
|
package/dist/api/parse-args.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type Logger } from '@augment-vir/common';
|
|
2
|
-
import { UsedVirmatorPluginCommands } from '../plugin/plugin-executor.js';
|
|
3
|
-
import { VirmatorPluginCliCommands } from '../plugin/plugin-init.js';
|
|
4
|
-
import { VirmatorPlugin } from '../plugin/plugin.js';
|
|
5
|
-
import { SetVirmatorFlags } from './virmator-flags.js';
|
|
2
|
+
import { type UsedVirmatorPluginCommands } from '../plugin/plugin-executor.js';
|
|
3
|
+
import { type VirmatorPluginCliCommands } from '../plugin/plugin-init.js';
|
|
4
|
+
import { type VirmatorPlugin } from '../plugin/plugin.js';
|
|
5
|
+
import { type SetVirmatorFlags } from './virmator-flags.js';
|
|
6
6
|
/** All supported sets of args for virmator. */
|
|
7
7
|
export type ParsedArgs = {
|
|
8
8
|
virmatorFlags: SetVirmatorFlags;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AnyObject } from '@augment-vir/common';
|
|
1
|
+
import { type AnyObject } from '@augment-vir/common';
|
|
2
2
|
/** Gets the nested value within an object with the provided chain of keys. */
|
|
3
3
|
export declare function accessAtKeys<T>(parent: Readonly<AnyObject> | undefined, keys: ReadonlyArray<PropertyKey>): T | undefined;
|
package/dist/colors.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { AnyObject, Logger, LogOutputType, MaybePromise, PartialWithUndefined, TypedFunction } from '@augment-vir/common';
|
|
2
2
|
import type { runShellCommand } from '@augment-vir/node';
|
|
3
|
-
import { ChalkInstance } from 'chalk';
|
|
4
|
-
import { EmptyObject, PackageJson, SetRequired } from 'type-fest';
|
|
5
|
-
import { VirmatorPluginResolvedConfigFile } from './plugin-configs.js';
|
|
3
|
+
import { type ChalkInstance } from 'chalk';
|
|
4
|
+
import { type EmptyObject, type PackageJson, type SetRequired } from 'type-fest';
|
|
5
|
+
import { type VirmatorPluginResolvedConfigFile } from './plugin-configs.js';
|
|
6
6
|
import { PackageType } from './plugin-env.js';
|
|
7
|
-
import { IndividualPluginCommand, PluginNpmDeps, VirmatorPluginCliCommands, VirmatorPluginInit } from './plugin-init.js';
|
|
7
|
+
import { type IndividualPluginCommand, type PluginNpmDeps, type VirmatorPluginCliCommands, type VirmatorPluginInit } from './plugin-init.js';
|
|
8
8
|
/** A picked nesting of commands based on which commands are currently in use. */
|
|
9
9
|
export type UsedVirmatorPluginCommands<Commands extends VirmatorPluginCliCommands = VirmatorPluginCliCommands> = Partial<Readonly<{
|
|
10
10
|
[CliCommand in keyof Commands]: Readonly<Omit<IndividualPluginCommand, 'subCommands'> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { VirmatorPluginConfigFile } from './plugin-configs.js';
|
|
1
|
+
import { type RuntimeEnv } from '@augment-vir/common';
|
|
2
|
+
import { type VirmatorPluginConfigFile } from './plugin-configs.js';
|
|
3
3
|
import { PackageType } from './plugin-env.js';
|
|
4
4
|
/** A single doc entry for {@link PluginCommandDocs}. */
|
|
5
5
|
export type PluginDocEntry = Readonly<{
|
package/dist/plugin/plugin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VirmatorPlugin, VirmatorPluginExecutor } from './plugin-executor.js';
|
|
2
|
-
import { VirmatorPluginCliCommands, VirmatorPluginInit } from './plugin-init.js';
|
|
1
|
+
import { type VirmatorPlugin, type VirmatorPluginExecutor } from './plugin-executor.js';
|
|
2
|
+
import { type VirmatorPluginCliCommands, type VirmatorPluginInit } from './plugin-init.js';
|
|
3
3
|
export type { VirmatorPlugin } from './plugin-executor.js';
|
|
4
4
|
/** Define a virmator plugin. */
|
|
5
5
|
export declare function defineVirmatorPlugin<const Commands extends VirmatorPluginCliCommands>(
|
package/package.json
CHANGED
package/dist/file-paths.mock.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { join, resolve } from 'node:path';
|
|
2
|
-
export const corePackageDir = resolve(import.meta.dirname, '..');
|
|
3
|
-
const monoRepoDir = resolve(corePackageDir, '..', '..');
|
|
4
|
-
export const monoRepoTestFilesDir = join(monoRepoDir, 'test-files', 'compile');
|
|
5
|
-
export const coreTestFilesDir = join(corePackageDir, 'test-files');
|