mirror of
				https://github.com/home-assistant/frontend.git
				synced 2025-11-03 16:09:54 +00:00 
			
		
		
		
	Update dependency gulp to v5 (#20601)
* Update dependency gulp to v5 * Fix premature cloasing of hash stream --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Steve Repsher <steverep@users.noreply.github.com>
This commit is contained in:
		@@ -6,7 +6,7 @@ import rename from "gulp-rename";
 | 
				
			|||||||
import { createHash } from "node:crypto";
 | 
					import { createHash } from "node:crypto";
 | 
				
			||||||
import { mkdir, readFile } from "node:fs/promises";
 | 
					import { mkdir, readFile } from "node:fs/promises";
 | 
				
			||||||
import { basename, join } from "node:path";
 | 
					import { basename, join } from "node:path";
 | 
				
			||||||
import { Transform } from "node:stream";
 | 
					import { PassThrough, Transform } from "node:stream";
 | 
				
			||||||
import { finished } from "node:stream/promises";
 | 
					import { finished } from "node:stream/promises";
 | 
				
			||||||
import env from "../env.cjs";
 | 
					import env from "../env.cjs";
 | 
				
			||||||
import paths from "../paths.cjs";
 | 
					import paths from "../paths.cjs";
 | 
				
			||||||
@@ -213,7 +213,10 @@ const createTranslations = async () => {
 | 
				
			|||||||
  // TODO: This is a naive interpretation of BCP47 that should be improved.
 | 
					  // TODO: This is a naive interpretation of BCP47 that should be improved.
 | 
				
			||||||
  //       Will be OK for now as long as we don't have anything more complicated
 | 
					  //       Will be OK for now as long as we don't have anything more complicated
 | 
				
			||||||
  // than a base translation + region.
 | 
					  // than a base translation + region.
 | 
				
			||||||
  gulp.src(`${workDir}/en.json`).pipe(hashStream, { end: false });
 | 
					  gulp
 | 
				
			||||||
 | 
					    .src(`${workDir}/en.json`)
 | 
				
			||||||
 | 
					    .pipe(new PassThrough({ objectMode: true }))
 | 
				
			||||||
 | 
					    .pipe(hashStream, { end: false });
 | 
				
			||||||
  const mergesFinished = [];
 | 
					  const mergesFinished = [];
 | 
				
			||||||
  for (const translationFile of translationFiles) {
 | 
					  for (const translationFile of translationFiles) {
 | 
				
			||||||
    const locale = basename(translationFile, ".json");
 | 
					    const locale = basename(translationFile, ".json");
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -207,7 +207,7 @@
 | 
				
			|||||||
    "fancy-log": "2.0.0",
 | 
					    "fancy-log": "2.0.0",
 | 
				
			||||||
    "fs-extra": "11.2.0",
 | 
					    "fs-extra": "11.2.0",
 | 
				
			||||||
    "glob": "10.3.12",
 | 
					    "glob": "10.3.12",
 | 
				
			||||||
    "gulp": "4.0.2",
 | 
					    "gulp": "5.0.0",
 | 
				
			||||||
    "gulp-json-transform": "0.5.0",
 | 
					    "gulp-json-transform": "0.5.0",
 | 
				
			||||||
    "gulp-merge-json": "2.2.1",
 | 
					    "gulp-merge-json": "2.2.1",
 | 
				
			||||||
    "gulp-rename": "2.0.0",
 | 
					    "gulp-rename": "2.0.0",
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user