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

Commit 05f7075

Browse files
committed
fix import externs
Change-Id: I89aa01dd05957efbeee98ecf78fcbbc9739e1f1d
1 parent 53cbf72 commit 05f7075

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
closure-compiler
22
node_modules
33
.DS_Store
4+
externs/pom.xml

compile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ let externs;
3030
*/
3131
function loadExterns() {
3232
const fs = require('fs');
33-
const path = './externs';
34-
const all = fs.readdirSync(path);
33+
const p = path.resolve(__dirname, 'externs');
34+
const all = fs.readdirSync(p);
3535

3636
return all.filter(x => x.endsWith('.js')).map(x => {
3737
return {
38-
source: fs.readFileSync(path + '/' + x, {encoding: 'UTF-8'}),
38+
source: fs.readFileSync(path.resolve(p, x), {encoding: 'UTF-8'}),
3939
};
4040
});
4141
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "google-closure-compiler-js",
3-
"version": "20160713.0.1",
3+
"version": "20160713.0.2",
44
"description": "Check, compile, transpile, optimize and compress JavaScript with Closure Compiler in JS",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)