You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
353 B

var os = require( 'os' );
function toggleCase ( s ) {
return ( s == s.toLowerCase() ) ? s.toUpperCase() : s.toLowerCase();
}
module.exports = {
skip: os.platform() !== 'win32',
description: "can load config with cwd that doesn't match realpath",
command: 'rollup -c',
cwd: process.cwd().replace( /^[A-Z]:\\/ig, toggleCase ),
execute: true
};