mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
Copy index.json in build script, not npm script
Move the duplication of the index.json file in the build.sh script instead of the npm build-index script. This makes things cleaner.
This commit is contained in:
parent
c2051a0674
commit
7a28aef527
2 changed files with 2 additions and 1 deletions
|
@ -12,7 +12,7 @@
|
|||
"lint-markdown": "markdownlint pages*/**/*.md",
|
||||
"lint-tldr": "tldr-lint ./pages",
|
||||
"test": "bash scripts/test.sh",
|
||||
"build-index": "node ./scripts/build-index.js | tee pages/index.json > index.json"
|
||||
"build-index": "node ./scripts/build-index.js > index.json"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
|
|
|
@ -13,6 +13,7 @@ function initialize {
|
|||
|
||||
function build_index {
|
||||
npm run build-index
|
||||
cp index.json pages/
|
||||
echo "Pages index succesfully built."
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue