Comparing version 0.0.44 to 0.0.45
@@ -131,6 +131,6 @@ "use strict"; | ||
cachedFileDir = path.dirname(cachedFilePath); | ||
console.log("Pre import", process.cwd()); | ||
if (changeDirectory) { | ||
process.chdir(cachedFileDir); | ||
} | ||
console.log("Pre import", process.cwd()); | ||
return [4 /*yield*/, Promise.resolve().then(function () { return require(cachedFilePath); })]; | ||
@@ -137,0 +137,0 @@ case 1: |
{ | ||
"name": "ts-import", | ||
"version": "0.0.44", | ||
"version": "0.0.45", | ||
"description": "Import (compile and cache on the fly) TypeScript files dynamically with ease.", | ||
@@ -24,3 +24,3 @@ "keywords": [ | ||
"@radrat-scripts/readme": "0.0.41", | ||
"@radrat/cli": "0.0.59", | ||
"@radrat/cli": "0.0.60", | ||
"@types/node": "^14.6.0", | ||
@@ -27,0 +27,0 @@ "typescript": "^3.9.7" |
@@ -88,4 +88,2 @@ import * as childProcess from 'child_process'; | ||
console.log(`Pre import`, process.cwd()); | ||
if (changeDirectory) { | ||
@@ -95,2 +93,4 @@ process.chdir(cachedFileDir); | ||
console.log(`Pre import`, process.cwd()); | ||
const imported = await import(cachedFilePath); | ||
@@ -97,0 +97,0 @@ |