From 51eb20af908812beb69deec37ecee45936190b2e Mon Sep 17 00:00:00 2001 From: Tate Thurston Date: Wed, 16 Feb 2022 11:48:08 -0800 Subject: [PATCH] fix json readme (#130) Co-authored-by: Tate --- README.md | 8 ++++---- src/cli/index.ts | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 5d78c797..4116a9a9 100644 --- a/README.md +++ b/README.md @@ -625,7 +625,7 @@ TypeScript projects will generally want to set this value to match their `rootDi // twirp.json ```json { - exclude: ["/bar/"] + "exclude": ["/bar/"] } ``` @@ -663,7 +663,7 @@ TypeScript projects will generally want to set this value to match their `rootDi // twirp.json ```json { - dest: 'out', + "dest": "out", } ``` @@ -684,8 +684,8 @@ TypeScript projects will generally want to set this value to match their `rootDi // twirp.json ```json { - root: 'src', - dest: 'out', + "root": "src", + "dest": "out", } ``` diff --git a/src/cli/index.ts b/src/cli/index.ts index 4ff3deef..98c52f6b 100644 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -58,7 +58,7 @@ type Config = { * // twirp.json * ```json * { - * root: "src" + * "root": "src" * } * ``` * @@ -88,7 +88,7 @@ type Config = { * // twirp.json * ```json * { - * exclude: ["/bar/"] + * "exclude": ["/bar/"] * } * ``` * @@ -121,7 +121,7 @@ type Config = { * * // twirp.json * { - * dest: 'out', + * "dest": "out", * } * * /src @@ -138,8 +138,8 @@ type Config = { * * // twirp.json * { - * root: 'src', - * dest: 'out', + * "root": "src", + * "dest": "out", * } * * /src