流星更新从0.6.4.1升至0.6.5

时间:2013-08-17 12:05:19

标签: meteor

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

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

,仅此而已。

package.js代码在哪里?

谢谢!

1 个答案:

答案 0 :(得分: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")
  });

我希望这有帮助!