@rocket.chat/apps-engine
Version:
The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.
17 lines (13 loc) • 474 B
JavaScript
const childProcess = require('child_process');
const path = require('path');
// Find executable installed by deno-bin
const executablePath = path.join(require.resolve('deno-bin'), '..', 'bin', 'deno');
const rootPath = path.join(__dirname, '..');
const DENO_DIR = path.join(rootPath, '.deno-cache');
childProcess.spawnSync(executablePath, ['cache', 'main.ts'], {
cwd: path.join(rootPath, 'deno-runtime'),
env: {
DENO_DIR,
},
stdio: 'inherit',
});