mirror of https://github.com/actions/toolkit
13 lines
224 B
Plaintext
13 lines
224 B
Plaintext
|
#!/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
|