mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-11 16:18:11 +00:00
Fix createCoreDistArchive gulp task on windows
This commit is contained in:
parent
0cf78c444b
commit
2319a9a211
@ -1,3 +1,5 @@
|
||||
import { sep as pathSeparator } from "path";
|
||||
|
||||
import gulp from "gulp";
|
||||
import rename from "gulp-rename";
|
||||
import replace from "gulp-replace";
|
||||
@ -13,7 +15,7 @@ export const createCoreDistArchive = () =>
|
||||
// Rename dist files
|
||||
.pipe(
|
||||
rename((path) => {
|
||||
const packageName = path.dirname.split("/")[0];
|
||||
const packageName = path.dirname.split(pathSeparator)[0];
|
||||
|
||||
path.dirname = "/dist";
|
||||
path.basename = packageName;
|
||||
|
Loading…
Reference in New Issue
Block a user