fix(bundler): fix type mismatch introduced in last-minute 'fixes'
This commit is contained in:
@ -57,9 +57,9 @@ export default async function jar({ groupId, artifactId, version, rootPath, targ
|
|||||||
const pathToRecord = () =>
|
const pathToRecord = () =>
|
||||||
new Transform({
|
new Transform({
|
||||||
objectMode: true,
|
objectMode: true,
|
||||||
transform: function (path, _, cb) {
|
transform: function (fsPath, _, cb) {
|
||||||
const filename = relative(rootPath, path).split(sep).join("/");
|
const path = relative(rootPath, fsPath).split(sep).join("/");
|
||||||
this.push({ filename, path });
|
this.push({ path, fsPath });
|
||||||
cb();
|
cb();
|
||||||
},
|
},
|
||||||
final: function () {
|
final: function () {
|
||||||
|
@ -216,7 +216,7 @@ export default function zip() {
|
|||||||
const writeRecord = async (source: ZipSource) => {
|
const writeRecord = async (source: ZipSource) => {
|
||||||
if ("fsPath" in source) await writeFromPath(source.path, source.fsPath);
|
if ("fsPath" in source) await writeFromPath(source.path, source.fsPath);
|
||||||
else if ("data" in source) await writeFromBuffer(source.path, source.data);
|
else if ("data" in source) await writeFromBuffer(source.path, source.data);
|
||||||
else throw new Error("Illegal argument " + typeof source + " " + source);
|
else throw new Error("Illegal argument " + typeof source + " " + JSON.stringify(source));
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user