forked from TryGhost/Ghost
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shims for deleted (refactored away) files
closes TryGhost#1873. During file system merge upgrades of new releases, old files are not removed and node's require loads the old file instead of all the new ones in the new directory. The files in this commit act as a delegate for all other dependent scripts. These shim files explicitly require the new index.js.
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
This file is a shim to accomodate simple file system merge upgrade from 0.3.3 to 0.4. | ||
During a file system merge upgrade from 0.3.3 to 0.4, the old version of this file will | ||
persist unless this shim is in place. Problems arise when the stale 0.3.3 version of | ||
this file exists as well as the new directory of files bearing the same name in 0.4. | ||
Node's require defaults to loading the 0.3.3 version causing errors. This file replaces | ||
the old 0.3.3 version. This allows all dependent modules to continue requiring their | ||
dependencies the way they always have. See issue 1873 for more information. | ||
https://github.com/TryGhost/Ghost/issues/1873 | ||
*/ | ||
var server = require('./server/index.js'); | ||
|
||
module.exports = server; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
This file is a shim to accomodate simple file system merge upgrade from 0.3.3 to 0.4. | ||
During a file system merge upgrade from 0.3.3 to 0.4, the old version of this file will | ||
persist unless this shim is in place. Problems arise when the stale 0.3.3 version of | ||
this file exists as well as the new directory of files bearing the same name in 0.4. | ||
Node's require defaults to loading the 0.3.3 version causing errors. This file replaces | ||
the old 0.3.3 version. This allows all dependent modules to continue requiring their | ||
dependencies the way they always have. See issue 1873 for more information. | ||
https://github.com/TryGhost/Ghost/issues/1873 | ||
*/ | ||
var api = require('./api/index.js'); | ||
|
||
module.exports = api; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
This file is a shim to accomodate simple file system merge upgrade from 0.3.3 to 0.4. | ||
During a file system merge upgrade from 0.3.3 to 0.4, the old version of this file will | ||
persist unless this shim is in place. Problems arise when the stale 0.3.3 version of | ||
this file exists as well as the new directory of files bearing the same name in 0.4. | ||
Node's require defaults to loading the 0.3.3 version causing errors. This file replaces | ||
the old 0.3.3 version. This allows all dependent modules to continue requiring their | ||
dependencies the way they always have. See issue 1873 for more information. | ||
https://github.com/TryGhost/Ghost/issues/1873 | ||
*/ | ||
var middleware = require('./middleware/index.js'); | ||
|
||
module.exports = middleware; |