fix: fix imports
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { type ParseError } from 'inline-schema';
|
||||
import type { Command, CommandSchema } from './types.js';
|
||||
import type { Command, CommandSchema } from './types';
|
||||
|
||||
function validateCommandCore(command: Command, schema: CommandSchema): string[] {
|
||||
const errors: string[] = [];
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Command, CommandSchema } from './types.js';
|
||||
import { applyCommandSchema } from './command-validate.js';
|
||||
import type { Command, CommandSchema } from './types';
|
||||
import { applyCommandSchema } from './command-validate';
|
||||
|
||||
export function parseCommand(input: string): Command;
|
||||
export function parseCommand(input: string, schema: CommandSchema): Command;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type { Command, CommandSchema } from './types.js';
|
||||
import type {CommandResult, CommandRunner, CommandRunnerContext, PromptEvent} from './command-runner.js';
|
||||
import { parseCommand } from './command-parse.js';
|
||||
import { applyCommandSchema } from './command-validate.js';
|
||||
import { parseCommandSchema } from './schema-parse.js';
|
||||
import type { Command, CommandSchema } from './types';
|
||||
import type {CommandResult, CommandRunner, CommandRunnerContext, PromptEvent} from './command-runner';
|
||||
import { parseCommand } from './command-parse';
|
||||
import { applyCommandSchema } from './command-validate';
|
||||
import { parseCommandSchema } from './schema-parse';
|
||||
import {AsyncQueue} from "../async-queue";
|
||||
|
||||
export type CommandRegistry<TContext> = Map<string, CommandRunner<TContext, unknown>>;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Command, CommandSchema } from './types.js';
|
||||
import type { Command, CommandSchema } from './types';
|
||||
|
||||
export type PromptEvent = {
|
||||
schema: CommandSchema;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { Command, CommandSchema } from './types.js';
|
||||
import { parseCommand } from './command-parse.js';
|
||||
import { parseCommandSchema } from './schema-parse.js';
|
||||
import { applyCommandSchema as applyCommandSchemaCore } from './command-apply.js';
|
||||
import type { Command, CommandSchema } from './types';
|
||||
import { parseCommand } from './command-parse';
|
||||
import { parseCommandSchema } from './schema-parse';
|
||||
import { applyCommandSchema as applyCommandSchemaCore } from './command-apply';
|
||||
|
||||
export { applyCommandSchemaCore as applyCommandSchema };
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { defineSchema, type ParsedSchema } from 'inline-schema';
|
||||
import type { CommandSchema, CommandParamSchema, CommandOptionSchema, CommandFlagSchema, ParsedOptionResult } from './types.js';
|
||||
import type { CommandSchema, ParsedOptionResult } from './types';
|
||||
|
||||
export function parseCommandSchema(schemaStr: string, name?: string): CommandSchema {
|
||||
const schema: CommandSchema = {
|
||||
|
||||
Reference in New Issue
Block a user