From 4d863110c74cbfcd4a73215902f9b3d5eb536393 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Mon, 24 Oct 2022 08:00:36 +0200 Subject: [PATCH] Fix: extending npm scripts --- netlify.toml | 2 +- package.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index c2b32f659c..03a068506a 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,7 +3,7 @@ [build] publish = "userguide/public" -command = "npm run docs-install && npm run build:preview" +command = "npm run docs-install && npm run netlify:pretend-devDeps && npm run build:preview" [build.environment] GO_VERSION = "1.19.2" diff --git a/package.json b/package.json index c62536aaf4..c8248276a8 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,8 @@ "check-links": "npm run cd:docs check-links", "docs-install": "npm run _cd:docs -- npm install", "get:submodule": "set -x && git submodule update --init ${DEPTH:- --depth 1}", + "netlify:pretend-devDeps": "cd /opt/build && npm run pretend-devDeps", + "pretend-devDeps": "npx mkdirp github.com/FortAwesome/Font-Awesome && npx mkdirp github.com/twbs/bootstrap", "serve": "npm run cd:docs serve", "update:pkg:hugo": "npm install --save-exact -D hugo-extended@latest", "update:pkg:dep": "npm install --save-exact @fortawesome/fontawesome-free@6 bootstrap@4" @@ -25,6 +27,7 @@ "bootstrap": "4.6.2" }, "devDependencies": { + "mkdirp" : "1.0.4", "hugo-extended": "0.104.3" } }