mirror of
https://github.com/atom/atom.git
synced 2026-02-08 13:45:09 -05:00
14 lines
400 B
JavaScript
14 lines
400 B
JavaScript
// Takes an absolute path, relativizes it based on the repository root, then
|
|
// makes it absolute again in the output app path.
|
|
|
|
'use strict'
|
|
|
|
const path = require('path')
|
|
const CONFIG = require('../config')
|
|
|
|
module.exports =
|
|
function computeDestinationPath (srcPath) {
|
|
let relativePath = path.relative(CONFIG.repositoryRootPath, srcPath)
|
|
return path.join(CONFIG.electronAppPath, relativePath)
|
|
}
|