mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Removed relative path link
- this helps maintainability in the future because Admin doesn't need to care where Core is, as we just resolve to the path where the `ghost` package is
This commit is contained in:
parent
7cdf7ce82e
commit
2d1eddcb51
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue