Comparing version 0.1.7 to 0.1.8
@@ -5,3 +5,3 @@ { | ||
"description": "ZenStack CLI and Language Tools", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"engines": { | ||
@@ -8,0 +8,0 @@ "vscode": "^1.56.0" |
@@ -13,4 +13,4 @@ import { Context } from './types'; | ||
async generate(context: Context) { | ||
if (!fs.existsSync(context.outDir)) { | ||
fs.mkdirSync(context.outDir); | ||
if (fs.existsSync(context.outDir)) { | ||
fs.rmSync(context.outDir, { force: true, recursive: true }); | ||
} | ||
@@ -51,3 +51,16 @@ | ||
execSync(`npx tsc -p "${path.join(context.outDir, 'tsconfig.json')}"`); | ||
try { | ||
execSync( | ||
`npx tsc -p "${path.join(context.outDir, 'tsconfig.json')}"`, | ||
{ encoding: 'utf-8' } | ||
); | ||
} catch { | ||
console.error( | ||
colors.red( | ||
'Something went wrong, generated runtime code failed to compile...' | ||
) | ||
); | ||
return; | ||
} | ||
console.log(colors.blue(' ✔️ Typescript source files transpiled')); | ||
@@ -54,0 +67,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
497354
11139