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

Commit ebfffef

Browse files
author
sw-yx
committed
fix minor typos in svelte and sapper detectors
1 parent 44ad5cc commit ebfffef

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/detectors/sapper.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = function() {
1111
// REQUIRED DEPS
1212
if (!hasRequiredDeps(["sapper"])) return false;
1313

14-
/** everything below now assumes that we are within vue */
14+
/** everything below now assumes that we are within Sapper */
1515

1616
const possibleArgsArrs = scanScripts({
1717
preferredScriptsArr: ["dev", "start"],
@@ -24,13 +24,13 @@ module.exports = function() {
2424
}
2525

2626
return {
27-
type: "vue-cli",
27+
type: "sapper",
2828
command: getYarnOrNPMCommand(),
2929
port: 8888,
3030
proxyPort: 3000,
3131
env: { ...process.env },
3232
possibleArgsArrs,
3333
urlRegexp: new RegExp(`(http://)([^:]+:)${3000}(/)?`, "g"),
34-
dist: "dist"
34+
dist: "static"
3535
};
3636
};

src/detectors/svelte.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = function() {
1111
// REQUIRED DEPS
1212
if (!hasRequiredDeps(["svelte"])) return false;
1313

14-
/** everything below now assumes that we are within vue */
14+
/** everything below now assumes that we are within svelte */
1515

1616
const possibleArgsArrs = scanScripts({
1717
preferredScriptsArr: ["dev", "start", "run"],
@@ -31,6 +31,6 @@ module.exports = function() {
3131
env: { ...process.env },
3232
possibleArgsArrs,
3333
urlRegexp: new RegExp(`(http://)([^:]+:)${5000}(/)?`, "g"),
34-
dist: "dist"
34+
dist: "static"
3535
};
3636
};

0 commit comments

Comments
 (0)