make script own command instead of prebuild
This commit is contained in:
@@ -5,9 +5,8 @@
|
||||
"license": "Apache-2.0",
|
||||
"author": "Nym Technologies SA",
|
||||
"scripts": {
|
||||
"prebuild": "../scripts/next-scripts/autodoc.sh",
|
||||
"generate:commands": "../scripts/next-scripts/autodoc.sh",
|
||||
"build": "next build",
|
||||
"predev": "../scripts/next-scripts/autodoc.sh",
|
||||
"dev": " next dev",
|
||||
"lint": "next lint",
|
||||
"lint:fix": "next lint --fix",
|
||||
|
||||
@@ -4,7 +4,7 @@ set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
# this is run by the `prebuild` and `predev` scripts in docs/package.json
|
||||
# this is run by the `generate:commands` script in docs/package.json
|
||||
cd ../autodoc && cargo run --release &&
|
||||
|
||||
mv autodoc-generated-markdown/nym-cli-commands.md ../docs/pages/developers/tools/nym-cli/commands.mdx &&
|
||||
|
||||
Reference in New Issue
Block a user