Moved ghost-version to lib

refs #9178
This commit is contained in:
kirrg001 2017-12-14 22:14:55 +01:00
parent 1a9a10c82b
commit b474fb0d16
7 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
var config = require('./core/server/config'),
ghostVersion = require('./core/server/utils/ghost-version');
ghostVersion = require('./core/server/lib/ghost-version');
/**
* knex-migrator can be used via CLI or within the application

View File

@ -6,7 +6,7 @@ var Promise = require('bluebird'),
models = require('../models'),
config = require('../config'),
settingsCache = require('../services/settings/cache'),
ghostVersion = require('../utils/ghost-version'),
ghostVersion = require('../lib/ghost-version'),
configuration;
function fetchAvailableTimezones() {

View File

@ -2,7 +2,7 @@ var _ = require('lodash'),
Promise = require('bluebird'),
db = require('../../data/db'),
commands = require('../schema').commands,
ghostVersion = require('../../utils/ghost-version'),
ghostVersion = require('../../lib/ghost-version'),
common = require('../../lib/common'),
security = require('../../lib/security'),
models = require('../../models'),

View File

@ -32,7 +32,7 @@ var crypto = require('crypto'),
urlService = require('./services/url'),
common = require('./lib/common'),
request = require('./lib/request'),
currentVersion = require('./utils/ghost-version').full,
currentVersion = require('./lib/ghost-version').full,
internal = {context: {internal: true}},
checkEndpoint = config.get('updateCheckUrl') || 'https://updates.ghost.org';

View File

@ -1,4 +1,4 @@
var ghostVersion = require('../../utils/ghost-version');
var ghostVersion = require('../../lib/ghost-version');
// ### GhostLocals Middleware
// Expose the standard locals that every request will need to have available

View File

@ -5,7 +5,7 @@ var should = require('should'),
// Stuff we are testing
exporter = require('../../server/data/export'),
ghostVersion = require('../../server/utils/ghost-version'),
ghostVersion = require('../../server/lib/ghost-version'),
sandbox = sinon.sandbox.create();