aboutsummaryrefslogtreecommitdiff
path: root/fname_data.json
diff options
context:
space:
mode:
authorStef Gijsberts <stef@stef.link>2021-10-31 23:56:26 +0100
committerYuchen Pei <hi@ypei.me>2021-11-09 16:06:05 +1100
commit0f6fbdaa4dd0aed4e830da244f7bf1b6ceaaaf26 (patch)
tree6045fc9d100d19fc08184ed370d41a701b200d68 /fname_data.json
parentf8d2fdd802b66767d9bc80685ebdac5740bdb8dc (diff)
Fixing json files so that librejs builds again
This is needed to build the project using Webpack v2 or v3 [0]. The following commands were used for the conversion: $ mv licenses.json licenses.old.json $ cat licenses.old.json \ | sed $'s/module.exports = //g' \ | tr \' \" | tr -d ';' \ | sed $'s/licenses: /"licenses": /g' \ > licenses.json $ mv fname_data.json fname_data.old.json $ cat fname_data.old.json \ | sed $'s/module.exports = //g'\ | tr \' \" \ | tr -d ';' \ | sed $'s/fname_data : /"fname_data": /g' \ > fname_data.json [0]: https://webpack.js.org/migrate/3/#json-loader-is-not-required-anymore Thanks also to Andrea G. Monaco for an identical patch: <https://lists.gnu.org/archive/html/bug-librejs/2021-05/msg00002.html>
Diffstat (limited to 'fname_data.json')
-rw-r--r--fname_data.json6
1 files changed, 3 insertions, 3 deletions
diff --git a/fname_data.json b/fname_data.json
index e8ab932..5606007 100644
--- a/fname_data.json
+++ b/fname_data.json
@@ -1,5 +1,5 @@
-module.exports = {
- fname_data : {
+{
+ "fname_data": {
"WebGLShader": true,
"WebGLShaderPrecisionFormat": true,
"WebGLQuery": true,
@@ -829,4 +829,4 @@ module.exports = {
"NodeList": true,
"StopIteration": true
}
-};
+}