From e20860d0caa5af7bca32332c18b3ea39bb183933 Mon Sep 17 00:00:00 2001 From: Jason Jean Date: Fri, 20 Oct 2023 13:06:37 -0400 Subject: [PATCH] fix(misc): publish legacy readmes (#19762) --- packages-legacy/cypress/project.json | 1 + packages-legacy/detox/project.json | 1 + packages-legacy/devkit/project.json | 1 + packages-legacy/esbuild/project.json | 1 + packages-legacy/eslint-plugin-nx/project.json | 1 + packages-legacy/expo/project.json | 1 + packages-legacy/express/project.json | 1 + packages-legacy/jest/project.json | 1 + packages-legacy/js/project.json | 1 + packages-legacy/linter-nx/project.json | 1 + packages-legacy/linter/project.json | 1 + packages-legacy/nest/project.json | 1 + packages-legacy/next/project.json | 1 + packages-legacy/node/project.json | 1 + packages-legacy/nx-plugin/project.json | 1 + packages-legacy/react-native/project.json | 1 + packages-legacy/react/project.json | 1 + packages-legacy/rollup/project.json | 1 + packages-legacy/storybook/project.json | 1 + packages-legacy/vite/project.json | 1 + packages-legacy/web/project.json | 1 + packages-legacy/webpack/project.json | 1 + packages-legacy/workspace/project.json | 1 + scripts/copy-readme.js | 2 ++ 24 files changed, 25 insertions(+) diff --git a/packages-legacy/cypress/project.json b/packages-legacy/cypress/project.json index 09130f53e6742..0f76be12c7a10 100644 --- a/packages-legacy/cypress/project.json +++ b/packages-legacy/cypress/project.json @@ -5,6 +5,7 @@ "projectType": "library", "targets": { "build": { + "outputs": ["{workspaceRoot}/build/packages/{projectName}/README.md"], "command": "node ./scripts/copy-readme.js cypress-legacy" }, "build-base": { diff --git a/packages-legacy/detox/project.json b/packages-legacy/detox/project.json index d45f4b8a43b64..b69b222051f7a 100644 --- a/packages-legacy/detox/project.json +++ b/packages-legacy/detox/project.json @@ -5,6 +5,7 @@ "projectType": "library", "targets": { "build": { + "outputs": ["{workspaceRoot}/build/packages/{projectName}/README.md"], "command": "node ./scripts/copy-readme.js detox-legacy" }, "build-base": { diff --git a/packages-legacy/devkit/project.json b/packages-legacy/devkit/project.json index d52296d0285c4..0a104864df242 100644 --- a/packages-legacy/devkit/project.json +++ b/packages-legacy/devkit/project.json @@ -5,6 +5,7 @@ "projectType": "library", "targets": { "build": { + "outputs": ["{workspaceRoot}/build/packages/{projectName}/README.md"], "command": "node ./scripts/copy-readme.js devkit-legacy" }, "build-base": { diff --git a/packages-legacy/esbuild/project.json b/packages-legacy/esbuild/project.json index 7db25464918e4..263144fa9f03a 100644 --- a/packages-legacy/esbuild/project.json +++ b/packages-legacy/esbuild/project.json @@ -5,6 +5,7 @@ "projectType": "library", "targets": { "build": { + "outputs": ["{workspaceRoot}/build/packages/{projectName}/README.md"], "command": "node ./scripts/copy-readme.js esbuild-legacy" }, "build-base": { diff --git a/packages-legacy/eslint-plugin-nx/project.json b/packages-legacy/eslint-plugin-nx/project.json index 337f08d421c59..d078dcfe2fdfd 100644 --- a/packages-legacy/eslint-plugin-nx/project.json +++ b/packages-legacy/eslint-plugin-nx/project.json @@ -5,6 +5,7 @@ "projectType": "library", "targets": { "build": { + "outputs": ["{workspaceRoot}/build/packages/{projectName}/README.md"], "command": "node ./scripts/copy-readme.js eslint-plugin-nx-legacy" }, "build-base": { diff --git a/packages-legacy/expo/project.json b/packages-legacy/expo/project.json index 98c733b338046..da3af54fe9eec 100644 --- a/packages-legacy/expo/project.json +++ b/packages-legacy/expo/project.json @@ -5,6 +5,7 @@ "projectType": "library", "targets": { "build": { + "outputs": ["{workspaceRoot}/build/packages/{projectName}/README.md"], "command": "node ./scripts/copy-readme.js expo-legacy" }, "build-base": { diff --git a/packages-legacy/express/project.json b/packages-legacy/express/project.json index 3c01e640f3d70..3474f9d0bf727 100644 --- a/packages-legacy/express/project.json +++ b/packages-legacy/express/project.json @@ -5,6 +5,7 @@ "projectType": "library", "targets": { "build": { + "outputs": ["{workspaceRoot}/build/packages/{projectName}/README.md"], "command": "node ./scripts/copy-readme.js express-legacy" }, "build-base": { diff --git a/packages-legacy/jest/project.json b/packages-legacy/jest/project.json index 180222f779cf7..2fced7750fb7e 100644 --- a/packages-legacy/jest/project.json +++ b/packages-legacy/jest/project.json @@ -5,6 +5,7 @@ "projectType": "library", "targets": { "build": { + "outputs": ["{workspaceRoot}/build/packages/{projectName}/README.md"], "command": "node ./scripts/copy-readme.js jest-legacy" }, "build-base": { diff --git a/packages-legacy/js/project.json b/packages-legacy/js/project.json index e6a23f321b425..40bdfee0c20d2 100644 --- a/packages-legacy/js/project.json +++ b/packages-legacy/js/project.json @@ -5,6 +5,7 @@ "projectType": "library", "targets": { "build": { + "outputs": ["{workspaceRoot}/build/packages/{projectName}/README.md"], "command": "node ./scripts/copy-readme.js js-legacy" }, "build-base": { diff --git a/packages-legacy/linter-nx/project.json b/packages-legacy/linter-nx/project.json index 4c6533fa9717d..68639f57343ba 100644 --- a/packages-legacy/linter-nx/project.json +++ b/packages-legacy/linter-nx/project.json @@ -5,6 +5,7 @@ "projectType": "library", "targets": { "build": { + "outputs": ["{workspaceRoot}/build/packages/{projectName}/README.md"], "command": "node ./scripts/copy-readme.js linter-nx-legacy" }, "build-base": { diff --git a/packages-legacy/linter/project.json b/packages-legacy/linter/project.json index 735f0117810d7..9cbaa08d31c21 100644 --- a/packages-legacy/linter/project.json +++ b/packages-legacy/linter/project.json @@ -5,6 +5,7 @@ "projectType": "library", "targets": { "build": { + "outputs": ["{workspaceRoot}/build/packages/{projectName}/README.md"], "command": "node ./scripts/copy-readme.js linter-legacy" }, "build-base": { diff --git a/packages-legacy/nest/project.json b/packages-legacy/nest/project.json index d6891825bb9ce..a724e16a187f4 100644 --- a/packages-legacy/nest/project.json +++ b/packages-legacy/nest/project.json @@ -5,6 +5,7 @@ "projectType": "library", "targets": { "build": { + "outputs": ["{workspaceRoot}/build/packages/{projectName}/README.md"], "command": "node ./scripts/copy-readme.js nest-legacy" }, "build-base": { diff --git a/packages-legacy/next/project.json b/packages-legacy/next/project.json index 8521289cf1a6e..b1c4e348a4395 100644 --- a/packages-legacy/next/project.json +++ b/packages-legacy/next/project.json @@ -5,6 +5,7 @@ "projectType": "library", "targets": { "build": { + "outputs": ["{workspaceRoot}/build/packages/{projectName}/README.md"], "command": "node ./scripts/copy-readme.js next-legacy" }, "build-base": { diff --git a/packages-legacy/node/project.json b/packages-legacy/node/project.json index f1d11744cd309..3848c56792db8 100644 --- a/packages-legacy/node/project.json +++ b/packages-legacy/node/project.json @@ -5,6 +5,7 @@ "projectType": "library", "targets": { "build": { + "outputs": ["{workspaceRoot}/build/packages/{projectName}/README.md"], "command": "node ./scripts/copy-readme.js node-legacy" }, "build-base": { diff --git a/packages-legacy/nx-plugin/project.json b/packages-legacy/nx-plugin/project.json index cf8c473f4b6e7..ab48206981717 100644 --- a/packages-legacy/nx-plugin/project.json +++ b/packages-legacy/nx-plugin/project.json @@ -5,6 +5,7 @@ "projectType": "library", "targets": { "build": { + "outputs": ["{workspaceRoot}/build/packages/{projectName}/README.md"], "command": "node ./scripts/copy-readme.js nx-plugin-legacy" }, "build-base": { diff --git a/packages-legacy/react-native/project.json b/packages-legacy/react-native/project.json index 30ba2ac207317..5adec4fb05875 100644 --- a/packages-legacy/react-native/project.json +++ b/packages-legacy/react-native/project.json @@ -5,6 +5,7 @@ "projectType": "library", "targets": { "build": { + "outputs": ["{workspaceRoot}/build/packages/{projectName}/README.md"], "command": "node ./scripts/copy-readme.js react-native-legacy" }, "build-base": { diff --git a/packages-legacy/react/project.json b/packages-legacy/react/project.json index 3aa57ca765556..574c1fdd43769 100644 --- a/packages-legacy/react/project.json +++ b/packages-legacy/react/project.json @@ -5,6 +5,7 @@ "projectType": "library", "targets": { "build": { + "outputs": ["{workspaceRoot}/build/packages/{projectName}/README.md"], "command": "node ./scripts/copy-readme.js react-legacy" }, "build-base": { diff --git a/packages-legacy/rollup/project.json b/packages-legacy/rollup/project.json index 4c5cc1a906f4f..9aedf4f410343 100644 --- a/packages-legacy/rollup/project.json +++ b/packages-legacy/rollup/project.json @@ -5,6 +5,7 @@ "projectType": "library", "targets": { "build": { + "outputs": ["{workspaceRoot}/build/packages/{projectName}/README.md"], "command": "node ./scripts/copy-readme.js rollup-legacy" }, "build-base": { diff --git a/packages-legacy/storybook/project.json b/packages-legacy/storybook/project.json index 110d8ff6a9c21..3daa8927b0432 100644 --- a/packages-legacy/storybook/project.json +++ b/packages-legacy/storybook/project.json @@ -5,6 +5,7 @@ "projectType": "library", "targets": { "build": { + "outputs": ["{workspaceRoot}/build/packages/{projectName}/README.md"], "command": "node ./scripts/copy-readme.js storybook-legacy" }, "build-base": { diff --git a/packages-legacy/vite/project.json b/packages-legacy/vite/project.json index 7d93621857c06..9a86df28e814e 100644 --- a/packages-legacy/vite/project.json +++ b/packages-legacy/vite/project.json @@ -5,6 +5,7 @@ "projectType": "library", "targets": { "build": { + "outputs": ["{workspaceRoot}/build/packages/{projectName}/README.md"], "command": "node ./scripts/copy-readme.js vite-legacy" }, "build-base": { diff --git a/packages-legacy/web/project.json b/packages-legacy/web/project.json index 3416e3a61ccc7..2b5255fd9c6e0 100644 --- a/packages-legacy/web/project.json +++ b/packages-legacy/web/project.json @@ -5,6 +5,7 @@ "projectType": "library", "targets": { "build": { + "outputs": ["{workspaceRoot}/build/packages/{projectName}/README.md"], "command": "node ./scripts/copy-readme.js web-legacy" }, "build-base": { diff --git a/packages-legacy/webpack/project.json b/packages-legacy/webpack/project.json index 72a7dbb5c3ccd..80405b535acc1 100644 --- a/packages-legacy/webpack/project.json +++ b/packages-legacy/webpack/project.json @@ -5,6 +5,7 @@ "projectType": "library", "targets": { "build": { + "outputs": ["{workspaceRoot}/build/packages/{projectName}/README.md"], "command": "node ./scripts/copy-readme.js webpack-legacy" }, "build-base": { diff --git a/packages-legacy/workspace/project.json b/packages-legacy/workspace/project.json index cdadff38b9746..e7403b6d92a36 100644 --- a/packages-legacy/workspace/project.json +++ b/packages-legacy/workspace/project.json @@ -5,6 +5,7 @@ "projectType": "library", "targets": { "build": { + "outputs": ["{workspaceRoot}/build/packages/{projectName}/README.md"], "command": "node ./scripts/copy-readme.js workspace-legacy" }, "build-base": { diff --git a/scripts/copy-readme.js b/scripts/copy-readme.js index 4a896442e9ed8..0865a4988bf4b 100644 --- a/scripts/copy-readme.js +++ b/scripts/copy-readme.js @@ -23,4 +23,6 @@ r = r.replace( fs.readFileSync('scripts/readme-fragments/resources.md') ); +console.log('WRITING', `build/packages/${p}/README.md`); + fs.writeFileSync(`build/packages/${p}/README.md`, r);