使用 apm 发布带有 git 子模块的包会包含子模块吗?

Will publishing a package with a git submodule using apm include the submodule?

我有一个 git 存储库,我想留下一个单独的 git 存储库,将字体作为子模块。我可以将它保留为 apm 的子模块,以便使用包含的子模块正确获取它,还是我需要从 git 存储库中单独添加文件?

apm 是否会发布包含 github 上的存储库的软件包,并将其添加到主存储库中?

据我所知,这是不可能的。请参阅 this issue 以供参考,请记住 apmnpm.

的一个分支

在我看来,Node-way 是将存储库安装为标准依赖项(参见 npm documentation). However, this requires the extra step of copying the files to the desired target location. This can be done in the postinstall script