scripts/prepublish.js in adiwg-mdcodes-2.8.4 vs scripts/prepublish.js in adiwg-mdcodes-2.9.0

- old
+ new

@@ -5,12 +5,16 @@ let fs = require('fs'); let buildify = require('buildify'); let rimraf = require('rimraf'); let path = 'resources/js'; -if (fs.statSync(path).isDirectory()) { +console.log('Start Preprocess for npm publishing') + +if (fs.existsSync(path)) { rimraf.sync(path); - console.log('Removed existing resources/js files.'); + console.log('Removed existing resources/js files'); +} else { + console.log('No existing resources/js files'); } fs.mkdirSync(path); console.log('Created resources/js');