launch example
This commit is contained in:
parent
d50fb45547
commit
c40c973b55
@ -43,8 +43,7 @@ func main() {
|
|||||||
|
|
||||||
localApi := GoIpcApi{}
|
localApi := GoIpcApi{}
|
||||||
|
|
||||||
cmdStr := fmt.Sprintf("node %s", path.Join(cwd, "..", "ts/index.js"))
|
cmd := exec.Command("node", path.Join(cwd, "ts/dist/index.js"))
|
||||||
cmd := exec.Command(cmdStr)
|
|
||||||
|
|
||||||
ipc, err := kittenipc.NewParent(cmd, &localApi)
|
ipc, err := kittenipc.NewParent(cmd, &localApi)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
20
example/ts/package-lock.json
generated
20
example/ts/package-lock.json
generated
@ -7,7 +7,10 @@
|
|||||||
"": {
|
"": {
|
||||||
"name": "kitten-ipc-example",
|
"name": "kitten-ipc-example",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"license": "Apache 2.0"
|
"license": "Apache 2.0",
|
||||||
|
"dependencies": {
|
||||||
|
"@types/node": "^22.10.5"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"../../../../../../opt/homebrew/lib/node_modules/list": {
|
"../../../../../../opt/homebrew/lib/node_modules/list": {
|
||||||
"version": "2.0.19",
|
"version": "2.0.19",
|
||||||
@ -45,6 +48,21 @@
|
|||||||
"@types/node": "^22.10.5",
|
"@types/node": "^22.10.5",
|
||||||
"ts-events": "^3.4.1"
|
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,5 +8,8 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc"
|
"build": "tsc"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@types/node": "^22.10.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,26 +3,30 @@
|
|||||||
"rootDir": "./src",
|
"rootDir": "./src",
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
|
|
||||||
"module": "nodenext",
|
"module": "Node16",
|
||||||
"target": "esnext",
|
"target": "ES2022",
|
||||||
|
"lib": ["ES2022"],
|
||||||
|
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"declarationMap": true,
|
"declarationMap": true,
|
||||||
|
|
||||||
|
"strict": true,
|
||||||
"noUncheckedIndexedAccess": true,
|
"noUncheckedIndexedAccess": true,
|
||||||
"exactOptionalPropertyTypes": true,
|
"exactOptionalPropertyTypes": true,
|
||||||
|
|
||||||
"strict": true,
|
|
||||||
"noImplicitReturns": true,
|
"noImplicitReturns": true,
|
||||||
"noImplicitOverride": true,
|
"noImplicitOverride": true,
|
||||||
"noUnusedLocals": true,
|
// "noUnusedLocals": true,
|
||||||
"noUnusedParameters": true,
|
// "noUnusedParameters": true,
|
||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
"noPropertyAccessFromIndexSignature": true,
|
"noPropertyAccessFromIndexSignature": true,
|
||||||
"noUncheckedSideEffectImports": true,
|
"noUncheckedSideEffectImports": true,
|
||||||
|
|
||||||
"moduleDetection": "force",
|
|
||||||
"verbatimModuleSyntax": true,
|
"verbatimModuleSyntax": true,
|
||||||
}
|
"moduleDetection": "force",
|
||||||
|
// "isolatedModules": true,
|
||||||
|
// "skipLibCheck": true
|
||||||
|
},
|
||||||
|
"include": ["src"],
|
||||||
|
"exclude": ["node_modules", "dist"]
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user