hightjs 0.2.50 → 0.2.52
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 +5 -0
- package/package.json +1 -1
- package/src/builder.js +5 -0
package/dist/builder.js
CHANGED
|
@@ -215,6 +215,8 @@ async function buildWithChunks(entryPoint, outdir, isProduction = false) {
|
|
|
215
215
|
* @returns {Promise<void>}
|
|
216
216
|
*/
|
|
217
217
|
async function watchWithChunks(entryPoint, outdir, hotReloadManager = null) {
|
|
218
|
+
// limpar diretorio
|
|
219
|
+
fs.rmSync(outdir, { recursive: true, force: true });
|
|
218
220
|
try {
|
|
219
221
|
const context = await esbuild.context({
|
|
220
222
|
entryPoints: [entryPoint],
|
|
@@ -256,6 +258,9 @@ async function watchWithChunks(entryPoint, outdir, hotReloadManager = null) {
|
|
|
256
258
|
* @returns {Promise<void>}
|
|
257
259
|
*/
|
|
258
260
|
async function build(entryPoint, outfile, isProduction = false) {
|
|
261
|
+
// limpar diretorio do outfile
|
|
262
|
+
const outdir = path.dirname(outfile);
|
|
263
|
+
fs.rmSync(outdir, { recursive: true, force: true });
|
|
259
264
|
if (!isProduction) {
|
|
260
265
|
console.log(`Iniciando o build de \"${entryPoint}\"...`);
|
|
261
266
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hightjs",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.52",
|
|
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
|
@@ -232,6 +232,8 @@ async function buildWithChunks(entryPoint, outdir, isProduction = false) {
|
|
|
232
232
|
* @returns {Promise<void>}
|
|
233
233
|
*/
|
|
234
234
|
async function watchWithChunks(entryPoint, outdir, hotReloadManager = null) {
|
|
235
|
+
// limpar diretorio
|
|
236
|
+
fs.rmSync(outdir, { recursive: true, force: true });
|
|
235
237
|
try {
|
|
236
238
|
const context = await esbuild.context({
|
|
237
239
|
entryPoints: [entryPoint],
|
|
@@ -274,6 +276,9 @@ async function watchWithChunks(entryPoint, outdir, hotReloadManager = null) {
|
|
|
274
276
|
* @returns {Promise<void>}
|
|
275
277
|
*/
|
|
276
278
|
async function build(entryPoint, outfile, isProduction = false) {
|
|
279
|
+
// limpar diretorio do outfile
|
|
280
|
+
const outdir = path.dirname(outfile);
|
|
281
|
+
fs.rmSync(outdir, { recursive: true, force: true });
|
|
277
282
|
if (!isProduction) {
|
|
278
283
|
console.log(`Iniciando o build de \"${entryPoint}\"...`);
|
|
279
284
|
}
|