ts-runtime
Advanced tools
Comparing version 0.1.15 to 0.1.16
{ | ||
"name": "ts-runtime", | ||
"version": "0.1.15", | ||
"version": "0.1.16", | ||
"description": "Runtime type checks for TypeScript", | ||
@@ -17,3 +17,4 @@ "main": "index.js", | ||
"build": "./node_modules/.bin/tsc --rootDir src --outDir dist --module CommonJS --target es6 --skipLibCheck && cp package.json dist/package.json && cp README.md dist/README.md && cp LICENSE dist/LICENSE", | ||
"build:docs": "yarn build:docs:lib && node_modules/.bin/webpack --config webpack.docs.config.js", | ||
"build:docs": "yarn build:docs:lib && yarn build:docs:playground", | ||
"build:docs:playground": "node_modules/.bin/rimraf docs/*worker.js* && node_modules/.bin/webpack --config webpack.docs.config.js", | ||
"build:docs:lib": "node_modules/.bin/webpack --config webpack.lib.config.js", | ||
@@ -20,0 +21,0 @@ "build:tsr": "ts-node ./src/bin/index src/index src/lib/index src/bin/index src/bin/process --moduleAlias --compilerOptions '{\"outDir\": \"dist-tsr\", \"strictNullChecks\": false, \"moduleResolution\": \"Node\", \"module\": \"commonjs\", \"target\": \"ES2015\", \"lib\": [\"ESNext\"]}'", |
@@ -256,7 +256,9 @@ "use strict"; | ||
if (log) { | ||
console.error(ts.formatDiagnostics(diagnostics, { | ||
getCurrentDirectory: () => ts.sys.getCurrentDirectory(), | ||
getNewLine: () => ts.sys.newLine, | ||
getCanonicalFileName: (f) => f | ||
})); | ||
for (let diag of diagnostics) { | ||
console.error(ts.formatDiagnostics([diag], { | ||
getCurrentDirectory: () => '', | ||
getNewLine: () => '\n', | ||
getCanonicalFileName: (f) => f | ||
})); | ||
} | ||
} | ||
@@ -263,0 +265,0 @@ return false; |
@@ -68,7 +68,9 @@ "use strict"; | ||
if (diagnostics.length > 0) { | ||
console.error(ts.formatDiagnostics(diagnostics, { | ||
getCurrentDirectory: () => '', | ||
getNewLine: () => '\n', | ||
getCanonicalFileName: (f) => f | ||
})); | ||
for (let diag of diagnostics) { | ||
console.error(ts.formatDiagnostics([diag], { | ||
getCurrentDirectory: () => '', | ||
getNewLine: () => '\n', | ||
getCanonicalFileName: (f) => f | ||
})); | ||
} | ||
} | ||
@@ -75,0 +77,0 @@ scanner = new scanner_1.Scanner(program, options); |
396788
9196