Skip to content

Commit d350725

Browse files
authored
theme: Pin npm dependencies and adjust Netlify build commands
Closes gohugoio#3366
1 parent 9b33bb5 commit d350725

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

netlify.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build]
22
publish = "public"
3-
command = "hugo --gc --minify"
3+
command = "npm ls && hugo --gc --minify"
44

55
[build.environment]
66
HUGO_VERSION = "0.155.2"
@@ -10,16 +10,16 @@
1010
HUGO_ENABLEGITINFO = "true"
1111

1212
[context.split1]
13-
command = "hugo --gc --minify --enableGitInfo"
13+
command = "npm ls && hugo --gc --minify --enableGitInfo"
1414

1515
[context.split1.environment]
1616
HUGO_ENV = "production"
1717

1818
[context.deploy-preview]
19-
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL --enableGitInfo"
19+
command = "npm ls && hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL --enableGitInfo"
2020

2121
[context.branch-deploy]
22-
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
22+
command = "npm ls && hugo --gc --minify -b $DEPLOY_PRIME_URL"
2323

2424
[context.next.environment]
2525
HUGO_ENABLEGITINFO = "true"

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
"tailwindcss": "~4.1.18"
1818
},
1919
"dependencies": {
20-
"@alpinejs/focus": "~3.15.3",
21-
"@alpinejs/persist": "~3.15.3",
20+
"@alpinejs/focus": "3.15.3",
21+
"@alpinejs/persist": "3.15.3",
2222
"@hotwired/turbo": "8.0.20",
23-
"alpinejs": "~3.15.3"
23+
"alpinejs": "3.15.3"
2424
}
2525
}

0 commit comments

Comments
 (0)