Skip to content

Commit

Permalink
Merge pull request #863 from nextcloud-libraries/fix/npm-version
Browse files Browse the repository at this point in the history
fix: Update NPM version to LTS 10
  • Loading branch information
susnux committed Apr 21, 2024
2 parents f686416 + 87747f8 commit 92c447f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@
},
"engines": {
"node": "^20.0.0",
"npm": "^9.0.0"
"npm": "^10.0.0"
}
}
6 changes: 0 additions & 6 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,11 @@ const translations = Object.fromEntries(readdirSync('./l10n')
]
}))


export default createLibConfig({
index: 'lib/index.ts',
}, {
libraryFormats: ['es', 'cjs'],
replace: {
LOCALES: JSON.stringify(translations)
},
config: {
test: {
environment: 'jsdom',
}
}
})
9 changes: 7 additions & 2 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ import config from './vite.config'
export default async (env) => {
const cfg = await config(env)
// remove the node externals plugin that interferes with vitest
cfg.plugins = cfg.plugins!.filter((plugin) => plugin && "name" in plugin && plugin.name !== 'node-externals')
return cfg
cfg.plugins = cfg.plugins!.filter((plugin) => plugin && 'name' in plugin && plugin.name !== 'node-externals')
return {
...cfg,
test: {
environment: 'jsdom',
},
}
}

0 comments on commit 92c447f

Please sign in to comment.