fix(misc): publish legacy readmes (#16678)
This commit is contained in:
parent
c51e6d5b42
commit
9de97d0cfe
@ -45,7 +45,14 @@
|
|||||||
"dependsOn": ["build-ng", "build-base", "^build"],
|
"dependsOn": ["build-ng", "build-base", "^build"],
|
||||||
"executor": "nx:run-commands",
|
"executor": "nx:run-commands",
|
||||||
"options": {
|
"options": {
|
||||||
"command": "echo 'Built angular-legacy'"
|
"commands": [
|
||||||
|
{
|
||||||
|
"command": "node ./scripts/copy-readme.js angular-legacy"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"command": "echo 'Built angular-legacy'"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -5,8 +5,11 @@
|
|||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {
|
"targets": {
|
||||||
"build": {
|
"build": {
|
||||||
|
"command": "node ./scripts/copy-readme.js cypress-legacy"
|
||||||
|
},
|
||||||
|
"build-base": {
|
||||||
"executor": "@nx/js:tsc",
|
"executor": "@nx/js:tsc",
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build-base"],
|
||||||
"options": {
|
"options": {
|
||||||
"main": "packages-legacy/cypress/index.ts",
|
"main": "packages-legacy/cypress/index.ts",
|
||||||
"tsConfig": "packages-legacy/cypress/tsconfig.json",
|
"tsConfig": "packages-legacy/cypress/tsconfig.json",
|
||||||
|
|||||||
@ -5,8 +5,11 @@
|
|||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {
|
"targets": {
|
||||||
"build": {
|
"build": {
|
||||||
|
"command": "node ./scripts/copy-readme.js detox-legacy"
|
||||||
|
},
|
||||||
|
"build-base": {
|
||||||
"executor": "@nx/js:tsc",
|
"executor": "@nx/js:tsc",
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build-base"],
|
||||||
"options": {
|
"options": {
|
||||||
"main": "packages-legacy/detox/index.ts",
|
"main": "packages-legacy/detox/index.ts",
|
||||||
"tsConfig": "packages-legacy/detox/tsconfig.json",
|
"tsConfig": "packages-legacy/detox/tsconfig.json",
|
||||||
|
|||||||
@ -5,8 +5,11 @@
|
|||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {
|
"targets": {
|
||||||
"build": {
|
"build": {
|
||||||
|
"command": "node ./scripts/copy-readme.js devkit-legacy"
|
||||||
|
},
|
||||||
|
"build-base": {
|
||||||
"executor": "@nx/js:tsc",
|
"executor": "@nx/js:tsc",
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build-base"],
|
||||||
"options": {
|
"options": {
|
||||||
"main": "packages-legacy/devkit/index.ts",
|
"main": "packages-legacy/devkit/index.ts",
|
||||||
"tsConfig": "packages-legacy/devkit/tsconfig.json",
|
"tsConfig": "packages-legacy/devkit/tsconfig.json",
|
||||||
|
|||||||
@ -5,8 +5,11 @@
|
|||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {
|
"targets": {
|
||||||
"build": {
|
"build": {
|
||||||
|
"command": "node ./scripts/copy-readme.js esbuild-legacy"
|
||||||
|
},
|
||||||
|
"build-base": {
|
||||||
"executor": "@nx/js:tsc",
|
"executor": "@nx/js:tsc",
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build-base"],
|
||||||
"options": {
|
"options": {
|
||||||
"main": "packages-legacy/esbuild/index.ts",
|
"main": "packages-legacy/esbuild/index.ts",
|
||||||
"tsConfig": "packages-legacy/esbuild/tsconfig.json",
|
"tsConfig": "packages-legacy/esbuild/tsconfig.json",
|
||||||
|
|||||||
@ -5,8 +5,11 @@
|
|||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {
|
"targets": {
|
||||||
"build": {
|
"build": {
|
||||||
|
"command": "node ./scripts/copy-readme.js eslint-plugin-nx-legacy"
|
||||||
|
},
|
||||||
|
"build-base": {
|
||||||
"executor": "@nx/js:tsc",
|
"executor": "@nx/js:tsc",
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build-base"],
|
||||||
"options": {
|
"options": {
|
||||||
"main": "packages-legacy/eslint-plugin-nx/index.ts",
|
"main": "packages-legacy/eslint-plugin-nx/index.ts",
|
||||||
"tsConfig": "packages-legacy/eslint-plugin-nx/tsconfig.json",
|
"tsConfig": "packages-legacy/eslint-plugin-nx/tsconfig.json",
|
||||||
|
|||||||
@ -5,8 +5,11 @@
|
|||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {
|
"targets": {
|
||||||
"build": {
|
"build": {
|
||||||
|
"command": "node ./scripts/copy-readme.js expo-legacy"
|
||||||
|
},
|
||||||
|
"build-base": {
|
||||||
"executor": "@nx/js:tsc",
|
"executor": "@nx/js:tsc",
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build-base"],
|
||||||
"options": {
|
"options": {
|
||||||
"main": "packages-legacy/expo/index.ts",
|
"main": "packages-legacy/expo/index.ts",
|
||||||
"tsConfig": "packages-legacy/expo/tsconfig.json",
|
"tsConfig": "packages-legacy/expo/tsconfig.json",
|
||||||
|
|||||||
@ -5,8 +5,11 @@
|
|||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {
|
"targets": {
|
||||||
"build": {
|
"build": {
|
||||||
|
"command": "node ./scripts/copy-readme.js express-legacy"
|
||||||
|
},
|
||||||
|
"build-base": {
|
||||||
"executor": "@nx/js:tsc",
|
"executor": "@nx/js:tsc",
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build-base"],
|
||||||
"options": {
|
"options": {
|
||||||
"main": "packages-legacy/express/index.ts",
|
"main": "packages-legacy/express/index.ts",
|
||||||
"tsConfig": "packages-legacy/express/tsconfig.json",
|
"tsConfig": "packages-legacy/express/tsconfig.json",
|
||||||
|
|||||||
@ -5,8 +5,11 @@
|
|||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {
|
"targets": {
|
||||||
"build": {
|
"build": {
|
||||||
|
"command": "node ./scripts/copy-readme.js jest-legacy"
|
||||||
|
},
|
||||||
|
"build-base": {
|
||||||
"executor": "@nx/js:tsc",
|
"executor": "@nx/js:tsc",
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build-base"],
|
||||||
"options": {
|
"options": {
|
||||||
"main": "packages-legacy/jest/index.ts",
|
"main": "packages-legacy/jest/index.ts",
|
||||||
"tsConfig": "packages-legacy/jest/tsconfig.json",
|
"tsConfig": "packages-legacy/jest/tsconfig.json",
|
||||||
|
|||||||
@ -5,8 +5,11 @@
|
|||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {
|
"targets": {
|
||||||
"build": {
|
"build": {
|
||||||
|
"command": "node ./scripts/copy-readme.js js-legacy"
|
||||||
|
},
|
||||||
|
"build-base": {
|
||||||
"executor": "@nx/js:tsc",
|
"executor": "@nx/js:tsc",
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build-base"],
|
||||||
"options": {
|
"options": {
|
||||||
"main": "packages-legacy/js/index.ts",
|
"main": "packages-legacy/js/index.ts",
|
||||||
"tsConfig": "packages-legacy/js/tsconfig.json",
|
"tsConfig": "packages-legacy/js/tsconfig.json",
|
||||||
|
|||||||
@ -5,8 +5,11 @@
|
|||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {
|
"targets": {
|
||||||
"build": {
|
"build": {
|
||||||
|
"command": "node ./scripts/copy-readme.js linter-legacy"
|
||||||
|
},
|
||||||
|
"build-base": {
|
||||||
"executor": "@nx/js:tsc",
|
"executor": "@nx/js:tsc",
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build-base"],
|
||||||
"options": {
|
"options": {
|
||||||
"main": "packages-legacy/linter/index.ts",
|
"main": "packages-legacy/linter/index.ts",
|
||||||
"tsConfig": "packages-legacy/linter/tsconfig.json",
|
"tsConfig": "packages-legacy/linter/tsconfig.json",
|
||||||
|
|||||||
@ -5,8 +5,11 @@
|
|||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {
|
"targets": {
|
||||||
"build": {
|
"build": {
|
||||||
|
"command": "node ./scripts/copy-readme.js nest-legacy"
|
||||||
|
},
|
||||||
|
"build-base": {
|
||||||
"executor": "@nx/js:tsc",
|
"executor": "@nx/js:tsc",
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build-base"],
|
||||||
"options": {
|
"options": {
|
||||||
"main": "packages-legacy/nest/index.ts",
|
"main": "packages-legacy/nest/index.ts",
|
||||||
"tsConfig": "packages-legacy/nest/tsconfig.json",
|
"tsConfig": "packages-legacy/nest/tsconfig.json",
|
||||||
|
|||||||
@ -5,8 +5,11 @@
|
|||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {
|
"targets": {
|
||||||
"build": {
|
"build": {
|
||||||
|
"command": "node ./scripts/copy-readme.js next-legacy"
|
||||||
|
},
|
||||||
|
"build-base": {
|
||||||
"executor": "@nx/js:tsc",
|
"executor": "@nx/js:tsc",
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build-base"],
|
||||||
"options": {
|
"options": {
|
||||||
"main": "packages-legacy/next/index.ts",
|
"main": "packages-legacy/next/index.ts",
|
||||||
"tsConfig": "packages-legacy/next/tsconfig.json",
|
"tsConfig": "packages-legacy/next/tsconfig.json",
|
||||||
|
|||||||
@ -5,8 +5,11 @@
|
|||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {
|
"targets": {
|
||||||
"build": {
|
"build": {
|
||||||
|
"command": "node ./scripts/copy-readme.js node-legacy"
|
||||||
|
},
|
||||||
|
"build-base": {
|
||||||
"executor": "@nx/js:tsc",
|
"executor": "@nx/js:tsc",
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build-base"],
|
||||||
"options": {
|
"options": {
|
||||||
"main": "packages-legacy/node/index.ts",
|
"main": "packages-legacy/node/index.ts",
|
||||||
"tsConfig": "packages-legacy/node/tsconfig.json",
|
"tsConfig": "packages-legacy/node/tsconfig.json",
|
||||||
|
|||||||
@ -5,8 +5,11 @@
|
|||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {
|
"targets": {
|
||||||
"build": {
|
"build": {
|
||||||
|
"command": "node ./scripts/copy-readme.js nx-plugin-legacy"
|
||||||
|
},
|
||||||
|
"build-base": {
|
||||||
"executor": "@nx/js:tsc",
|
"executor": "@nx/js:tsc",
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build-base"],
|
||||||
"options": {
|
"options": {
|
||||||
"main": "packages-legacy/nx-plugin/index.ts",
|
"main": "packages-legacy/nx-plugin/index.ts",
|
||||||
"tsConfig": "packages-legacy/nx-plugin/tsconfig.json",
|
"tsConfig": "packages-legacy/nx-plugin/tsconfig.json",
|
||||||
|
|||||||
@ -5,8 +5,11 @@
|
|||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {
|
"targets": {
|
||||||
"build": {
|
"build": {
|
||||||
|
"command": "node ./scripts/copy-readme.js react-native-legacy"
|
||||||
|
},
|
||||||
|
"build-base": {
|
||||||
"executor": "@nx/js:tsc",
|
"executor": "@nx/js:tsc",
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build-base"],
|
||||||
"options": {
|
"options": {
|
||||||
"main": "packages-legacy/react-native/index.ts",
|
"main": "packages-legacy/react-native/index.ts",
|
||||||
"tsConfig": "packages-legacy/react-native/tsconfig.json",
|
"tsConfig": "packages-legacy/react-native/tsconfig.json",
|
||||||
|
|||||||
@ -5,8 +5,11 @@
|
|||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {
|
"targets": {
|
||||||
"build": {
|
"build": {
|
||||||
|
"command": "node ./scripts/copy-readme.js react-legacy"
|
||||||
|
},
|
||||||
|
"build-base": {
|
||||||
"executor": "@nx/js:tsc",
|
"executor": "@nx/js:tsc",
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build-base"],
|
||||||
"options": {
|
"options": {
|
||||||
"main": "packages-legacy/react/index.ts",
|
"main": "packages-legacy/react/index.ts",
|
||||||
"tsConfig": "packages-legacy/react/tsconfig.json",
|
"tsConfig": "packages-legacy/react/tsconfig.json",
|
||||||
|
|||||||
@ -5,8 +5,11 @@
|
|||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {
|
"targets": {
|
||||||
"build": {
|
"build": {
|
||||||
|
"command": "node ./scripts/copy-readme.js rollup-legacy"
|
||||||
|
},
|
||||||
|
"build-base": {
|
||||||
"executor": "@nx/js:tsc",
|
"executor": "@nx/js:tsc",
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build-base"],
|
||||||
"options": {
|
"options": {
|
||||||
"main": "packages-legacy/rollup/index.ts",
|
"main": "packages-legacy/rollup/index.ts",
|
||||||
"tsConfig": "packages-legacy/rollup/tsconfig.json",
|
"tsConfig": "packages-legacy/rollup/tsconfig.json",
|
||||||
|
|||||||
@ -5,8 +5,11 @@
|
|||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {
|
"targets": {
|
||||||
"build": {
|
"build": {
|
||||||
|
"command": "node ./scripts/copy-readme.js storybook-legacy"
|
||||||
|
},
|
||||||
|
"build-base": {
|
||||||
"executor": "@nx/js:tsc",
|
"executor": "@nx/js:tsc",
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build-base"],
|
||||||
"options": {
|
"options": {
|
||||||
"main": "packages-legacy/storybook/index.ts",
|
"main": "packages-legacy/storybook/index.ts",
|
||||||
"tsConfig": "packages-legacy/storybook/tsconfig.json",
|
"tsConfig": "packages-legacy/storybook/tsconfig.json",
|
||||||
|
|||||||
@ -5,8 +5,11 @@
|
|||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {
|
"targets": {
|
||||||
"build": {
|
"build": {
|
||||||
|
"command": "node ./scripts/copy-readme.js vite-legacy"
|
||||||
|
},
|
||||||
|
"build-base": {
|
||||||
"executor": "@nx/js:tsc",
|
"executor": "@nx/js:tsc",
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build-base"],
|
||||||
"options": {
|
"options": {
|
||||||
"main": "packages-legacy/vite/index.ts",
|
"main": "packages-legacy/vite/index.ts",
|
||||||
"tsConfig": "packages-legacy/vite/tsconfig.json",
|
"tsConfig": "packages-legacy/vite/tsconfig.json",
|
||||||
|
|||||||
@ -5,8 +5,11 @@
|
|||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {
|
"targets": {
|
||||||
"build": {
|
"build": {
|
||||||
|
"command": "node ./scripts/copy-readme.js web-legacy"
|
||||||
|
},
|
||||||
|
"build-base": {
|
||||||
"executor": "@nx/js:tsc",
|
"executor": "@nx/js:tsc",
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build-base"],
|
||||||
"options": {
|
"options": {
|
||||||
"main": "packages-legacy/web/index.ts",
|
"main": "packages-legacy/web/index.ts",
|
||||||
"tsConfig": "packages-legacy/web/tsconfig.json",
|
"tsConfig": "packages-legacy/web/tsconfig.json",
|
||||||
|
|||||||
@ -5,8 +5,11 @@
|
|||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {
|
"targets": {
|
||||||
"build": {
|
"build": {
|
||||||
|
"command": "node ./scripts/copy-readme.js webpack-legacy"
|
||||||
|
},
|
||||||
|
"build-base": {
|
||||||
"executor": "@nx/js:tsc",
|
"executor": "@nx/js:tsc",
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build-base"],
|
||||||
"options": {
|
"options": {
|
||||||
"main": "packages-legacy/webpack/index.ts",
|
"main": "packages-legacy/webpack/index.ts",
|
||||||
"tsConfig": "packages-legacy/webpack/tsconfig.json",
|
"tsConfig": "packages-legacy/webpack/tsconfig.json",
|
||||||
|
|||||||
@ -5,8 +5,11 @@
|
|||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {
|
"targets": {
|
||||||
"build": {
|
"build": {
|
||||||
|
"command": "node ./scripts/copy-readme.js workspace-legacy"
|
||||||
|
},
|
||||||
|
"build-base": {
|
||||||
"executor": "@nx/js:tsc",
|
"executor": "@nx/js:tsc",
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build-base"],
|
||||||
"options": {
|
"options": {
|
||||||
"main": "packages-legacy/workspace/index.ts",
|
"main": "packages-legacy/workspace/index.ts",
|
||||||
"tsConfig": "packages-legacy/workspace/tsconfig.json",
|
"tsConfig": "packages-legacy/workspace/tsconfig.json",
|
||||||
|
|||||||
@ -2,7 +2,10 @@ const fs = require('fs');
|
|||||||
|
|
||||||
const p = process.argv[2];
|
const p = process.argv[2];
|
||||||
|
|
||||||
let r = fs.readFileSync(`packages/${p}/README.md`).toString();
|
const sourceReadmePath = !p.endsWith('-legacy')
|
||||||
|
? `packages/${p}/README.md`
|
||||||
|
: `packages-legacy/${p.replace('-legacy', '')}/README.md`;
|
||||||
|
let r = fs.readFileSync(sourceReadmePath).toString();
|
||||||
r = r.replace(
|
r = r.replace(
|
||||||
`{{links}}`,
|
`{{links}}`,
|
||||||
fs.readFileSync('scripts/readme-fragments/links.md')
|
fs.readFileSync('scripts/readme-fragments/links.md')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user