Skip to content

Commit

Permalink
fix: adapt for yargs v17
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Sep 24, 2021
1 parent e927bbc commit f379c3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import cors from "cors";
import express from "express";
import yargs from "yargs";
import { hideBin } from "yargs/helpers";

import fixtureServereMiddleware from "../index.js";
import globTofixtures from "../lib/glob-to-fixtures.js ";
Expand All @@ -13,7 +14,7 @@ import DEFAULTS from "../lib/defaults.js";
const defaultFixtureUrl =
process.env.NOW_URL || process.env.FIXTURES_URL || DEFAULTS.fixturesUrl;

const { argv } = yargs
const { argv } = yargs(hideBin(process.argv))
.options({
port: {
type: "number",
Expand Down

0 comments on commit f379c3a

Please sign in to comment.