Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Readme.md from bundle #2058

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Commander.js

[![Build Status](https://github.com/tj/commander.js/workflows/build/badge.svg)](https://github.com/tj/commander.js/actions?query=workflow%3A%22build%22)
[![NPM Version](http://img.shields.io/npm/v/commander.svg?style=flat)](https://www.npmjs.org/package/commander)
[![NPM Version](https://img.shields.io/npm/v/commander.svg?style=flat)](https://www.npmjs.org/package/commander)
[![NPM Downloads](https://img.shields.io/npm/dm/commander.svg?style=flat)](https://npmcharts.com/compare/commander?minimal=true)
[![Install Size](https://packagephobia.now.sh/badge?p=commander)](https://packagephobia.now.sh/result?p=commander)

Expand Down
7 changes: 7 additions & 0 deletions Readme_npm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Commander.js

The complete solution for [node.js](http://nodejs.org) command-line interfaces.

...

Read more on [Github](https://github.com/tj/commander.js).
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
"test-esm": "node ./tests/esm-imports-test.mjs",
"typecheck-ts": "tsd && tsc -p tsconfig.ts.json",
"typecheck-js": "tsc -p tsconfig.js.json",
"test-all": "npm run test && npm run lint && npm run typecheck-js && npm run test-esm"
"test-all": "npm run test && npm run lint && npm run typecheck-js && npm run test-esm",
"prepack": "node -p 'var fs = require(`fs`); fs.renameSync(`./Readme.md`, `./_Readme.md`); fs.renameSync(`./Readme_npm.md`, `./Readme.md`)'",
"postpack": "node -p 'var fs = require(`fs`); fs.renameSync(`./Readme.md`, `./Readme_npm.md`); fs.renameSync(`./_Readme.md`, `./Readme.md`);'"
},
"files": [
"index.js",
Expand Down