Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2021-06-03 22:59:07 +0300
committerGar <gar+gh@danger.computer>2021-06-10 20:10:35 +0300
commita4a0e68a9e34a4c99e10e4fb8c5f89d323a4192f (patch)
treece5c982c758a762b9980fc6a087031bd8953ce75 /node_modules/libnpmdiff
parentf130a81d62bf4f540ab252a09ff5a618827f9265 (diff)
chore: check less stuff into node_modules
We bundle our deps, but we don't need to bundle docs, changelogs, editorconfigs, test coverage reports, .github workflow definitions, lint configurations, and all the rest, which we never use. This cuts about 10% off of our publish artifact file size. ``` $ ls -laF npm-7.16.0-*.tgz -rw-r--r-- 1 isaacs staff 7174497 Jun 3 13:01 npm-7.16.0-release-next.tgz -rw-r--r-- 1 isaacs staff 6782377 Jun 3 13:00 npm-7.16.0-trim-node-modules.tgz $ ls -laF npm-7.16.0-*.tar -rw-r--r-- 1 isaacs staff 19020288 Jun 3 13:01 npm-7.16.0-release-next.tar -rw-r--r-- 1 isaacs staff 17474048 Jun 3 13:00 npm-7.16.0-trim-node-modules.tar ``` PR-URL: https://github.com/npm/cli/pull/3362 Credit: @isaacs Close: #3362 Reviewed-by: @nlf
Diffstat (limited to 'node_modules/libnpmdiff')
-rw-r--r--node_modules/libnpmdiff/CHANGELOG.md30
-rw-r--r--node_modules/libnpmdiff/README.md98
2 files changed, 0 insertions, 128 deletions
diff --git a/node_modules/libnpmdiff/CHANGELOG.md b/node_modules/libnpmdiff/CHANGELOG.md
deleted file mode 100644
index b93b15b7b..000000000
--- a/node_modules/libnpmdiff/CHANGELOG.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# Changelog
-
-## 2.0.3
-
-- fix name of options sent by the npm cli
-
-## 2.0.2
-
-- fix matching basename file filter
-
-## 2.0.1
-
-- fix for tarballs not listing folder names
-
-## 2.0.0
-
-- API rewrite:
- - normalized all options
- - specs to compare are now an array
-- fix context=0
-- added support to filtering by folder names
-
-## 1.0.1
-
-- fixed nameOnly option
-
-## 1.0.0
-
-- Initial release
-
diff --git a/node_modules/libnpmdiff/README.md b/node_modules/libnpmdiff/README.md
deleted file mode 100644
index bc260ad15..000000000
--- a/node_modules/libnpmdiff/README.md
+++ /dev/null
@@ -1,98 +0,0 @@
-# libnpmdiff
-
-[![npm version](https://img.shields.io/npm/v/libnpmdiff.svg)](https://npm.im/libnpmdiff)
-[![license](https://img.shields.io/npm/l/libnpmdiff.svg)](https://npm.im/libnpmdiff)
-[![GitHub Actions](https://github.com/npm/libnpmdiff/workflows/node-ci/badge.svg)](https://github.com/npm/libnpmdiff/actions?query=workflow%3Anode-ci)
-[![Coverage Status](https://coveralls.io/repos/github/npm/libnpmdiff/badge.svg?branch=main)](https://coveralls.io/github/npm/libnpmdiff?branch=main)
-
-The registry diff lib.
-
-## Table of Contents
-
-* [Example](#example)
-* [Install](#install)
-* [Contributing](#contributing)
-* [API](#api)
-* [LICENSE](#license)
-
-## Example
-
-```js
-const libdiff = require('libnpmdiff')
-
-const patch = await libdiff([
- 'abbrev@1.1.0',
- 'abbrev@1.1.1'
-])
-console.log(
- patch
-)
-```
-
-Returns:
-
-```patch
-diff --git a/package.json b/package.json
-index v1.1.0..v1.1.1 100644
---- a/package.json
-+++ b/package.json
-@@ -1,6 +1,6 @@
- {
- "name": "abbrev",
-- "version": "1.1.0",
-+ "version": "1.1.1",
- "description": "Like ruby's abbrev module, but in js",
- "author": "Isaac Z. Schlueter <i@izs.me>",
- "main": "abbrev.js",
-
-```
-
-## Install
-
-`$ npm install libnpmdiff`
-
-### Contributing
-
-The npm team enthusiastically welcomes contributions and project participation!
-There's a bunch of things you can do if you want to contribute! The
-[Contributor Guide](https://github.com/npm/cli/blob/latest/CONTRIBUTING.md)
-outlines the process for community interaction and contribution. Please don't
-hesitate to jump in if you'd like to, or even ask us questions if something
-isn't clear.
-
-All participants and maintainers in this project are expected to follow the
-[npm Code of Conduct](https://www.npmjs.com/policies/conduct), and just
-generally be excellent to each other.
-
-Please refer to the [Changelog](CHANGELOG.md) for project history details, too.
-
-Happy hacking!
-
-### API
-
-#### `> libnpmdif([ a, b ], [opts]) -> Promise<String>`
-
-Fetches the registry tarballs and compare files between a spec `a` and spec `b`. **npm** spec types are usually described in `<pkg-name>@<version>` form but multiple other types are alsos supported, for more info on valid specs take a look at [`npm-package-arg`](https://github.com/npm/npm-package-arg).
-
-**Options**:
-
-- `color <Boolean>`: Should add ANSI colors to string output? Defaults to `false`.
-- `tagVersionPrefix <Sring>`: What prefix should be used to define version numbers. Defaults to `v`
-- `diffUnified <Number>`: How many lines of code to print before/after each diff. Defaults to `3`.
-- `diffFiles <Array<String>>`: If set only prints patches for the files listed in this array (also accepts globs). Defaults to `undefined`.
-- `diffIgnoreAllSpace <Boolean>`: Whether or not should ignore changes in whitespace (very useful to avoid indentation changes extra diff lines). Defaults to `false`.
-- `diffNameOnly <Boolean>`: Prints only file names and no patch diffs. Defaults to `false`.
-- `diffNoPrefix <Boolean>`: If true then skips printing any prefixes in filenames. Defaults to `false`.
-- `diffSrcPrefix <String>`: Prefix to be used in the filenames from `a`. Defaults to `a/`.
-- `diffDstPrefix <String>`: Prefix to be used in the filenames from `b`. Defaults to `b/`.
-- `diffText <Boolean>`: Should treat all files as text and try to print diff for binary files. Defaults to `false`.
-- ...`cache`, `registry`, `where` and other common options accepted by [pacote](https://github.com/npm/pacote#options)
-
-Returns a `Promise` that fullfils with a `String` containing the resulting patch diffs.
-
-Throws an error if either `a` or `b` are missing or if trying to diff more than two specs.
-
-## LICENSE
-
-[ISC](./LICENSE)
-