Skip to content

Commit 8a2b2da

Browse files
committed
Revert "Unpin react-sdk and js-sdk"
I messed this up and removed staticfiles.js by accident This reverts commit 21334ca.
1 parent 21334ca commit 8a2b2da

2 files changed

Lines changed: 23 additions & 2 deletions

File tree

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
"gfm.css": "^1.1.1",
4747
"highlight.js": "^9.0.0",
4848
"linkifyjs": "^2.0.0-beta.4",
49-
"matrix-js-sdk": "matrix-org/matrix-js-sdk#develop",
50-
"matrix-react-sdk": "matrix-org/matrix-react-sdk#develop",
49+
"matrix-js-sdk": "0.5.5",
50+
"matrix-react-sdk": "0.6.4-r1",
5151
"modernizr": "^3.1.0",
5252
"q": "^1.4.1",
5353
"react": "^15.2.1",

‎scripts/staticfiles.js‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env node
2+
3+
// copy static files from node_modules to the vector directory
4+
//
5+
6+
var fs = require('fs-extra');
7+
8+
function exists(f) {
9+
try {
10+
fs.statSync(f);
11+
return true;
12+
} catch(e) {
13+
return false;
14+
}
15+
}
16+
17+
const olm = 'node_modules/olm/olm.js';
18+
if (exists(olm)) {
19+
console.log("copy", olm, "-> vector");
20+
fs.copySync(olm, 'vector/olm.js');
21+
}

0 commit comments

Comments
 (0)