From f8b40dd8d056b074f24a397cc6a12e7735e4f920 Mon Sep 17 00:00:00 2001 From: Sven SAULEAU Date: Mon, 3 Sep 2018 07:48:21 +0200 Subject: [PATCH] Revert "Merge pull request #58 from Rich-Harris/fix-npmjs-tls-issues" This reverts commit 87b3fe29dcba1f85884cde72f395fe0ad1b27246, reversing changes made to 9b68a000e87904cc7fc907edf8cfe9d1bfb599fb. --- config.js | 5 +---- server/child-processes/create-bundle.js | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/config.js b/config.js index 14dfc9e..45fc25e 100644 --- a/config.js +++ b/config.js @@ -3,10 +3,7 @@ const sander = require( 'sander' ); exports.root = path.resolve( __dirname ); exports.tmpdir = process.env.NOW ? `/tmp` : `${exports.root}/.tmp`; - -// TODO(sven): this is a workarround https://twitter.com/svensauleau/status/1035880023964766209 -// exports.registry = 'https://registry.npmjs.org'; -exports.registry = 'https://registry.yarnpkg.com'; +exports.registry = 'https://registry.npmjs.org'; if ( !process.env.NOW ) { try { diff --git a/server/child-processes/create-bundle.js b/server/child-processes/create-bundle.js index ed218f0..f34ee47 100644 --- a/server/child-processes/create-bundle.js +++ b/server/child-processes/create-bundle.js @@ -56,10 +56,7 @@ async function createBundle ({ hash, pkg, version, deep, query }) { } function fetchAndExtract ( pkg, version, dir ) { - let tarUrl = pkg.versions[ version ].dist.tarball; - - // TODO(sven): this is a workarround https://twitter.com/svensauleau/status/1035880023964766209 - tarUrl = tarUrl.replace("npmjs.org", "yarnpkg.com"); + const tarUrl = pkg.versions[ version ].dist.tarball; info( `[${pkg.name}] fetching ${tarUrl}` );