Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mitigate Native installs even for initial npm install ember-cli with …
…more aggressive testem/engine.io/ws patching. also lock tested, so we mitigate atleast some of the drift.
- Loading branch information
1 parent
b1a0f22
commit d406791
Showing
3 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env node | ||
/* | ||
* patch engion.io-client to use any XMLHTTPRequest, but then bundle the one it | ||
* wanted in ember-cli’s tarball | ||
* | ||
* pending: https://github.com/socketio/engine.io-client/issues/405 | ||
*/ | ||
|
||
var fs = require('fs'); | ||
var packagePath = __dirname + '/../node_modules/testem/node_modules/socket.io/node_modules/engine.io/node_modules/ws/package.json'; | ||
var pkg = JSON.parse(fs.readFileSync(packagePath, 'UTF-8')); | ||
|
||
delete pkg.optionalDependencies; | ||
delete pkg.dependencies['bufferutil']; | ||
delete pkg.dependencies['utf-8-validate']; | ||
console.log(packagePath); | ||
fs.writeFileSync(packagePath, JSON.stringify(pkg)); |