-1

在 ~/.meteor/package/ 文件夹中所有 package.js 文件只有这个:

// 包含此文件是为了与 Meteor 0.6.4 软件包下载器兼容。

仅此而已。

package.js 代码在哪里?

谢谢!

4

1 回答 1

0

包装系统已更改。

您将在以下位置找到您所指的自动生成的文件:

/packages/name_of_your_package/.build/

至于实际的“package.js”文件在哪里,它在

/packages/name_of_your_package/

根据为您构建这些文件的源代码:

  // Pre-linker versions of Meteor expect all packages in the warehouse to
  // contain a file called "package.js"; they use this as part of deciding
  // whether or not they need to download a new package. Because packages
  // are downloaded by the *existing* version of the tools, we need to
  // include this file until we're comfortable breaking "meteor update" from
  // 0.6.4.  (Specifically, warehouse.packageExistsInWarehouse used to check
  // to see if package.js exists instead of just looking for the package
  // directory.)
  // XXX Remove this once we can.
  builder.write("package.js", {
    data: new Buffer(
      ("// This file is included for compatibility with the Meteor " +
       "0.6.4 package downloader.\n"),
      "utf8")
  });

我希望这有帮助!

于 2013-08-19T08:00:33.283 回答