From ac3177e0bbb8fe3ddc2c7c5c927191818661eef9 Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Thu, 15 Jul 2021 18:15:49 +0100 Subject: [PATCH] Fixed require paths and top level js files no-issue We only include index.js and lib in npm packages. --- ghost/magic-link/index.js | 2 +- ghost/magic-link/{ => lib}/MagicLink.js | 2 +- ghost/members-ssr/index.js | 2 +- ghost/members-ssr/{ => lib}/MembersSSR.js | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename ghost/magic-link/{ => lib}/MagicLink.js (98%) rename ghost/members-ssr/{ => lib}/MembersSSR.js (100%) diff --git a/ghost/magic-link/index.js b/ghost/magic-link/index.js index f901d72552..2669de3c96 100644 --- a/ghost/magic-link/index.js +++ b/ghost/magic-link/index.js @@ -1 +1 @@ -module.exports = require('./MagicLink'); +module.exports = require('./lib/MagicLink'); diff --git a/ghost/magic-link/MagicLink.js b/ghost/magic-link/lib/MagicLink.js similarity index 98% rename from ghost/magic-link/MagicLink.js rename to ghost/magic-link/lib/MagicLink.js index 862124b22a..320bb4369c 100644 --- a/ghost/magic-link/MagicLink.js +++ b/ghost/magic-link/lib/MagicLink.js @@ -143,4 +143,4 @@ function defaultGetSubject(type) { } module.exports = MagicLink; -module.exports.JWTTokenProvider = require('./lib/JWTTokenProvider'); +module.exports.JWTTokenProvider = require('./JWTTokenProvider'); diff --git a/ghost/members-ssr/index.js b/ghost/members-ssr/index.js index 438cd49b8f..a3e7bea6fd 100644 --- a/ghost/members-ssr/index.js +++ b/ghost/members-ssr/index.js @@ -1 +1 @@ -module.exports = require('./MembersSSR'); +module.exports = require('./lib/MembersSSR'); diff --git a/ghost/members-ssr/MembersSSR.js b/ghost/members-ssr/lib/MembersSSR.js similarity index 100% rename from ghost/members-ssr/MembersSSR.js rename to ghost/members-ssr/lib/MembersSSR.js