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/stringify-package
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/stringify-package')
-rw-r--r--node_modules/stringify-package/CHANGELOG.md16
-rw-r--r--node_modules/stringify-package/README.md55
2 files changed, 0 insertions, 71 deletions
diff --git a/node_modules/stringify-package/CHANGELOG.md b/node_modules/stringify-package/CHANGELOG.md
deleted file mode 100644
index 2de91768d..000000000
--- a/node_modules/stringify-package/CHANGELOG.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# Change Log
-
-All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
-
-<a name="1.0.1"></a>
-## [1.0.1](https://github.com/npm/stringify-package/compare/v1.0.0...v1.0.1) (2019-09-30)
-
-
-### Bug Fixes
-
-* strict comparison ([0c5675f](https://github.com/npm/stringify-package/commit/0c5675f)), closes [#2](https://github.com/npm/stringify-package/issues/2)
-
-
-
-<a name="1.0.0"></a>
-# 1.0.0 (2018-07-18)
diff --git a/node_modules/stringify-package/README.md b/node_modules/stringify-package/README.md
deleted file mode 100644
index 1ba4f5a33..000000000
--- a/node_modules/stringify-package/README.md
+++ /dev/null
@@ -1,55 +0,0 @@
-# stringify-package [![npm version](https://img.shields.io/npm/v/stringify-package.svg)](https://npm.im/stringify-package) [![license](https://img.shields.io/npm/l/stringify-package.svg)](https://npm.im/stringify-package) [![Travis](https://img.shields.io/travis/npm/stringify-package/latest.svg)](https://travis-ci.org/npm/stringify-package) [![AppVeyor](https://img.shields.io/appveyor/ci/npm/stringify-package/latest.svg)](https://ci.appveyor.com/project/npm/stringify-package) [![Coverage Status](https://coveralls.io/repos/github/npm/stringify-package/badge.svg?branch=latest)](https://coveralls.io/github/npm/stringify-package?branch=latest)
-
-[`stringify-package`](https://github.com/npm/stringify-package) is a standalone
-library for writing out package data as a JSON file. It is extracted from npm.
-
-## Install
-
-`$ npm install stringify-package`
-
-## Table of Contents
-
-* [Example](#example)
-* [Features](#features)
-* [Contributing](#contributing)
-* [API](#api)
- * [`stringifyPackage`](#stringifypackage)
-
-### Example
-
-```javascript
-const fs = require('fs')
-const pkg = { /* ... */ }
-
-fs.writeFile('package.json', stringifyPackage(pkg), 'utf8', cb(err) => {
- // ...
-})
-```
-
-### Features
-
-* Ensures consistent file indentation
- To match existing file indentation,
- [`detect-indent`](https://npm.im/detect-indent) is recommended.
-
-* Ensures consistent newlines
- To match existing newline characters,
- [`detect-newline`](https://npm.im/detect-newline) is recommended.
-
-### 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](CONTRIBUTING.md) has all the information you need for everything from
-reporting bugs to contributing entire new features. Please don't hesitate to
-jump in if you'd like to, or even ask us questions if something isn't clear.
-
-### API
-
-### <a name="stringifypackage"></a> `> stringifyPackage(data, indent, newline) -> String`
-
-#### Arguments
-
-* `data` - the package data as an object to be stringified
-* `indent` - the number of spaces to use for each level of indentation (defaults to 2)
-* `newline` - the character(s) to be used as a line terminator