Rename server => modules
This commit is contained in:
parent
135da0fdc5
commit
bef8b2ebee
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
@ -1,6 +1,6 @@
|
|||
// Use babel to compile JSX on the fly.
|
||||
require("babel-register")({
|
||||
only: /server\/client/
|
||||
only: /modules\/client/
|
||||
});
|
||||
|
||||
// Ignore require("*.css") calls.
|
|
@ -1,7 +1,7 @@
|
|||
const URL = require("whatwg-url");
|
||||
const warning = require("warning");
|
||||
|
||||
const origin = require("../config").origin;
|
||||
const origin = require("../serverConfig").origin;
|
||||
|
||||
const bareIdentifierFormat = /^((?:@[^/]+\/)?[^/]+)(\/.*)?$/;
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
const url = require("url");
|
||||
const https = require("https");
|
||||
|
||||
const config = require("../config");
|
||||
const serverConfig = require("../serverConfig");
|
||||
const bufferStream = require("./bufferStream");
|
||||
const agent = require("./registryAgent");
|
||||
|
||||
|
@ -16,7 +16,7 @@ function fetchNpmPackageInfo(packageName) {
|
|||
? `@${encodeURIComponent(packageName.substring(1))}`
|
||||
: encodeURIComponent(packageName);
|
||||
|
||||
const infoURL = `${config.registryURL}/${encodedPackageName}`;
|
||||
const infoURL = `${serverConfig.registryURL}/${encodedPackageName}`;
|
||||
|
||||
console.log(
|
||||
`info: Fetching package info for ${packageName} from ${infoURL}`
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue