mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-16 20:49:28 +00:00
10 lines
285 B
TypeScript
10 lines
285 B
TypeScript
import { parentPort } from 'node:worker_threads';
|
|
import process from 'node:process';
|
|
|
|
console.log('Hello TypeScript!');
|
|
|
|
// signal to parent that the job is done
|
|
if (parentPort) parentPort.postMessage('done');
|
|
// eslint-disable-next-line unicorn/no-process-exit
|
|
else process.exit(0);
|