From 9d8c245658d280b0b991f8117b2e0814dfd7a36f Mon Sep 17 00:00:00 2001 From: Dan Hardej Date: Wed, 16 Oct 2024 12:21:54 +0800 Subject: [PATCH] Update index.js --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index 2e1ae6d0..6ab94e3b 100644 --- a/index.js +++ b/index.js @@ -127,6 +127,9 @@ exports.pack = function (cwd, opts) { } // TODO: add fifo etc... + if (stat.isBlockDevice()) header.type = 'block-device' + if (stat.isCharacterDevice()) header.type = 'character-device' + if (stat.isFIFO()) header.type = 'fifo' header = map(header) || header