This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ var Q = require('q'),
7
7
localeInfo = { } ;
8
8
9
9
10
- var NG_LOCALE_DIR = ' ../src/ngLocale/';
10
+ var NG_LOCALE_DIR = __dirname + '/../ ../src/ngLocale/';
11
11
12
12
13
13
function readSymbols ( ) {
Original file line number Diff line number Diff line change @@ -9,18 +9,18 @@ var propertiesToExtract = {'IDS': 'Y', 'IDC': 'Y'};
9
9
10
10
function main ( ) {
11
11
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 ( ) ) ,
13
13
propertiesToExtract ,
14
14
writeFile ) ;
15
15
16
16
function writeFile ( validRanges ) {
17
17
var code = generateCode ( validRanges ) ;
18
18
try {
19
- fs . lstatSync ( ' ../src/ngParseExt') ;
19
+ fs . lstatSync ( __dirname + '/../../ ../src/ngParseExt') ;
20
20
} catch ( e ) {
21
- fs . mkdirSync ( ' ../src/ngParseExt') ;
21
+ fs . mkdirSync ( __dirname + '/../../ ../src/ngParseExt') ;
22
22
}
23
- fs . writeFile ( ' ../src/ngParseExt/ucd.js', code ) ;
23
+ fs . writeFile ( __dirname + '/../../ ../src/ngParseExt/ucd.js', code ) ;
24
24
}
25
25
}
26
26
You can’t perform that action at this time.
0 commit comments