diff --git a/package.json b/package.json index 9d75f38..69b94be 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "_check:links--warn": "npm run _check:links || (echo; echo 'WARNING: see link-checker output for issues.'; echo)", "_check:links:internal": "npm run _check:links -- HTMLTEST_ARGS='--skip-external'", "_check:links": "make --keep-going check-links", - "_commit:public": "HASH=$(git rev-parse --short main); cd public && git add -A && git commit -m \"Site at $HASH\"", + "_commit:public": "HASH=$(git rev-parse --short main); cd public && git add -A && git commit --allow-empty -m \"Site at $HASH\"", "_diff:check": "git diff --name-only --exit-code", "_filename-error": "echo 'ERROR: the following files violate naming conventions; fix using: `npm run fix:filenames`'; echo; npm run -s _ls-bad-filenames; exit 1", "_filenames-to-kebab-case": "find assets content -name '*_*' ! -name '[_.]*' -exec sh -c 'mv \"$1\" \"${1//_/-}\"' _ {} \\;", @@ -15,7 +15,7 @@ "_hugo": "hugo --cleanDestinationDir", "_ls-bad-filenames": "find assets content -name '*_*' ! -name '[_.]*'", "_serve": "npm run _hugo-dev -- serve --minify --disableFastRender --renderToMemory", - "_preupdate:docsy": "echo 'INFO: forcing a full clean install of Docsy'; rm -f package-lock.json", + "_preupdate:docsy": "echo 'INFO: forcing a full clean install of Docsy, removing package-lock.json'; rm -f package-lock.json", "build:preview": "npm run _hugo-dev -- --minify --baseURL \"${DEPLOY_PRIME_URL:-http://localhost}\"", "build:production": "npm run _hugo -- --minify", "build": "npm run _build --", @@ -34,21 +34,21 @@ "postinstall": "npm run _hugo-npm-setup", "precheck:links:all": "npm run build", "precheck:links": "npm run build", - "preupdate:docsy": "npm run _preupdate:docsy && echo 'INFO: set DOCSY_VERSION to desired Docsy version'", + "preupdate:docsy": "npm run _preupdate:docsy && echo 'INFO: set VERSION to desired Docsy version'", "random:text": "node scripts/random-text.js", "seq": "bash -c 'for cmd in \"$@\"; do npm run $cmd || exit 1; done' - ", "serve": "npm run _serve", "test": "npm list docsy && npm run check:format && npm run check:links", "update:docsy:local": "npm run preupdate:docsy && npm install -D file:../docsy/docsy && npm list docsy", - "update:docsy:main": "npm run preupdate:docsy && npm install -D google/docsy#main && npm list docsy", - "update:docsy": "DOCSY_VERSION=${DOCSY_VERSION:-0.14.0} npm install -D google/docsy#semver:$DOCSY_VERSION && npm list docsy", + "update:docsy:main": "VERSION=main npm run update:docsy", + "update:docsy": "npm install -D google/docsy#${VERSION:-semver:0.14.1} && npm list docsy", "update:hugo": "npm install --save-exact -D hugo-extended@latest", "update:packages": "npx npm-check-updates --dep 'prod,dev,optional,peer' -u" }, "devDependencies": { "autoprefixer": "^10.4.21", "cspell": "^9.0.2", - "docsy": "github:google/docsy#semver:", + "docsy": "github:google/docsy#semver:0.14.1", "hugo-extended": "0.155.3", "postcss-cli": "^11.0.1", "prettier": "^3.5.3"