Skip to content

Commit 92c447f

Browse files
authored
Merge pull request #863 from nextcloud-libraries/fix/npm-version
fix: Update NPM version to LTS 10
2 parents f686416 + 87747f8 commit 92c447f

4 files changed

Lines changed: 9 additions & 10 deletions

File tree

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@
6868
},
6969
"engines": {
7070
"node": "^20.0.0",
71-
"npm": "^9.0.0"
71+
"npm": "^10.0.0"
7272
}
7373
}

vite.config.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,11 @@ const translations = Object.fromEntries(readdirSync('./l10n')
2323
]
2424
}))
2525

26-
2726
export default createLibConfig({
2827
index: 'lib/index.ts',
2928
}, {
3029
libraryFormats: ['es', 'cjs'],
3130
replace: {
3231
LOCALES: JSON.stringify(translations)
3332
},
34-
config: {
35-
test: {
36-
environment: 'jsdom',
37-
}
38-
}
3933
})

vitest.config.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ import config from './vite.config'
33
export default async (env) => {
44
const cfg = await config(env)
55
// remove the node externals plugin that interferes with vitest
6-
cfg.plugins = cfg.plugins!.filter((plugin) => plugin && "name" in plugin && plugin.name !== 'node-externals')
7-
return cfg
6+
cfg.plugins = cfg.plugins!.filter((plugin) => plugin && 'name' in plugin && plugin.name !== 'node-externals')
7+
return {
8+
...cfg,
9+
test: {
10+
environment: 'jsdom',
11+
},
12+
}
813
}

0 commit comments

Comments
 (0)