Skip to content

Commit

Permalink
fix: Update NPM version to LTS 10
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Apr 21, 2024
1 parent a7efe5c commit 87747f8
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 87747f8

Please sign in to comment.