Fix postinstall scripts

This commit is contained in:
r1oga
2022-12-20 11:00:10 +01:00
parent e678b7f804
commit a516a3e290
3 changed files with 4 additions and 16 deletions

View File

@@ -5,8 +5,7 @@
"license": "MIT", "license": "MIT",
"private": true, "private": true,
"scripts": { "scripts": {
"clean": "rm -rf node_modules && lerna clean", "clean": "rm -rf node_modules && lerna clean"
"publish": "lerna publish -y --no-private --preid ci --npm-tag=ci --force-publish=* --registry '@r1oga:registry=https://npm.pkg.github.com' --message ':package: Publish'"
}, },
"devDependencies": { "devDependencies": {
"lerna": "^6.1.0" "lerna": "^6.1.0"

View File

@@ -3,11 +3,6 @@
# see sharing eslint config & npm scoped modules https://eslint.org/docs/latest/developer-guide/shareable-configs#npm-scoped-modules # see sharing eslint config & npm scoped modules https://eslint.org/docs/latest/developer-guide/shareable-configs#npm-scoped-modules
if [[ ! -f "$INIT_CWD/.eslintrc.yaml" ]];then if [[ ! -f "$INIT_CWD/.eslintrc.yaml" ]];then
echo "extends: ['@r1oga']" > "$INIT_CWD/.eslintrc.yaml" echo "extends: ['@r1oga']" > "$INIT_CWD/.eslintrc.yaml"
else
read -p "overwrite .eslintrc.yaml?(Yn) " overwrite
if [[ -z "$overwrite" || "$overwrite" -eq "Y" || "$overwrite" -eq "y" ]];then
echo "extends: ['@r1oga']" > "$INIT_CWD/.eslintrc.yaml"
fi
fi fi
cp -i .eslintignore "$INIT_CWD/.eslintignore" cp -n .eslintignore "$INIT_CWD/.eslintignore"

View File

@@ -1,13 +1,7 @@
#!/bin/bash #!/bin/bash
#echo "HERE"
if [[ ! -f "$INIT_CWD/.prettierrc.yaml" ]];then if [[ ! -f "$INIT_CWD/.prettierrc.yaml" ]];then
echo "'@r1oga/prettier-config'" > "$INIT_CWD/.prettierrc.yaml" echo "'@r1oga/prettier-config'" > "$INIT_CWD/.prettierrc.yaml"
else
# shellcheck disable=SC2162
read -p "overwrite .prettierrc.yaml?(Yn) " overwrite
if [[ -z "$overwrite" || "$overwrite" -eq "Y" || "$overwrite" -eq "y" ]];then
echo "'@r1oga/prettier-config'" > "$INIT_CWD/.prettierrc.yaml"
fi
fi fi
cp -i .prettierignore "$INIT_CWD/.prettierignore" cp -n .prettierignore "$INIT_CWD/.prettierignore"