mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 15:37:46 +03:00
Whitelist folders path from core
There are several folders bundled in the app that aren't needed in the require cache list so it is simpler to opt-in the folders that should be part of the cache.
This commit is contained in:
parent
440866d79e
commit
7926531330
@ -11,3 +11,19 @@ module.exports = (grunt) ->
|
||||
ModuleCache.create(path.join(appDir, 'node_modules', packageName))
|
||||
|
||||
ModuleCache.create(appDir)
|
||||
|
||||
metadata = grunt.file.readJSON(path.join(appDir, 'package.json'))
|
||||
|
||||
metadata._atomModuleCache.folders.forEach (folder) ->
|
||||
if '' in folder.paths
|
||||
folder.paths = [
|
||||
''
|
||||
'exports'
|
||||
'spec'
|
||||
'src'
|
||||
'src/browser'
|
||||
'static'
|
||||
'vendor'
|
||||
]
|
||||
|
||||
grunt.file.write(path.join(appDir, 'package.json'), JSON.stringify(metadata, null, 2))
|
||||
|
Loading…
Reference in New Issue
Block a user