From 6051aaba16edbb9ca5b1e2a0e96e586c8ba09646 Mon Sep 17 00:00:00 2001 From: Egor Aristov Date: Sat, 25 Oct 2025 11:08:50 +0300 Subject: [PATCH] moved files and small changes --- example/ts/{ => src}/index.ts | 6 +++--- lib/ts/{ => src}/lib.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename example/ts/{ => src}/index.ts (80%) rename lib/ts/{ => src}/lib.ts (99%) diff --git a/example/ts/index.ts b/example/ts/src/index.ts similarity index 80% rename from example/ts/index.ts rename to example/ts/src/index.ts index 421422f..7d38c53 100644 --- a/example/ts/index.ts +++ b/example/ts/src/index.ts @@ -1,5 +1,5 @@ -import {KittenIPC} from '../../lib/ts/lib.ts'; -import GoIpcApi from './goapi.gen.ts'; +import {ChildIPC} from 'kitten-ipc'; +import GoIpcApi from './goapi.gen.js'; /** * @kittenipc api @@ -15,7 +15,7 @@ class TsIpcApi { async function main() { const localApi = new TsIpcApi(); - const ipc = new KittenIPC(localApi); + const ipc = new ChildIPC(localApi); const goApi = new GoIpcApi(ipc); await ipc.start(); diff --git a/lib/ts/lib.ts b/lib/ts/src/lib.ts similarity index 99% rename from lib/ts/lib.ts rename to lib/ts/src/lib.ts index 8163684..d5d11db 100644 --- a/lib/ts/lib.ts +++ b/lib/ts/src/lib.ts @@ -179,7 +179,7 @@ abstract class IPCCommon { } -class ParentIPC extends IPCCommon { +export class ParentIPC extends IPCCommon { private readonly cmdPath: string; private readonly cmdArgs: string[]; private cmd: ChildProcess | null = null;