From f756fe4d5d0db7053bfe6f56c52850088386c3a7 Mon Sep 17 00:00:00 2001 From: Brian Chen Date: Mon, 29 Nov 2021 17:11:23 +1100 Subject: [PATCH 1/5] create readme for cli --- cli/README.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 cli/README.md diff --git a/cli/README.md b/cli/README.md new file mode 100644 index 0000000000..a7f5fbe1bc --- /dev/null +++ b/cli/README.md @@ -0,0 +1,5 @@ +# flow-typed CLI + +The official CLI for managing community driven third party library [definitions](https://github.com/flow-typed/flow-typed/tree/master/definitions/npm) for [flowtype](https://flow.org/). + +Read our [documentation](https://flow-typed.github.io/flow-typed/#/) to [get started](https://flow-typed.github.io/flow-typed/#/quickstart) From 29a67f5b35c4a7df45cf9d53623b54119ffa1826 Mon Sep 17 00:00:00 2001 From: Brian Chen Date: Mon, 29 Nov 2021 17:12:04 +1100 Subject: [PATCH 2/5] add consistent period --- cli/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/README.md b/cli/README.md index a7f5fbe1bc..32e71a9b21 100644 --- a/cli/README.md +++ b/cli/README.md @@ -2,4 +2,4 @@ The official CLI for managing community driven third party library [definitions](https://github.com/flow-typed/flow-typed/tree/master/definitions/npm) for [flowtype](https://flow.org/). -Read our [documentation](https://flow-typed.github.io/flow-typed/#/) to [get started](https://flow-typed.github.io/flow-typed/#/quickstart) +Read our [documentation](https://flow-typed.github.io/flow-typed/#/) to [get started](https://flow-typed.github.io/flow-typed/#/quickstart). From 5a47736914301c0e9a5668501bc2103954f6fe8f Mon Sep 17 00:00:00 2001 From: Brian Chen Date: Mon, 29 Nov 2021 17:20:23 +1100 Subject: [PATCH 3/5] update some links that get published --- cli/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/package.json b/cli/package.json index 90048b5c0e..63e28a72cd 100644 --- a/cli/package.json +++ b/cli/package.json @@ -2,13 +2,13 @@ "name": "flow-typed", "description": "A repository of high quality flow type definitions", "license": "MIT", - "homepage": "https://github.com/flow-typed/flow-typed#readme", + "homepage": "https://flow-typed.github.io/flow-typed", "repository": { "type": "git", "url": "git+https://github.com/flow-typed/flow-typed.git" }, "bugs": { - "url": "https://github.com/flow-typed/flow-typed/issues" + "url": "https://github.com/flow-typed/flow-typed/issues/new/choose" }, "version": "3.5.0", "main": "dist/cli.js", From c3d1318e9b5e1a73a9b126e840c1d56472102fc1 Mon Sep 17 00:00:00 2001 From: Brian Chen Date: Tue, 30 Nov 2021 05:19:55 +1100 Subject: [PATCH 4/5] remove readme --- cli/README.md | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 cli/README.md diff --git a/cli/README.md b/cli/README.md deleted file mode 100644 index 32e71a9b21..0000000000 --- a/cli/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# flow-typed CLI - -The official CLI for managing community driven third party library [definitions](https://github.com/flow-typed/flow-typed/tree/master/definitions/npm) for [flowtype](https://flow.org/). - -Read our [documentation](https://flow-typed.github.io/flow-typed/#/) to [get started](https://flow-typed.github.io/flow-typed/#/quickstart). From cb004669143fb7ccdee0614406f589947c4cc61d Mon Sep 17 00:00:00 2001 From: Brian Chen Date: Tue, 30 Nov 2021 05:21:39 +1100 Subject: [PATCH 5/5] copy readme from root --- .gitignore | 1 + cli/package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index f028bb4a43..4569e8d725 100644 --- a/.gitignore +++ b/.gitignore @@ -34,6 +34,7 @@ cli/dist/* cli/.test-dir/* cli/.flow-bins-cache/* cli/package-lock.json +cli/README.md # Editors .vscode diff --git a/cli/package.json b/cli/package.json index 63e28a72cd..3ede6a74c7 100644 --- a/cli/package.json +++ b/cli/package.json @@ -21,7 +21,8 @@ "clean": "rimraf dist", "flow": "flow", "lint": "eslint .", - "prepublish": "mkdirp dist && yarn test", + "prepare": "mkdirp dist && yarn test", + "prepublishOnly": "cp ../README.md .", "test": "yarn clean && yarn build && yarn test-quick", "test-quick": "jest && yarn lint && yarn flow", "watch": "mkdirp dist && babel --source-maps --watch=./src --out-dir=./dist"