diff --git a/scripts/move-build.js b/scripts/move-build.js index 425f71f7839cd..45650ad69ebd8 100644 --- a/scripts/move-build.js +++ b/scripts/move-build.js @@ -1,11 +1,9 @@ -const fileURLToPath = require("url"); const fs = require("fs-extra"); const del = require("del"); const path = require("path"); -const dirname = path.dirname(fileURLToPath(import.meta.url)); - -const resourcePath = path.join(dirname, ".."); +// eslint-disable-next-line no-undef +const resourcePath = path.join(__dirname, ".."); del.sync([ resourcePath + "/build/minified/**/*.map",