Skip to content

Commit

Permalink
fix path when deleting the esm version of outdated locales during bui…
Browse files Browse the repository at this point in the history
  • Loading branch information
fturmel authored Nov 18, 2021
1 parent 02ebe14 commit 1bca1e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build/removeOutdatedLocales.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const packageDir = process.argv[2]
if (!packageDir) throw new Error('Package dir should be passed as an argument')

const locales = require('../../outdatedLocales.json')
locales.forEach(locale => {
locales.forEach((locale) => {
rimraf.sync(path.resolve(packageDir, `locale/${locale}`))
rimraf.sync(path.resolve(packageDir, `locale/esm/${locale}`))
rimraf.sync(path.resolve(packageDir, `esm/locale/${locale}`))
})

0 comments on commit 1bca1e6

Please sign in to comment.