diff --git a/package.json b/package.json index 6f4831ad2..688ad77d4 100644 --- a/package.json +++ b/package.json @@ -131,6 +131,7 @@ "node-mocks-http": "^1.14.1", "nodemon": "3.0.3", "open": "^10.1.0", + "p-map": "^7.0.2", "pino": "8.15.0", "pino-pretty": "10.2.0", "playwright": "^1.42.1", @@ -153,7 +154,7 @@ "tempy": "^1.0.1", "ts-node": "10.9.1", "tsx": "^4.7.1", - "turbo": "^1.13.0", + "turbo": "^1.13.2", "typescript": "5.4.2", "uuid": "^9.0.1", "yocto-queue": "^1.0.0" diff --git a/packages/payload/uploads.d.ts b/packages/payload/uploads.d.ts index 0f752224b..4cb00bd0f 100644 --- a/packages/payload/uploads.d.ts +++ b/packages/payload/uploads.d.ts @@ -1,2 +1,2 @@ -export { getFileByPath } from './dist/uploads/getFileByPath.js' -//# sourceMappingURL=uploads.d.ts.map +export { getFileByPath } from './dist/uploads/getFileByPath.js'; +//# sourceMappingURL=uploads.d.ts.map \ No newline at end of file diff --git a/packages/payload/uploads.js b/packages/payload/uploads.js index 45787b92e..cc581e56e 100644 --- a/packages/payload/uploads.js +++ b/packages/payload/uploads.js @@ -1,3 +1,3 @@ -export { getFileByPath } from './dist/uploads/getFileByPath.js' +export { getFileByPath } from './dist/uploads/getFileByPath.js'; -//# sourceMappingURL=uploads.js.map +//# sourceMappingURL=uploads.js.map \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9c67134dd..58e5d18cb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -214,6 +214,9 @@ importers: open: specifier: ^10.1.0 version: 10.1.0 + p-map: + specifier: ^7.0.2 + version: 7.0.2 pino: specifier: 8.15.0 version: 8.15.0 @@ -281,8 +284,8 @@ importers: specifier: ^4.7.1 version: 4.7.1 turbo: - specifier: ^1.13.0 - version: 1.13.0 + specifier: ^1.13.2 + version: 1.13.2 typescript: specifier: 5.4.2 version: 5.4.2 @@ -13653,6 +13656,11 @@ packages: aggregate-error: 3.1.0 dev: true + /p-map@7.0.2: + resolution: {integrity: sha512-z4cYYMMdKHzw4O5UkWJImbZynVIo0lSGTXc7bzB1e/rrDqkgGUNysK/o4bTr+0+xKvvLoTyGqYC4Fgljy9qe1Q==} + engines: {node: '>=18'} + dev: true + /p-try@2.2.0: resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} engines: {node: '>=6'} @@ -16906,64 +16914,64 @@ packages: engines: {node: '>=0.6.11 <=0.7.0 || >=0.7.3'} dev: true - /turbo-darwin-64@1.13.0: - resolution: {integrity: sha512-ctHeJXtQgBcgxnCXwrJTGiq57HtwF7zWz5NTuSv//5yeU01BtQIt62ArKfjudOhRefWJbX3Z5srn88XTb9hfww==} + /turbo-darwin-64@1.13.2: + resolution: {integrity: sha512-CCSuD8CfmtncpohCuIgq7eAzUas0IwSbHfI8/Q3vKObTdXyN8vAo01gwqXjDGpzG9bTEVedD0GmLbD23dR0MLA==} cpu: [x64] os: [darwin] requiresBuild: true dev: true optional: true - /turbo-darwin-arm64@1.13.0: - resolution: {integrity: sha512-/Q9/pNFkF9w83tNxwMpgapwLYdQ12p8mpty2YQRoUiS9ClWkcqe136jR0mtuMqzlNlpREOFZaoyIthjt6Sdo0g==} + /turbo-darwin-arm64@1.13.2: + resolution: {integrity: sha512-0HySm06/D2N91rJJ89FbiI/AodmY8B3WDSFTVEpu2+8spUw7hOJ8okWOT0e5iGlyayUP9gr31eOeL3VFZkpfCw==} cpu: [arm64] os: [darwin] requiresBuild: true dev: true optional: true - /turbo-linux-64@1.13.0: - resolution: {integrity: sha512-hgbT7o020BGV4L7Sd8hhFTd5zVKPKxbsr0dPfel/9NkdTmptz2aGZ0Vb2MAa18SY3XaCQpDxmdYuOzvvRpo5ZA==} + /turbo-linux-64@1.13.2: + resolution: {integrity: sha512-7HnibgbqZrjn4lcfIouzlPu8ZHSBtURG4c7Bedu7WJUDeZo+RE1crlrQm8wuwO54S0siYqUqo7GNHxu4IXbioQ==} cpu: [x64] os: [linux] requiresBuild: true dev: true optional: true - /turbo-linux-arm64@1.13.0: - resolution: {integrity: sha512-WK01i2wDZARrV+HEs495A3hNeGMwQR5suYk7G+ceqqW7b+dOTlQdvUjnI3sg7wAnZPgjafFs/hoBaZdJjVa/nw==} + /turbo-linux-arm64@1.13.2: + resolution: {integrity: sha512-sUq4dbpk6SNKg/Hkwn256Vj2AEYSQdG96repio894h5/LEfauIK2QYiC/xxAeW3WBMc6BngmvNyURIg7ltrePg==} cpu: [arm64] os: [linux] requiresBuild: true dev: true optional: true - /turbo-windows-64@1.13.0: - resolution: {integrity: sha512-hJgSZJZwlWHNwLEthaqJqJWGm4NqF5X/I7vE0sPE4i/jeDl8f0n1hcOkgJkJiNXVxhj+qy/9+4dzbPLKT9imaQ==} + /turbo-windows-64@1.13.2: + resolution: {integrity: sha512-DqzhcrciWq3dpzllJR2VVIyOhSlXYCo4mNEWl98DJ3FZ08PEzcI3ceudlH6F0t/nIcfSItK1bDP39cs7YoZHEA==} cpu: [x64] os: [win32] requiresBuild: true dev: true optional: true - /turbo-windows-arm64@1.13.0: - resolution: {integrity: sha512-L/ErxYoXeq8tmjU/AIGicC9VyBN1zdYw8JlM4yPmMI0pJdY8E4GaYK1IiIazqq7M72lmQhU/WW7fV9FqEktwrw==} + /turbo-windows-arm64@1.13.2: + resolution: {integrity: sha512-WnPMrwfCXxK69CdDfS1/j2DlzcKxSmycgDAqV0XCYpK/812KB0KlvsVAt5PjEbZGXkY88pCJ1BLZHAjF5FcbqA==} cpu: [arm64] os: [win32] requiresBuild: true dev: true optional: true - /turbo@1.13.0: - resolution: {integrity: sha512-r02GtNmkOPcQvUzVE6lg474QVLyU02r3yh3lUGqrFHf5h5ZEjgDGWILsAUqplVqjri1Y/oOkTssks4CObTAaiw==} + /turbo@1.13.2: + resolution: {integrity: sha512-rX/d9f4MgRT3yK6cERPAkfavIxbpBZowDQpgvkYwGMGDQ0Nvw1nc0NVjruE76GrzXQqoxR1UpnmEP54vBARFHQ==} hasBin: true optionalDependencies: - turbo-darwin-64: 1.13.0 - turbo-darwin-arm64: 1.13.0 - turbo-linux-64: 1.13.0 - turbo-linux-arm64: 1.13.0 - turbo-windows-64: 1.13.0 - turbo-windows-arm64: 1.13.0 + turbo-darwin-64: 1.13.2 + turbo-darwin-arm64: 1.13.2 + turbo-linux-64: 1.13.2 + turbo-linux-arm64: 1.13.2 + turbo-windows-64: 1.13.2 + turbo-windows-arm64: 1.13.2 dev: true /type-check@0.4.0: diff --git a/scripts/release.ts b/scripts/release.ts index f2810ac54..0ccdbee1f 100755 --- a/scripts/release.ts +++ b/scripts/release.ts @@ -6,6 +6,7 @@ import execa from 'execa' import fse from 'fs-extra' import minimist from 'minimist' import { fileURLToPath } from 'node:url' +import pMap from 'p-map' import path from 'path' import prompts from 'prompts' import semver from 'semver' @@ -25,15 +26,19 @@ const packageWhitelist = [ 'db-postgres', 'richtext-slate', 'richtext-lexical', + + 'create-payload-app', + + // Plugins 'plugin-cloud', 'plugin-cloud-storage', 'plugin-form-builder', 'plugin-nested-docs', 'plugin-redirects', 'plugin-search', - // 'plugin-sentry', 'plugin-seo', // 'plugin-stripe', + // 'plugin-sentry', ] const filename = fileURLToPath(import.meta.url) @@ -127,7 +132,7 @@ async function main() { `${packageDetails.map((p) => ` - ${p.name.padEnd(32)} ${p.version} => ${chalk.green(nextReleaseVersion)}`).join('\n')}\n`, ) - const confirmPublish = await confirm('Are you sure your want to create these versions?') + const confirmPublish = await confirm('Are you sure you want to create these versions?') if (!confirmPublish) { abort() @@ -205,8 +210,9 @@ async function main() { } // Publish - const results: { name: string; success: boolean; details?: string }[] = await Promise.all( - packageDetails.map(async (pkg) => { + const results: { name: string; success: boolean; details?: string }[] = await pMap( + packageDetails, + async (pkg) => { try { console.log(logPrefix, chalk.bold(`šŸš€ ${pkg.name} publishing...`)) const cmdArgs = ['publish', '-C', pkg.packagePath, '--no-git-checks', '--tag', tag] @@ -232,11 +238,11 @@ async function main() { console.error(chalk.bold.red(`\n\nāŒ ${pkg.name} ERROR: ${error.message}\n\n`)) return { name: pkg.name, success: false } } - }), + }, + { concurrency: 5 }, ) - console.log(chalk.bold.green(`\n\nResults:\n\n`)) - console.log(results.map(({ name, success }) => ` ${success ? 'āœ…' : 'āŒ'} ${name}`).join('\n')) + console.log(chalk.bold.green(`\n\nResults:\n`)) // New results format console.log( @@ -248,7 +254,7 @@ async function main() { } return summary }) - .join('\n'), + .join('\n') + '\n', ) // TODO: Push commit and tag