Skip to content

Commit 86b39f8

Browse files
committed
script should not walk translations content dirs
1 parent fc18a1b commit 86b39f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

script/update-internal-links.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const renderContent = require('../lib/render-content')
1515
const patterns = require('../lib/patterns')
1616

1717
const walkFiles = (pathToWalk) => {
18-
return walk(path.join(process.cwd(), pathToWalk), { includeBasePath: true, directories: false })
18+
return walk(path.posix.join(__dirname, '..', pathToWalk), { includeBasePath: true, directories: false })
1919
.filter(file => file.endsWith('.md') && !file.endsWith('README.md'))
2020
.filter(file => !file.includes('/early-access/')) // ignore EA for now
2121
}

0 commit comments

Comments
 (0)