0
Fork 0
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:
Daniel Lockyer 2023-10-02 21:27:35 +02:00 committed by Daniel Lockyer
parent 7cdf7ce82e
commit 2d1eddcb51

View file

@ -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);