summaryrefslogtreecommitdiff
path: root/deno_typescript
diff options
context:
space:
mode:
Diffstat (limited to 'deno_typescript')
-rw-r--r--deno_typescript/compiler_main.js16
-rw-r--r--deno_typescript/system_loader_es5.js12
2 files changed, 13 insertions, 15 deletions
diff --git a/deno_typescript/compiler_main.js b/deno_typescript/compiler_main.js
index 847f3435f..a42f96860 100644
--- a/deno_typescript/compiler_main.js
+++ b/deno_typescript/compiler_main.js
@@ -52,7 +52,7 @@ function main(configText, rootNames) {
// TS5009: Cannot find the common subdirectory path for the input files.
if (code === 5009) return false;
return true;
- })
+ }),
);
const emitResult = program.emit();
@@ -60,7 +60,7 @@ function main(configText, rootNames) {
dispatch(
"op_set_emit_result",
- Object.assign(emitResult, { tsVersion: ts.version })
+ Object.assign(emitResult, { tsVersion: ts.version }),
);
}
@@ -176,7 +176,7 @@ class Host {
fileName,
languageVersion,
_onError,
- shouldCreateNewSourceFile
+ shouldCreateNewSourceFile,
) {
assert(!shouldCreateNewSourceFile); // We haven't yet encountered this.
@@ -204,7 +204,7 @@ class Host {
const sourceFile = ts.createSourceFile(
fileName,
sourceCode,
- languageVersion
+ languageVersion,
);
sourceFile.moduleName = fileName;
return sourceFile;
@@ -222,7 +222,7 @@ class Host {
data,
_writeByteOrderMark,
_onError = null,
- sourceFiles = null
+ sourceFiles = null,
) {
if (sourceFiles == null) {
return;
@@ -243,7 +243,7 @@ class Host {
_path,
_languageVersion,
_onError,
- _shouldCreateNewSourceFile
+ _shouldCreateNewSourceFile,
) {
unreachable();
}
@@ -301,14 +301,14 @@ class Host {
function configure(configurationText) {
const { config, error } = ts.parseConfigFileTextToJson(
"tsconfig.json",
- configurationText
+ configurationText,
);
if (error) {
return { options: {}, diagnostics: [error] };
}
const { options, errors } = ts.convertCompilerOptionsFromJson(
config.compilerOptions,
- ""
+ "",
);
return {
options,
diff --git a/deno_typescript/system_loader_es5.js b/deno_typescript/system_loader_es5.js
index df2da2235..91bae136a 100644
--- a/deno_typescript/system_loader_es5.js
+++ b/deno_typescript/system_loader_es5.js
@@ -8,7 +8,7 @@
/* eslint-disable */
var System, __instantiate;
(function () {
- // prettier-ignore
+ // deno-fmt-ignore
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
@@ -18,7 +18,7 @@ var System, __instantiate;
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
- // prettier-ignore
+ // deno-fmt-ignore
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
@@ -75,11 +75,9 @@ var System, __instantiate;
}
return [
2,
- id in r
- ? gExpA(id)
- : Promise.resolve().then(function () {
- return require(mid);
- }),
+ id in r ? gExpA(id) : Promise.resolve().then(function () {
+ return require(mid);
+ }),
];
});
});