Merge pull request #9556 from weswigham/import-q

Swap q from a reference to an import
This commit is contained in:
Wesley Wigham 2016-07-07 11:32:30 -07:00 committed by GitHub
commit 7c1df15059

View file

@ -1,6 +1,4 @@
/// <reference path="scripts/types/ambient.d.ts" />
/// <reference types="q" />
import * as cp from "child_process";
import * as path from "path";
import * as fs from "fs";
@ -20,9 +18,9 @@ declare module "gulp-typescript" {
}
import * as insert from "gulp-insert";
import * as sourcemaps from "gulp-sourcemaps";
import Q = require("q");
declare global {
// This is silly. We include Q because orchestrator (a part of gulp) depends on it, but its not included.
// `del` further depends on `Promise` (and is also not included), so we just, patch the global scope's Promise to Q's
// `del` further depends on `Promise` (and is also not included), so we just, patch the global scope's Promise to Q's (which we already include in our deps because gulp depends on it)
type Promise<T> = Q.Promise<T>;
}
import del = require("del");