9 lines
213 B
JavaScript
9 lines
213 B
JavaScript
|
// change cwd to ./app
|
||
|
if (!/^(\/|C:\\)snapshot/.test(__dirname)) {
|
||
|
process.chdir(__dirname)
|
||
|
} else {
|
||
|
process.chdir(process.execPath.replace(/(markdown-preview.nvim.*?app).+?$/, '$1'))
|
||
|
}
|
||
|
|
||
|
require('./lib/app')
|