diff --git a/src/bundled_packages/_index.js b/src/bundled_packages/_index.js index 7b73d3ad..fb793c46 100644 --- a/src/bundled_packages/_index.js +++ b/src/bundled_packages/_index.js @@ -6,7 +6,7 @@ module.exports = { // Used to check if a specific name belongs to a bundled package isNameBundled: (name) => { - if (BUNDLED_PACKAGES.includes(name)) { + if (this.BUNDLED_PACKAGES.includes(name)) { return true; } else { return false; @@ -28,111 +28,109 @@ module.exports = { return { ok: true, content: buildPackage(pack) }; }, - BUNDLED_PACKAGES: BUNDLED_PACKAGES + BUNDLED_PACKAGES: [ + "about", + "archive-view", + "atom-dark-syntax", + "atom-dark-ui", + "atom-light-syntax", + "atom-light-ui", + "autocomplete-atom-api", + "autocomplete-css", + "autocomplete-html", + "autocomplete-plus", + "autocomplete-snippets", + "autoflow", + "autosave", + "background-tips", + "base16-tomorrow-dark-theme", + "base16-tomorrow-light-theme", + "bookmarks", + "bracket-matcher", + "command-palette", + "dalek", + "deprecation-cop", + "dev-live-reload", + "encoding-selector", + "exception-reporting", + "find-and-replace", + "fuzzy-finder", + "git-diff", + "go-to-line", + "grammar-selector", + "image-view", + "incompatible-packages", + "keybinding-resolver", + "language-c", + "language-clojure", + "language-coffee-script", + "language-csharp", + "language-css", + "language-gfm", + "language-git", + "language-go", + "language-html", + "language-hyperlink", + "language-java", + "language-javascript", + "language-json", + "language-less", + "language-make", + "language-mustache", + "language-objective-c", + "language-perl", + "language-php", + "language-property-list", + "language-python", + "language-ruby-on-rails", + "language-ruby", + "language-rust-bundled", + "language-sass", + "language-shellscript", + "language-source", + "language-sql", + "language-text", + "language-todo", + "language-toml", + "language-typescript", + "language-xml", + "language-yaml", + "line-ending-selector", + "link", + "markdown-preview", + "notifications", + "one-dark-syntax", + "one-dark-ui", + "one-light-syntax", + "one-light-ui", + "open-on-github", + "package-generator", + "pulsar-updater", + "settings-view", + "solarized-dark-syntax", + "solarized-light-syntax", + "spell-check", + "status-bar", + "styleguide", + "symbol-provider-ctags", + "symbol-provider-tree-sitter", + "symbols-view", + "tabs", + "timecop", + "tree-view", + "update-package-dependencies", + "welcome", + "whitespace", + "wrap-guide" + ] }; -const BUNDLED_PACKAGES = [ - "about", - "archive-view", - "atom-dark-syntax", - "atom-dark-ui", - "atom-light-syntax", - "atom-light-ui", - "autocomplete-atom-api", - "autocomplete-css", - "autocomplete-html", - "autocomplete-plus", - "autocomplete-snippets", - "autoflow", - "autosave", - "background-tips", - "base16-tomorrow-dark-theme", - "base16-tomorrow-light-theme", - "bookmarks", - "bracket-matcher", - "command-palette", - "dalek", - "deprecation-cop", - "dev-live-reload", - "encoding-selector", - "exception-reporting", - "find-and-replace", - "fuzzy-finder", - "git-diff", - "go-to-line", - "grammar-selector", - "image-view", - "incompatible-packages", - "keybinding-resolver", - "language-c", - "language-clojure", - "language-coffee-script", - "language-csharp", - "language-css", - "language-gfm", - "language-git", - "language-go", - "language-html", - "language-hyperlink", - "language-java", - "language-javascript", - "language-json", - "language-less", - "language-make", - "language-mustache", - "language-objective-c", - "language-perl", - "language-php", - "language-property-list", - "language-python", - "language-ruby-on-rails", - "language-ruby", - "language-rust-bundled", - "language-sass", - "language-shellscript", - "language-source", - "language-sql", - "language-text", - "language-todo", - "language-toml", - "language-typescript", - "language-xml", - "language-yaml", - "line-ending-selector", - "link", - "markdown-preview", - "notifications", - "one-dark-syntax", - "one-dark-ui", - "one-light-syntax", - "one-light-ui", - "open-on-github", - "package-generator", - "pulsar-updater", - "settings-view", - "solarized-dark-syntax", - "solarized-light-syntax", - "spell-check", - "status-bar", - "styleguide", - "symbol-provider-ctags", - "symbol-provider-tree-sitter", - "symbols-view", - "tabs", - "timecop", - "tree-view", - "update-package-dependencies", - "welcome", - "whitespace", - "wrap-guide" -]; - const DEFAULT_PACK = { name: "", readme: "", owner: "pulsar-edit", metadata: { - dist: { // We don't support installation of these packages, but don't want to cause any errors + dist: { // We don't support installation of these packages, but don't want to cause any errors sha: "", tarball: "" },