diff --git a/netlify.toml b/netlify.toml index c2b32f659..03a068506 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 c62536aaf..c8248276a 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" } }