为什么 Electron Builder 不包含我在配置中提到的文件?

Why doesn't Electron Builder include the files I mentioned in configuration?

我已经将 rsa-cli/node_modules/**/* 添加到 "files",但 Electron Builder 忽略了它。因此缺少所需的依赖项,RSA CLI 会抛出错误 Uncaught Error: Cannot find module '...'.

package.json

{
    ...
    "build": {
        ...
        "files": [
            "LICENSE",
            "main.js",
            "babel.config.json",
            "lib/",
            "rsa-cli/",
            "rsa-cli/node_modules/**/*"
        ]
        ...
    }
    ...
}

我已经将 rsa-cli 发布到 npm 并将其作为依赖项安装到这个项目中。这样 node_modules/rsa-cli/ 就会被打包到应用程序中。