Skip to content
This repository was archived by the owner on Sep 12, 2019. It is now read-only.

Commit ae679ed

Browse files
authored
avoid svelte-sapper duplication
closes netlify/cli#347
1 parent e03e2ba commit ae679ed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/detectors/svelte.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ module.exports = function() {
1010
if (!hasRequiredFiles(["package.json"])) return false;
1111
// REQUIRED DEPS
1212
if (!hasRequiredDeps(["svelte"])) return false;
13+
// HAS DETECTOR, IT WILL BE PICKED UP BY SAPPER DETECTOR, avoid duplication https://github.com/netlify/cli/issues/347
14+
if (hasRequiredDeps(["sapper"])) return false;
1315

1416
/** everything below now assumes that we are within svelte */
1517

0 commit comments

Comments
 (0)