Skip to content

Commit

Permalink
Merge pull request #843 from nextcloud/fix/external-dependencies
Browse files Browse the repository at this point in the history
fix: Make sure dependencies are external
  • Loading branch information
susnux committed Jun 22, 2023
2 parents 71b6387 + 1d78f88 commit bc1242f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion babel.config.js
Expand Up @@ -5,7 +5,7 @@ export default {
"@babel/env",
{
useBuiltIns: "usage",
corejs: "3.0.0",
corejs: "3",
},
],
],
Expand Down
5 changes: 4 additions & 1 deletion rollup.config.js
Expand Up @@ -23,7 +23,10 @@ const packageJson = JSON.parse(
)
)

const externals = [...Object.keys(packageJson?.dependencies || {}), ...Object.keys(packageJson?.peerDependencies || {})]
const externals = [
...Object.keys(packageJson?.dependencies || {}),
...Object.keys(packageJson?.peerDependencies || {})
].map(packageName => new RegExp(`^${packageName}`))

const translations = fs
.readdirSync('./l10n')
Expand Down

0 comments on commit bc1242f

Please sign in to comment.