Use relative paths for requires

This commit is contained in:
Kevin Sawicki
2013-09-18 09:11:31 -07:00
parent 0aa28cbfac
commit 6f6daf6db0
2 changed files with 11 additions and 11 deletions

View File

@@ -30,10 +30,10 @@ window.setUpEnvironment = (windowMode) ->
atom.windowMode = windowMode
window.resourcePath = remote.getCurrentWindow().loadSettings.resourcePath
Config = require 'config'
Syntax = require 'syntax'
Pasteboard = require 'pasteboard'
Keymap = require 'keymap'
Config = require './config'
Syntax = require './syntax'
Pasteboard = require './pasteboard'
Keymap = require './keymap'
window.rootViewParentSelector = 'body'
window.config = new Config
@@ -83,11 +83,11 @@ window.unloadEditorWindow = ->
window.installAtomCommand = (callback) ->
commandPath = path.join(window.resourcePath, 'atom.sh')
require('command-installer').install(commandPath, callback)
require('./command-installer').install(commandPath, callback)
window.installApmCommand = (callback) ->
commandPath = path.join(window.resourcePath, 'node_modules', '.bin', 'apm')
require('command-installer').install(commandPath, callback)
require('./command-installer').install(commandPath, callback)
window.onDrop = (e) ->
e.preventDefault()
@@ -96,8 +96,8 @@ window.onDrop = (e) ->
atom.open({pathsToOpen}) if pathsToOpen.length > 0
window.deserializeEditorWindow = ->
RootView = require 'root-view'
Project = require 'project'
RootView = require './root-view'
Project = require './project'
windowState = atom.getWindowState()
@@ -152,7 +152,7 @@ window.loadStylesheet = (stylesheetPath) ->
window.loadLessStylesheet = (lessStylesheetPath) ->
unless lessCache?
LessCompileCache = require 'less-compile-cache'
LessCompileCache = require './less-compile-cache'
lessCache = new LessCompileCache()
try