mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 16:49:58 +00:00
Fix build script type errors
This commit is contained in:
@@ -102,7 +102,7 @@ if (argv.mode === "production") {
|
||||
/**
|
||||
* Handle build results.
|
||||
*
|
||||
* @param {esbuild.BuildResult} result
|
||||
* @param {esbuild.BuildResult | null} result
|
||||
*/
|
||||
function onBuildResult(result) {
|
||||
if (result?.errors.length) {
|
||||
|
||||
@@ -14,7 +14,7 @@ const esbuild = require("esbuild");
|
||||
function* walk(rootPath) {
|
||||
const pathsToWalk = [rootPath];
|
||||
while (pathsToWalk.length > 0) {
|
||||
const currentPath = pathsToWalk.pop();
|
||||
const currentPath = /** @type {string} */ (pathsToWalk.pop());
|
||||
if (fs.statSync(currentPath).isFile()) {
|
||||
yield currentPath;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user