arc-plugin-esbuild
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -19,3 +19,3 @@ declare const plugin: { | ||
}; | ||
watcher({ filename, event, inventory }: { | ||
watcher({ filename }: { | ||
filename: string; | ||
@@ -22,0 +22,0 @@ event: 'add' | 'update' | 'remove'; |
@@ -29,2 +29,3 @@ 'use strict'; | ||
const logger = utils.updater('esbuild', {}); | ||
let _esbuild = undefined; | ||
const plugin = { | ||
@@ -111,3 +112,3 @@ deploy: { | ||
}); | ||
inventory._esbuild = { srcDir, settings, outputs }; | ||
_esbuild = { srcDir, settings, outputs }; | ||
await Promise.all(settings.map(async (buildSetting) => { | ||
@@ -142,7 +143,8 @@ await buildFunction(buildSetting); | ||
}, | ||
async watcher({ filename, event, inventory }) { | ||
if (!inventory._esbuild) { | ||
async watcher({ filename }) { | ||
if (!_esbuild) { | ||
logger.status('Unable to read settings'); | ||
return; | ||
} | ||
const { settings, outputs } = inventory._esbuild; | ||
const { settings, outputs } = _esbuild; | ||
if (outputs.has(filename)) { | ||
@@ -149,0 +151,0 @@ return; |
{ | ||
"name": "arc-plugin-esbuild", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "Use Typescript and esbuild with arc.codes!", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
Sorry, the diff of this file is not supported yet
425
34828