Comparing version 2.0.3-0 to 2.0.3
@@ -125,5 +125,2 @@ "use strict"; | ||
return new Promise(function (resolve, reject) { | ||
var cwd = process.cwd(); | ||
var directory = path.dirname(absoluteTsPath); | ||
process.chdir(directory); | ||
var compileCommand = "pnpx tsc " + absoluteTsPath + " --rootDir / --outDir " + cacheDir + " " + flags.join(' '); | ||
@@ -135,3 +132,2 @@ logger.info("Compiling " + absoluteTsPath); | ||
console.error(err); | ||
process.chdir(cwd); | ||
reject(err); | ||
@@ -145,7 +141,5 @@ return; | ||
console.error(stderr); | ||
process.chdir(cwd); | ||
reject(stderr); | ||
return; | ||
} | ||
process.chdir(cwd); | ||
resolve(); | ||
@@ -152,0 +146,0 @@ }); |
{ | ||
"name": "ts-import", | ||
"version": "2.0.3-0", | ||
"version": "2.0.3", | ||
"description": "Import (compile and cache on the fly) TypeScript files dynamically with ease.", | ||
@@ -23,3 +23,3 @@ "keywords": [ | ||
"@radrat-scripts/readme": "0.0.78", | ||
"@radrat/cli": "0.0.79-2", | ||
"@radrat/cli": "0.0.79-3", | ||
"@types/node": "^14.6.0", | ||
@@ -26,0 +26,0 @@ "typescript": "^4.0.2" |
@@ -89,5 +89,2 @@ import * as childProcess from 'child_process'; | ||
return new Promise((resolve, reject) => { | ||
const cwd = process.cwd(); | ||
const directory = path.dirname(absoluteTsPath); | ||
process.chdir(directory); | ||
const compileCommand = `pnpx tsc ${absoluteTsPath} --rootDir / --outDir ${cacheDir} ${flags.join(' ')}`; | ||
@@ -100,3 +97,2 @@ logger.info(`Compiling ${absoluteTsPath}`); | ||
console.error(err); | ||
process.chdir(cwd); | ||
reject(err); | ||
@@ -112,3 +108,2 @@ return; | ||
console.error(stderr); | ||
process.chdir(cwd); | ||
reject(stderr); | ||
@@ -118,3 +113,2 @@ return; | ||
process.chdir(cwd); | ||
resolve(); | ||
@@ -121,0 +115,0 @@ }); |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
64891
1264