Skip to content

Commit 42b2fe4

Browse files
committed
Update browserify task for gulp-typescript 3.0
1. Doesn't need extra src/ prefix 2. testProject is now a function that needs to be called first.
1 parent e31f982 commit 42b2fe4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Gulpfile.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,12 +729,12 @@ gulp.task("browserify", "Runs browserify on run.js to produce a file suitable fo
729729
return testProject.src()
730730
.pipe(newer("built/local/bundle.js"))
731731
.pipe(sourcemaps.init())
732-
.pipe(testProject)
732+
.pipe(testProject())
733733
.pipe(through2.obj((file, enc, next) => {
734734
const originalMap = file.sourceMap;
735735
const prebundledContent = file.contents.toString();
736736
// Make paths absolute to help sorcery deal with all the terrible paths being thrown around
737-
originalMap.sources = originalMap.sources.map(s => path.resolve("src", s));
737+
originalMap.sources = originalMap.sources.map(s => path.resolve(s));
738738
// intoStream (below) makes browserify think the input file is named this, so this is what it puts in the sourcemap
739739
originalMap.file = "built/local/_stream_0.js";
740740

0 commit comments

Comments
 (0)