aboutsummaryrefslogtreecommitdiffstats
path: root/testing/emscripten/closurecompiler-externs-path.patch
blob: d760156c8de13696fd9cad1873f4df220747ff09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
From: Jakub Jirutka <jakub@jirutka.cz>
Date: Mon, 4 Apr 2017 19:30:00 +0200
Subject: [PATCH] Fix path to closurecompiler-externs

We ship closurecompiler-externs in package node-closurecompiler-externs.

--- a/tools/shared.py
+++ b/tools/shared.py
@@ -2130,7 +2130,7 @@
         raise Exception('closure compiler check failed')
 
       CLOSURE_EXTERNS = path_from_root('src', 'closure-externs.js')
-      NODE_EXTERNS_BASE = path_from_root('third_party', 'closure-compiler', 'node-externs')
+      NODE_EXTERNS_BASE = '/usr/lib/node_modules/closurecompiler-externs'
       NODE_EXTERNS = os.listdir(NODE_EXTERNS_BASE)
       NODE_EXTERNS = [os.path.join(NODE_EXTERNS_BASE, name) for name in NODE_EXTERNS
                       if name.endswith('.js')]