UNPKG

350 BJavaScriptView Raw
1const path = require('path')
2const JoyCon = require('joycon').default
3
4const joycon = new JoyCon({
5 files: ['saofile.js', 'saofile.json']
6})
7
8module.exports = cwd =>
9 joycon.load({
10 cwd,
11 stopDir: path.dirname(cwd)
12 })
13
14module.exports.hasConfig = cwd =>
15 Boolean(
16 joycon.resolve({
17 cwd,
18 stopDir: path.dirname(cwd)
19 })
20 )