Skip to content

Commit

Permalink
Fix declaration of BUNDLED_PACKAGES
Browse files Browse the repository at this point in the history
  • Loading branch information
confused-Techie committed Feb 1, 2024
1 parent a264429 commit e6d1211
Showing 1 changed file with 97 additions and 99 deletions.
196 changes: 97 additions & 99 deletions src/bundled_packages/_index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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: ""
},
Expand Down

0 comments on commit e6d1211

Please sign in to comment.