Skip to content

Commit

Permalink
again
Browse files Browse the repository at this point in the history
  • Loading branch information
pokey committed Nov 10, 2023
1 parent 6e4950d commit 8d1b773
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/common/scripts/my-ts-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*eslint-env node*/
import { spawn } from "child_process";
import { existsSync, mkdirSync, rmdirSync } from "fs";
import { join } from "path";
import { join, resolve } from "path";

// Function to run a command with arguments and return a child process
/**
Expand Down Expand Up @@ -66,7 +66,7 @@ function main() {
process.on("SIGTERM", () => cleanupTempDirectory(tempDir));

// Canonicalize the file path
const filePath = require.resolve(fileToRun);
const filePath = resolve(fileToRun);

// Check that the input file exists
if (!existsSync(filePath)) {
Expand Down

0 comments on commit 8d1b773

Please sign in to comment.