registry-sync
Advanced tools
Comparing version 2.4.9 to 2.4.10
{ | ||
"name": "registry-sync", | ||
"version": "2.4.9", | ||
"version": "2.4.10", | ||
"description": "synchronize a remote npm registry for private use", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/heikkipora/registry-sync", |
@@ -46,2 +46,13 @@ # registry-sync | ||
### Creating a separate lockfile for synchronization | ||
In some cases `npm` might not include all optional packages that are needed for all platforms to `package-lock.json`, depending on which OS you used to create the lockfile. | ||
In this case it might be useful to copy the `package.json` that you want to synchronize as a local repository to somewhere else and create a new cross platform `package-lock.json` by running: | ||
``` | ||
npm install --force --package-lock-only | ||
``` | ||
After this you can pass the new lockfile to `registry-sync`. | ||
## Changelog | ||
@@ -48,0 +59,0 @@ |
@@ -11,2 +11,4 @@ "use strict"; | ||
var _url = require("url"); | ||
_commander.default.version(require(`${__dirname}/../package.json`).version).requiredOption('--root <path>', 'Path to save NPM package tarballs and metadata to').requiredOption('--manifest <file>', 'Path to a package-lock.json file to use as catalog for mirrored NPM packages.').requiredOption('--localUrl <url>', 'URL to use as root in stored package metadata (i.e. where folder defined as --root will be exposed at)').requiredOption('--binaryAbi <list>', 'Comma-separated list of node C++ ABI numbers to download pre-built binaries for. See NODE_MODULE_VERSION column in https://nodejs.org/en/download/releases/').requiredOption('--binaryArch <list>', 'Comma-separated list of CPU architectures to download pre-built binaries for. Valid values: arm, ia32, and x64').requiredOption('--binaryPlatform <list>', 'Comma-separated list of OS platforms to download pre-built binaries for. Valid values: linux, darwin, win32, sunos, freebsd, openbsd, and aix').option('--registryUrl [url]', 'Optional URL to use as NPM registry when fetching packages. Default value is https://registry.npmjs.org').option('--dontEnforceHttps', 'Disable the default behavior of downloading tarballs over HTTPS (will use whichever protocol is defined in the registry metadata)').option('--includeDev', 'Include also packages found from devDependencies section of the --manifest').parse(process.argv); | ||
@@ -27,3 +29,3 @@ | ||
const options = { | ||
localUrl: new URL(_commander.default.localUrl), | ||
localUrl: new _url.URL(_commander.default.localUrl), | ||
manifest: _commander.default.manifest, | ||
@@ -30,0 +32,0 @@ prebuiltBinaryProperties, |
33012
551
65