Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 7fbbacc

Browse files
committed
chore(i18n): fix relative paths in scripts
1 parent 1df736e commit 7fbbacc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

i18n/src/closureSlurper.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var Q = require('q'),
77
localeInfo = {};
88

99

10-
var NG_LOCALE_DIR = '../src/ngLocale/';
10+
var NG_LOCALE_DIR = __dirname + '/../../src/ngLocale/';
1111

1212

1313
function readSymbols() {

i18n/ucd/src/extract.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ var propertiesToExtract = {'IDS': 'Y', 'IDC': 'Y'};
99

1010
function main() {
1111
extractValues(
12-
fs.createReadStream('./ucd/src/ucd.all.flat.xml.gz').pipe(zlib.createGunzip()),
12+
fs.createReadStream(__dirname + '/ucd.all.flat.xml.gz').pipe(zlib.createGunzip()),
1313
propertiesToExtract,
1414
writeFile);
1515

1616
function writeFile(validRanges) {
1717
var code = generateCode(validRanges);
1818
try {
19-
fs.lstatSync('../src/ngParseExt');
19+
fs.lstatSync(__dirname + '/../../../src/ngParseExt');
2020
} catch (e) {
21-
fs.mkdirSync('../src/ngParseExt');
21+
fs.mkdirSync(__dirname + '/../../../src/ngParseExt');
2222
}
23-
fs.writeFile('../src/ngParseExt/ucd.js', code);
23+
fs.writeFile(__dirname + '/../../../src/ngParseExt/ucd.js', code);
2424
}
2525
}
2626

0 commit comments

Comments
 (0)