mirror of https://github.com/lukechilds/rollup.git
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.
13 lines
345 B
13 lines
345 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: __dirname.replace( /^[A-Z]:\\/i, toggleCase ),
|
|
execute: true
|
|
};
|
|
|