mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Use _atomPackage key from main metadata
This commit is contained in:
@@ -14,8 +14,8 @@ ModuleCache = require './module-cache'
|
||||
ScopedProperties = require './scoped-properties'
|
||||
|
||||
try
|
||||
packagesCache = require('../package.json')
|
||||
catch
|
||||
packagesCache = require('../package.json')?._atomPackages ? {}
|
||||
catch error
|
||||
packagesCache = {}
|
||||
|
||||
# Loads and activates a package's main module and resources such as
|
||||
|
||||
Reference in New Issue
Block a user