@stencil/core
Advanced tools
Comparing version 0.0.8-10 to 0.0.8-11
@@ -561,2 +561,8 @@ 'use strict'; | ||
} | ||
function hasError$1(diagnostics) { | ||
if (!diagnostics) { | ||
return false; | ||
} | ||
return diagnostics.some(function (d) { return d.level === 'error' && d.type !== 'runtime'; }); | ||
} | ||
@@ -1086,4 +1092,9 @@ var NodeLogger = /** @class */ (function () { | ||
case 'build': | ||
stencil.build(config).catch(function (err) { | ||
stencil.build(config).then(function (results) { | ||
if (!config.watch && hasError$1(results && results.diagnostics)) { | ||
process.exit(1); | ||
} | ||
}).catch(function (err) { | ||
config.logger.error(err); | ||
process.exit(1); | ||
}); | ||
@@ -1090,0 +1101,0 @@ if (config.watch) { |
@@ -29,3 +29,3 @@ (function (window, document, appNamespace, publicPath, appCore, appCoreSsr, appCorePolyfilled, components, x, i) { | ||
x = document.createElement('script'); | ||
x.src = publicPath + (('noModule' in x && window.customElements && window.fetch && (window.CSS && window.CSS.supports && window.CSS.supports('--t', 0))) ? (document.documentElement.hasAttribute('data-ssr') ? appCoreSsr : appCore) : appCorePolyfilled); | ||
x.src = publicPath + (('noModule' in x && window.customElements && window.fetch && (window.CSS && window.CSS.supports && window.CSS.supports('color', 'var(--c)'))) ? (document.documentElement.hasAttribute('data-ssr') ? appCoreSsr : appCore) : appCorePolyfilled); | ||
x.setAttribute('data-path', publicPath); | ||
@@ -32,0 +32,0 @@ x.setAttribute('data-namespace', appNamespace); |
@@ -8,1 +8,2 @@ import { BuildConfig, BuildContext, CopyTask } from '../../util/interfaces'; | ||
export declare function getDestAbsPath(config: BuildConfig, src: string, dest?: string): string; | ||
export declare function isCopyTaskFile(config: BuildConfig, filePath: string): boolean; |
@@ -10,2 +10,5 @@ import { JSDoc } from '../../../util/interfaces'; | ||
export declare const getDeclarationParameters: GetDeclarationParameters; | ||
export declare function isPropertyWithDecorators(member: ts.ClassElement): boolean; | ||
export declare function isDecoratorNamed(name: string): (dec: ts.Decorator) => boolean; | ||
export declare function isMethodWithDecorators(member: ts.ClassElement): boolean; | ||
export declare function serializeSymbol(checker: ts.TypeChecker, symbol: ts.Symbol): JSDoc; |
{ | ||
"name": "@stencil/core", | ||
"version": "0.0.8-10", | ||
"version": "0.0.8-11", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "A Compiler for Web Components", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
2157617
52842