Skip to content

Commit d0e0158

Browse files
committed
use require.resolve in pull_date_format
1 parent 2a8d38f commit d0e0158

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/pull_date_format.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var args = process.argv.slice(2);
77
var argLocale = args[0];
88

99
var pathToEn = path.join(constants.pathToSrc, 'locale-en.js');
10-
var pathToWCRegions = path.join(__dirname, '../node_modules/world-calendars/dist/regional');
10+
var pathToWCRegions = path.dirname(require.resolve('world-calendars/dist/regional/en-GB'));
1111

1212
if(!argLocale) {
1313
fs.readdir(pathToWCRegions, function(err, items) {

0 commit comments

Comments
 (0)