Skip to content

Commit 4ff4bab

Browse files
authored
stop caching .nuxt directory (#128)
* stop caching `.nuxt` directory * update snapshots * update node latest 18 test
1 parent b663d99 commit 4ff4bab

File tree

4 files changed

+3
-12
lines changed

4 files changed

+3
-12
lines changed

core/__snapshots__/TestGenerateBuildPlanForExamples_node-nuxt_1.snap.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
"npm-install": {
88
"directory": "/root/.npm",
99
"type": "shared"
10-
},
11-
"nuxt": {
12-
"directory": ".nuxt",
13-
"type": "shared"
1410
}
1511
},
1612
"deploy": {
@@ -128,8 +124,7 @@
128124
},
129125
{
130126
"caches": [
131-
"node-modules",
132-
"nuxt"
127+
"node-modules"
133128
],
134129
"commands": [
135130
{

core/mise/mise_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func TestMiseGetAllVersions(t *testing.T) {
8888
name: "node all versions",
8989
runtime: "node",
9090
version: "18.20",
91-
versions: []string{"18.20.0", "18.20.1", "18.20.2", "18.20.3", "18.20.4", "18.20.5", "18.20.6", "18.20.7"},
91+
versions: []string{"18.20.0", "18.20.1", "18.20.2", "18.20.3", "18.20.4", "18.20.5", "18.20.6", "18.20.7", "18.20.8"},
9292
},
9393
{
9494
name: "bun all versions",

core/providers/node/node.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,6 @@ func (p *NodeProvider) addCaches(ctx *generate.GenerateContext, build *generate.
207207
if p.isVite(ctx) {
208208
build.AddCache(p.getViteCache(ctx))
209209
}
210-
211-
if p.isNuxt() {
212-
build.AddCache(ctx.Caches.AddCache("nuxt", ".nuxt"))
213-
}
214210
}
215211

216212
func (p *NodeProvider) shouldPrune(ctx *generate.GenerateContext) bool {

docs/src/content/docs/languages/node.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Including:
131131
- Astro: Caches `.astro/cache`
132132
- Nuxt:
133133
- Start command defaults to `node .output/server/index.mjs`
134-
- Caches `.nuxt`
134+
- Caches `node_modules/.cache`
135135

136136
As well as a default cache for node modules:
137137

0 commit comments

Comments
 (0)