mirror of
https://github.com/zkitter/configs.git
synced 2026-01-07 20:54:10 -05:00
Fix postinstall scripts
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
lib=@r1oga/eslint-config
|
||||
pnpm add -D $lib
|
||||
echo "extends: $lib" > .eslintrc.yaml
|
||||
cp node_modules/$lib/.eslintignore .eslintignore
|
||||
@@ -5,7 +5,8 @@
|
||||
"main": ".eslintrc.yaml",
|
||||
"files": [
|
||||
".eslintrc.yaml",
|
||||
".eslintignore"
|
||||
".eslintignore",
|
||||
"postinstall.sh"
|
||||
],
|
||||
"keywords": [
|
||||
"eslint",
|
||||
@@ -20,7 +21,7 @@
|
||||
"access": "public"
|
||||
},
|
||||
"scripts": {
|
||||
"postinstall": "sh install.sh"
|
||||
"postinstall": "sh postinstall.sh"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "^5.46.1",
|
||||
|
||||
6
packages/eslint/postinstall.sh
Normal file
6
packages/eslint/postinstall.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
lib=@r1oga/config-eslint
|
||||
|
||||
echo "extends: $lib" > "$INIT_CWD/.eslintrc.yaml"
|
||||
cp .eslintignore "$INIT_CWD/.eslintignore"
|
||||
@@ -1,7 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
lib=@r1oga/prettier-config
|
||||
|
||||
pnpm add -D $lib
|
||||
echo "\"$lib\"" > .prettierrc.yaml
|
||||
cp node_modules/$lib/.prettierignore .prettierignore
|
||||
@@ -5,7 +5,8 @@
|
||||
"main": ".prettierrc.yaml",
|
||||
"files": [
|
||||
".prettierrc.yaml",
|
||||
".prettierignore"
|
||||
".prettierignore",
|
||||
"postinstall.sh"
|
||||
],
|
||||
"keywords": [
|
||||
"prettier",
|
||||
@@ -14,6 +15,12 @@
|
||||
],
|
||||
"author": "r1oga",
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"scripts": {
|
||||
"postinstall": "sh postinstall.sh"
|
||||
},
|
||||
"devDependencies": {
|
||||
"prettier": "^2.8.1"
|
||||
}
|
||||
|
||||
6
packages/prettier/postinstall.sh
Normal file
6
packages/prettier/postinstall.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
lib=@r1oga/config-prettier
|
||||
|
||||
echo "\"$lib\"" > "$INIT_CWD/.prettierrc.yaml"
|
||||
cp .prettierignore "$INIT_CWD/.prettierignore"
|
||||
Reference in New Issue
Block a user