Comparing version 1.1.0 to 1.2.0
{ | ||
"name": "jsxbin", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Convert jsx ExtendScript files into jsxbin files using ExtendScript Toolkit", | ||
@@ -39,2 +39,3 @@ "keywords": [ | ||
"eslint": "^3.18.0", | ||
"eslint-config-jquery": "^1.0.1", | ||
"mocha": "^3.2.0", | ||
@@ -41,0 +42,0 @@ "mz": "^2.6.0", |
@@ -10,11 +10,20 @@ const exec = require( 'child_process' ).exec | ||
// So we need to close it before running the command | ||
quitESTK() | ||
return quitESTK() | ||
.then( () => execute( file ) ) | ||
} | ||
return new Promise( ( resolve, reject ) => { | ||
const command = getESTKCommand( file ) | ||
function execute( file ) { | ||
const command = getESTKCommand( file ) | ||
log.verbose( 'Converting' ) | ||
log.debug( 'Command: ', command ) | ||
log.verbose( 'Converting' ) | ||
log.debug( 'Command: ', command ) | ||
// Execute the command | ||
return execPromise( command ) | ||
} | ||
function execPromise( command ) { | ||
return new Promise( ( resolve, reject ) => { | ||
// Execute the command | ||
exec( command, err => { | ||
@@ -84,7 +93,7 @@ if ( err ) { | ||
if ( process.platform === 'darwin' ) { | ||
exec( 'osascript -e \'quit app "ExtendScript Toolkit"\'' ) | ||
return execPromise( 'osascript -e \'quit app "ExtendScript Toolkit"\'' ) | ||
// Windows | ||
} else if ( process.platform === 'win32' ) { | ||
exec( 'taskkill /IM ExtendScript Toolkit.exe' ) | ||
return execPromise( 'taskkill /IM ExtendScript Toolkit.exe' ) | ||
@@ -91,0 +100,0 @@ // Linux |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14451
355
5