 npmConfig = require '../package.json'
 
 class Impromptu
+  @VERSION: npmConfig.version
   @CONFIG_DIR: "#{process.env.HOME}/.impromptu"
-  @VERSION: npmConfig.version
 
   compiledPromptPath: "#{@CONFIG_DIR}/.compiled/prompt.js"
   paths: "#{@CONFIG_DIR}/prompt.#{ext}" for ext in ['coffee', 'js']

        return true
      catch err
        @_error 'coffeescript', 'Your prompt file is not valid CoffeeScript.', err

  _error: (name, content, err) ->
    @prompt.section "error:message:#{name}",
      content: content
      background: 'red'
      foreground: 'white'


# Create custom errors by extending `Impromptu.Error`.


    # If you're using CS, load the CoffeeScript module to compile and cache it.
    else if /\.coffee$/.test sourcePrompt
      # Clear any pre-existing CoffeeScript compiler errors;
      # we only care about whether the most recent compilation succeeded.
      @_clearError 'coffeescript'

      coffee = require 'coffee-script'
      try
        compiledJs = coffee.compile fs.readFileSync(sourcePrompt).toString()
