From b8a725badf24ae04a07fd47b8bedf49626cb0fbc Mon Sep 17 00:00:00 2001 From: Ryan Lamb <4955475+kinyoklion@users.noreply.github.com> Date: Tue, 29 Aug 2023 09:49:47 -0700 Subject: [PATCH] Restore doc-name script. --- scripts/doc-name.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 scripts/doc-name.sh diff --git a/scripts/doc-name.sh b/scripts/doc-name.sh new file mode 100755 index 000000000..150c0fb70 --- /dev/null +++ b/scripts/doc-name.sh @@ -0,0 +1,8 @@ +# Given a path get the name for the documentation. +# ./scripts/doc-name.sh packages/sdk/server-node +# Produces something like: +# LaunchDarkly Server-Side SDK for Node.js (0.1.0) + +set -e + +node -p "let pj = require('./$1/package.json');\`\${pj.description} (\${pj.version})\`";