mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This is a precursor to bringing in some of the gulp tasks from angular.io, which could lead to the gulpfile becoming unwieldy.
6 lines
197 B
JavaScript
6 lines
197 B
JavaScript
|
|
// returns the script path for the current platform
|
|
module.exports = function platformScriptPath(path) {
|
|
const os = require('os');
|
|
return /^win/.test(os.platform()) ? `${path}.cmd` : path;
|
|
};
|