refactor: move prepare to a dedicated script
This commit is contained in:
parent
e73f5f5d10
commit
8eb91b0937
|
@ -21,7 +21,7 @@
|
|||
},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"scripts": {
|
||||
"prepare": "bash -c 'if command -v presetter &> /dev/null; then presetter bootstrap; fi'",
|
||||
"prepare": "bash ./prepare.sh",
|
||||
"build": "run build",
|
||||
"semantic-release": "semantic-release"
|
||||
},
|
||||
|
@ -35,7 +35,8 @@
|
|||
},
|
||||
"files": [
|
||||
"lib/**",
|
||||
"templates/**"
|
||||
"templates/**",
|
||||
"prepare.sh"
|
||||
],
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if command -v presetter &> /dev/null; then
|
||||
# shellcheck disable=SC2154
|
||||
if [ -e "${npm_config_local_prefix}/node_modules/presetter-preset-strict" ]; then
|
||||
presetter bootstrap
|
||||
fi
|
||||
|
||||
fi
|
Loading…
Reference in New Issue