Update dev debug logs
This commit is contained in:
parent
333c84281d
commit
8d5b2a5c07
4
dist/functions/server/watcher-esbuild-ctx.js
vendored
4
dist/functions/server/watcher-esbuild-ctx.js
vendored
@ -10,6 +10,8 @@ export default async function watcherEsbuildCTX() {
|
||||
recursive: true,
|
||||
persistent: true,
|
||||
}, async (event, filename) => {
|
||||
// log.info(`event: ${event}`);
|
||||
// log.info(`filename: ${filename}`);
|
||||
if (!filename)
|
||||
return;
|
||||
if (filename.match(/^\.\w+/)) {
|
||||
@ -71,6 +73,8 @@ export default async function watcherEsbuildCTX() {
|
||||
? "Sylesheet"
|
||||
: file_stat?.isDirectory()
|
||||
? "Directory"
|
||||
: filename.match(/\/pages\/api\//)
|
||||
? "API Route"
|
||||
: "Page";
|
||||
await fullRebuild({
|
||||
msg: `${type} ${action}: ${filename}. Rebuilding ...`,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"name": "@moduletrace/bunext",
|
||||
"module": "index.ts",
|
||||
"type": "module",
|
||||
"version": "1.0.49",
|
||||
"version": "1.0.50",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"exports": {
|
||||
|
||||
@ -15,6 +15,9 @@ export default async function watcherEsbuildCTX() {
|
||||
persistent: true,
|
||||
},
|
||||
async (event, filename) => {
|
||||
// log.info(`event: ${event}`);
|
||||
// log.info(`filename: ${filename}`);
|
||||
|
||||
if (!filename) return;
|
||||
|
||||
if (filename.match(/^\.\w+/)) {
|
||||
@ -92,6 +95,8 @@ export default async function watcherEsbuildCTX() {
|
||||
? "Sylesheet"
|
||||
: file_stat?.isDirectory()
|
||||
? "Directory"
|
||||
: filename.match(/\/pages\/api\//)
|
||||
? "API Route"
|
||||
: "Page";
|
||||
|
||||
await fullRebuild({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user