mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 08:38: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 gulp from "gulp";
|
||||||
import rename from "gulp-rename";
|
import rename from "gulp-rename";
|
||||||
import replace from "gulp-replace";
|
import replace from "gulp-replace";
|
||||||
@ -13,7 +15,7 @@ export const createCoreDistArchive = () =>
|
|||||||
// Rename dist files
|
// Rename dist files
|
||||||
.pipe(
|
.pipe(
|
||||||
rename((path) => {
|
rename((path) => {
|
||||||
const packageName = path.dirname.split("/")[0];
|
const packageName = path.dirname.split(pathSeparator)[0];
|
||||||
|
|
||||||
path.dirname = "/dist";
|
path.dirname = "/dist";
|
||||||
path.basename = packageName;
|
path.basename = packageName;
|
||||||
|
Loading…
Reference in New Issue
Block a user