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