attempt windows workaround
This commit is contained in:
parent
72da4b3e85
commit
76b003a648
@ -1,5 +1,8 @@
|
||||
const {platform} = require("os");
|
||||
const {name} = require("./package.json");
|
||||
|
||||
const isWindows = platform() === "win32";
|
||||
|
||||
module.exports = {
|
||||
input: `${name}.js`,
|
||||
output: {
|
||||
@ -16,7 +19,7 @@ module.exports = {
|
||||
customResolveOptions: {
|
||||
packageFilter: (pkg) => {
|
||||
if (pkg.name === "cacache") {
|
||||
return {main: "/dev/null"};
|
||||
return {main: isWindows ? "nul" : "/dev/null"};
|
||||
}
|
||||
return pkg;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user