fix package name

pull/85/head
nightwing 2015-04-17 03:57:57 +04:00
rodzic f8df7d37a2
commit ebdb6e5848
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -584,11 +584,11 @@ define(function(require, exports, module) {
plugin.version = "VERSION"; plugin.version = "VERSION";
plugin.on("load", function load() { plugin.on("load", function load() {
extraCode.forEach(function(x) { extraCode.forEach(function(x) {
debug.addStaticPlugin(x.type, "packageName", x.filename, x.data, plugin); debug.addStaticPlugin(x.type, "PACKAGE_NAME", x.filename, x.data, plugin);
}); });
}); });
plugin.load("Cloud9 Bundle"); plugin.load("PACKAGE_NAME.Bundle");
register(null, {}); register(null, {});
} }
@ -600,7 +600,7 @@ define(function(require, exports, module) {
.replace(/\r/g, "") .replace(/\r/g, "")
.replace(new RegExp("^ {" + indent + "}", "gm"), "") .replace(new RegExp("^ {" + indent + "}", "gm"), "")
.replace(/^.*?{|}$/g, "") .replace(/^.*?{|}$/g, "")
.replace(/packageName/g, packageName) .replace(/PACKAGE_NAME/g, packageName)
.replace(/VERSION/g, json.version) .replace(/VERSION/g, json.version)
.replace(/^(\s*)extraCode/gm, function(_, indent) { .replace(/^(\s*)extraCode/gm, function(_, indent) {
return JSON.stringify(extraCode, null, 4) return JSON.stringify(extraCode, null, 4)