UNPKG

352 Btext/coffeescriptView Raw
1path = require 'path'
2fs = require 'fs'
3gulpfile = require './gulpfile'
4
5parent = path.dirname gulpfile.filename
6filename = path.resolve parent, './package.json'
7
8while not (fs.existsSync(filename) and fs.statSync(filename).isFile())
9 parent = path.dirname parent
10 filename = path.resolve parent, './package.json'
11
12module.exports = require filename
\No newline at end of file