@vital-ai/haley-js-browser
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "@vital-ai/haley-js-browser", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
@@ -5,0 +5,0 @@ "description": "haley service for browser", |
@@ -6,2 +6,10 @@ const fs = require('fs'); | ||
const WEBROOT_DIR = process.env.npm_package_config_WEBROOT_DIR; | ||
const webrootAbsolute = path.join(__dirname, '../../../', WEBROOT_DIR); | ||
if (!fs.existsSync(webrootAbsolute)){ | ||
console.error(RED, `Directory ${webrootAbsolute} does not exist`); | ||
console.error(RED, `Might be issue with the config of WEBROOT_DIR in package.json`); | ||
return; | ||
} | ||
const COPY_TO_PATH = path.join(WEBROOT_DIR, 'haley-js-browser'); | ||
@@ -8,0 +16,0 @@ |
362790
8130