From 2de5056411bacde251ce0c673032e555ab564f38 Mon Sep 17 00:00:00 2001 From: Murderlon Date: Tue, 2 Apr 2024 14:39:35 +0200 Subject: [PATCH] @uppy/locales: do not build dist folder --- bin/build-bundle.mjs | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/bin/build-bundle.mjs b/bin/build-bundle.mjs index 29ecbd0c77..79bad41b35 100644 --- a/bin/build-bundle.mjs +++ b/bin/build-bundle.mjs @@ -1,7 +1,6 @@ #!/usr/bin/env node import fs from 'node:fs/promises' -import path from 'node:path' import chalk from 'chalk' import esbuild from 'esbuild' @@ -32,7 +31,6 @@ function buildBundle (srcFile, bundleFile, { minify = true, standalone = '', plu } await fs.mkdir(new URL('./uppy/dist', PACKAGES_ROOT), { recursive: true }) -await fs.mkdir(new URL('./@uppy/locales/dist', PACKAGES_ROOT), { recursive: true }) const methods = [ buildBundle( @@ -47,21 +45,6 @@ const methods = [ ), ] -// Build minified versions of all the locales -const localesModules = await fs.opendir(new URL('./@uppy/locales/src/', PACKAGES_ROOT)) -for await (const dirent of localesModules) { - if (!dirent.isDirectory() && dirent.name.endsWith('.js')) { - const localeName = path.basename(dirent.name, '.js') - methods.push( - buildBundle( - `./packages/@uppy/locales/src/${localeName}.js`, - `./packages/@uppy/locales/dist/${localeName}.min.js`, - { minify: true }, - ), - ) - } -} - // Add BUNDLE-README.MD methods.push( fs.copyFile(