diff --git a/example/golang/main.go b/example/golang/main.go index 5b70d37..97208b8 100644 --- a/example/golang/main.go +++ b/example/golang/main.go @@ -43,8 +43,7 @@ func main() { localApi := GoIpcApi{} - cmdStr := fmt.Sprintf("node %s", path.Join(cwd, "..", "ts/index.js")) - cmd := exec.Command(cmdStr) + cmd := exec.Command("node", path.Join(cwd, "ts/dist/index.js")) ipc, err := kittenipc.NewParent(cmd, &localApi) if err != nil { diff --git a/example/ts/package-lock.json b/example/ts/package-lock.json index 23dee11..22e91d9 100644 --- a/example/ts/package-lock.json +++ b/example/ts/package-lock.json @@ -7,7 +7,10 @@ "": { "name": "kitten-ipc-example", "version": "1.0.0", - "license": "Apache 2.0" + "license": "Apache 2.0", + "dependencies": { + "@types/node": "^22.10.5" + } }, "../../../../../../opt/homebrew/lib/node_modules/list": { "version": "2.0.19", @@ -45,6 +48,21 @@ "@types/node": "^22.10.5", "ts-events": "^3.4.1" } + }, + "node_modules/@types/node": { + "version": "22.19.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.1.tgz", + "integrity": "sha512-LCCV0HdSZZZb34qifBsyWlUmok6W7ouER+oQIGBScS8EsZsQbrtFTUrDX4hOl+CS6p7cnNC4td+qrSVGSCTUfQ==", + "license": "MIT", + "dependencies": { + "undici-types": "~6.21.0" + } + }, + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "license": "MIT" } } } diff --git a/example/ts/package.json b/example/ts/package.json index b3347fd..cf86326 100644 --- a/example/ts/package.json +++ b/example/ts/package.json @@ -8,5 +8,8 @@ "type": "module", "scripts": { "build": "tsc" + }, + "dependencies": { + "@types/node": "^22.10.5" } } diff --git a/example/ts/tsconfig.json b/example/ts/tsconfig.json index 4ec4fae..16ae33f 100644 --- a/example/ts/tsconfig.json +++ b/example/ts/tsconfig.json @@ -3,26 +3,30 @@ "rootDir": "./src", "outDir": "./dist", - "module": "nodenext", - "target": "esnext", + "module": "Node16", + "target": "ES2022", + "lib": ["ES2022"], "sourceMap": true, "declaration": true, "declarationMap": true, + "strict": true, "noUncheckedIndexedAccess": true, "exactOptionalPropertyTypes": true, - - "strict": true, "noImplicitReturns": true, "noImplicitOverride": true, - "noUnusedLocals": true, - "noUnusedParameters": true, + // "noUnusedLocals": true, + // "noUnusedParameters": true, "noFallthroughCasesInSwitch": true, "noPropertyAccessFromIndexSignature": true, "noUncheckedSideEffectImports": true, - "moduleDetection": "force", "verbatimModuleSyntax": true, - } + "moduleDetection": "force", + // "isolatedModules": true, + // "skipLibCheck": true + }, + "include": ["src"], + "exclude": ["node_modules", "dist"] }