Skip to content

Commit

Permalink
Merge pull request #59 from Rich-Harris/feat-revert-use-npm
Browse files Browse the repository at this point in the history
Use npm again
  • Loading branch information
xtuc authored Sep 3, 2018
2 parents 5a4f03f + f8b40dd commit 65409b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
5 changes: 1 addition & 4 deletions server/child-processes/create-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}` );

Expand Down

0 comments on commit 65409b9

Please sign in to comment.