diff --git a/ghost/admin/lib/asset-delivery/index.js b/ghost/admin/lib/asset-delivery/index.js index 6101054673..5a9425be7b 100644 --- a/ghost/admin/lib/asset-delivery/index.js +++ b/ghost/admin/lib/asset-delivery/index.js @@ -1,6 +1,8 @@ /* eslint-disable */ 'use strict'; +const path = require('path'); + module.exports = { name: 'asset-delivery', @@ -22,7 +24,7 @@ module.exports = { const fs = this.project.require('fs-extra'); const walkSync = this.project.require('walk-sync'); - const assetsOut = `../core/core/built/admin`; + const assetsOut = path.join(path.dirname(require.resolve('ghost')), `core/built/admin`); fs.removeSync(assetsOut); fs.ensureDirSync(assetsOut);