hightjs 0.2.49 → 0.2.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/builder.js CHANGED
@@ -2,6 +2,7 @@
2
2
  const esbuild = require('esbuild');
3
3
  const path = require('path');
4
4
  const Console = require("./api/console");
5
+ const fs = require('fs');
5
6
  // Lista de módulos nativos do Node.js para marcar como externos (apenas os built-ins do Node)
6
7
  const nodeBuiltIns = [
7
8
  'assert', 'buffer', 'child_process', 'cluster', 'crypto', 'dgram', 'dns',
@@ -166,6 +167,8 @@ const reactResolvePlugin = {
166
167
  * @returns {Promise<void>}
167
168
  */
168
169
  async function buildWithChunks(entryPoint, outdir, isProduction = false) {
170
+ // limpar diretorio
171
+ fs.rmSync(outdir, { recursive: true, force: true });
169
172
  if (!isProduction) {
170
173
  console.log(`Iniciando o build com chunks de \"${entryPoint}\"...`);
171
174
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hightjs",
3
- "version": "0.2.49",
3
+ "version": "0.2.51",
4
4
  "description": "HightJS is a high-level framework for building web applications with ease and speed. It provides a robust set of tools and features to streamline development and enhance productivity.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/builder.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const esbuild = require('esbuild');
2
2
  const path = require('path');
3
3
  const Console = require("./api/console")
4
-
4
+ const fs = require('fs');
5
5
  // Lista de módulos nativos do Node.js para marcar como externos (apenas os built-ins do Node)
6
6
  const nodeBuiltIns = [
7
7
  'assert', 'buffer', 'child_process', 'cluster', 'crypto', 'dgram', 'dns',
@@ -181,6 +181,9 @@ const reactResolvePlugin = {
181
181
  * @returns {Promise<void>}
182
182
  */
183
183
  async function buildWithChunks(entryPoint, outdir, isProduction = false) {
184
+ // limpar diretorio
185
+ fs.rmSync(outdir, { recursive: true, force: true });
186
+
184
187
  if (!isProduction) {
185
188
  console.log(`Iniciando o build com chunks de \"${entryPoint}\"...`);
186
189
  }