mirror of
https://github.com/actions/toolkit
synced 2025-05-09 08:33:00 +00:00
Simplify package creation
This commit is contained in:
parent
9ef78f1807
commit
d3cfce8cf0
3 changed files with 17 additions and 9 deletions
13
scripts/create-package
Executable file
13
scripts/create-package
Executable file
|
@ -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
|
||||
|
||||
lerna create @actions/$name
|
||||
cp packages/toolkit/tsconfig.json packages/$name/tsconfig.json
|
Loading…
Add table
Add a link
Reference in a new issue