Fixing build and TsLint issues
This commit is contained in:
Родитель
e61d9e8f71
Коммит
26e1c32eda
|
@ -279,7 +279,7 @@ export function resolveWebRootPattern(webRoot: string, sourceMapPathOverrides: I
|
|||
for (let pattern in sourceMapPathOverrides) {
|
||||
const replacePattern = replaceWebRootInSourceMapPathOverridesEntry(webRoot, pattern, warnOnMissing);
|
||||
const replacePatternValue = replaceWebRootInSourceMapPathOverridesEntry(webRoot, sourceMapPathOverrides[pattern], warnOnMissing);
|
||||
|
||||
|
||||
resolvedOverrides[replacePattern] = replacePatternValue;
|
||||
}
|
||||
|
||||
|
@ -297,10 +297,10 @@ function replaceWebRootInSourceMapPathOverridesEntry(webRoot: string, entry: str
|
|||
} else if (webRootIndex > 0) {
|
||||
logger.log('Warning: in a sourceMapPathOverrides entry, ${webRoot} is only valid at the beginning of the path');
|
||||
}
|
||||
|
||||
|
||||
return entry;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function getChromeSpawnHelperPath(): string {
|
||||
if (path.basename(__dirname) === 'src') {
|
||||
// For tests
|
||||
|
|
|
@ -138,7 +138,7 @@ suite('ChromeDebugAdapter', () => {
|
|||
{ '/src': WEBROOT + '/app/src' });
|
||||
assert.deepEqual(
|
||||
resolveWebRootPattern(WEBROOT, <ISourceMapPathOverrides>{ '${webRoot}/src': '${webRoot}/app/src'}),
|
||||
{ WEBROOT + '/src': WEBROOT + '/app/src' });
|
||||
{ [WEBROOT + '/src']: WEBROOT + '/app/src'});
|
||||
});
|
||||
|
||||
test(`ignores the webRoot pattern when it's not at the beginning of the string`, () => {
|
||||
|
@ -162,7 +162,7 @@ suite('ChromeDebugAdapter', () => {
|
|||
'*/app.js': '*/app.js',
|
||||
'/src/app.js': '/src/${webRoot}',
|
||||
'/app.js': WEBROOT + '/app.js',
|
||||
WEBROOT + '/app1.js': WEBROOT + '/app.js'
|
||||
[WEBROOT + '/app1.js']: WEBROOT + '/app.js'
|
||||
};
|
||||
|
||||
assert.deepEqual(
|
||||
|
|
Загрузка…
Ссылка в новой задаче