@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.
@@ -1,7 +1,7 @@
1
- import { MaybePromise, type Logger } from '@augment-vir/common';
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.
@@ -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 { PartialWithUndefined, type Logger } from '@augment-vir/common';
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;
@@ -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,4 +1,4 @@
1
- import { MaybePromise } from '@augment-vir/common';
1
+ import { type MaybePromise } from '@augment-vir/common';
2
2
  /**
3
3
  * Compiles and imports a TS file so it can be used within JS contexts. After the given callback is
4
4
  * executed, the compiled JS output is deleted.
@@ -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;
@@ -1,3 +1,3 @@
1
- import { ParsedCommandLine } from 'typescript';
1
+ import { type ParsedCommandLine } from 'typescript';
2
2
  /** Parsed the nearest ancestor TS Config file, if one can be found. */
3
3
  export declare function parseTsConfig(cwd: string): ParsedCommandLine | undefined;
package/dist/colors.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ArrayElement } from '@augment-vir/common';
1
+ import { type ArrayElement } from '@augment-vir/common';
2
2
  /**
3
3
  * All terminal colors passed to concurrently and other concurrent operations used within virmator
4
4
  * plugins.
@@ -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 { RuntimeEnv } from '@augment-vir/common';
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<{
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virmator/core",
3
- "version": "13.3.15",
3
+ "version": "13.4.0",
4
4
  "description": "Shared core functionality for all virmator plugins and the virmator CLI.",
5
5
  "keywords": [
6
6
  "automation",
@@ -1,3 +0,0 @@
1
- export declare const corePackageDir: string;
2
- export declare const monoRepoTestFilesDir: string;
3
- export declare const coreTestFilesDir: string;
@@ -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');