From 8459cc7cc6f8076131d315592184c54c5e6991c0 Mon Sep 17 00:00:00 2001 From: Miguel Flores Date: Mon, 16 Oct 2023 22:12:56 -0600 Subject: [PATCH] Create create-package --- scripts/create-package | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 scripts/create-package diff --git a/scripts/create-package b/scripts/create-package new file mode 100644 index 0000000..1910b33 --- /dev/null +++ b/scripts/create-package @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +set -eo pipefail + +name=$1 + +if [[ -z "$name" ]]; then + >&2 echo "Usage: npm run new-package [name]" + exit 1 +fi + +npx lerna create @actions/$name +cp packages/core/tsconfig.json packages/$name/tsconfig.json