launch example
This commit is contained in:
parent
d50fb45547
commit
c40c973b55
@ -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 {
|
||||
|
||||
20
example/ts/package-lock.json
generated
20
example/ts/package-lock.json
generated
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -8,5 +8,8 @@
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "tsc"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/node": "^22.10.5"
|
||||
}
|
||||
}
|
||||
|
||||
@ -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"]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user