Skip to content

Commit eb7fa4a

Browse files
authored
Merge pull request #713 from TerriaJS/gulp5-fix-bin-copy
Fix for copying binary files in gulp 5.
2 parents 3f0ab29 + 2f53b9f commit eb7fa4a

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Log
22

3+
#### next release (0.2.3)
4+
5+
- Upgraded gulp to version 5
6+
- Gulp 5 defaults to encoding copied files as utf-8, had turn off encoding by setting `encoding: false` to correctly copy binary assets from dependencies.
7+
38
### `0.2.2`
49

510
**2024-11-22**

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ gulp.task("copy-terriajs-assets", function () {
164164
var destPath = path.resolve(__dirname, "wwwroot", "build", "TerriaJS");
165165

166166
return gulp
167-
.src([sourceGlob], { base: terriaWebRoot })
167+
.src([sourceGlob], { base: terriaWebRoot, encoding: false })
168168
.pipe(gulp.dest(destPath));
169169
});
170170

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"fork-ts-checker-notifier-webpack-plugin": "^6.0.0",
6161
"fork-ts-checker-webpack-plugin": "^6.0.0",
6262
"fs-extra": "^7.0.1",
63-
"gulp": "^4.0.0",
63+
"gulp": "^5.0.0",
6464
"husky": "^8.0.3",
6565
"is-subdir": "^1.2.0",
6666
"json5": "^2.1.0",

0 commit comments

Comments
 (0)