Skip to content

Commit

Permalink
fix(website-generator): prefer command line flag than package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Apr 19, 2021
1 parent 52f4f5a commit bd59e3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/@textlint/website-generator/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ export const run = async (
cwd: flags.cwd
});
const metadata = {
name: pkg.name ?? flags["metadataName"],
namespace: pkg.homepage ?? flags["metadataNamespace"],
homepage: pkg.homepage ?? flags["metadataHomepage"],
version: pkg.version ?? flags["metadataVersion"]
name: flags["metadataName"] ?? pkg.name,
namespace: flags["metadataNamespace"] ?? pkg.homepage,
homepage: flags["metadataHomepage"] ?? pkg.homepage,
version: flags["metadataVersion"] ?? pkg.version
};
// assert
validateTextlintScriptMetadata(metadata);
Expand Down

0 comments on commit bd59e3f

Please sign in to comment.