upload-sourcemaps: fix typings
This commit is contained in:
parent
6b7eabb7f2
commit
9b4f91b31c
|
@ -10,6 +10,7 @@ import * as es from 'event-stream';
|
|||
import * as Vinyl from 'vinyl';
|
||||
import * as vfs from 'vinyl-fs';
|
||||
import * as util from '../lib/util';
|
||||
// @ts-ignore
|
||||
import * as deps from '../dependencies';
|
||||
const azure = require('gulp-azure-storage');
|
||||
|
||||
|
@ -35,7 +36,7 @@ function main() {
|
|||
const vs = src('out-vscode-min'); // client source-maps only
|
||||
sources.push(vs);
|
||||
|
||||
const productionDependencies = deps.getProductionDependencies(root);
|
||||
const productionDependencies: { name: string, path: string, version: string }[] = deps.getProductionDependencies(root);
|
||||
const productionDependenciesSrc = productionDependencies.map(d => path.relative(root, d.path)).map(d => `./${d}/**/*.map`);
|
||||
const nodeModules = vfs.src(productionDependenciesSrc, { base: '.' })
|
||||
.pipe(util.cleanNodeModules(path.join(root, 'build', '.moduleignore')));
|
||||
|
|
Loading…
Reference in a new issue