From 6936a0ccfffbf1b67ffb7f3b4605991e99220cb3 Mon Sep 17 00:00:00 2001 From: Brian Chen Date: Tue, 30 Nov 2021 08:42:42 +1100 Subject: [PATCH] [cli] Add a published readme (#4182) * create readme for cli * add consistent period * update some links that get published * remove readme * copy readme from root --- .gitignore | 1 + cli/package.json | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) 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 3ed5f35587..760f01d711 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", @@ -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"