127e30ed42
The PR follows #53146 and #53115. The PR does 3 things: - Replaces a [very heavy dependency `cpy`](https://github.com/vercel/next.js/pull/53146#issuecomment-1649193789) with a more lightweight copy helper. - The `fs.cp(src, dest, {recursive: true})` API is not used, as it is still experimental: <img width="1630" alt="image" src="https://github.com/vercel/next.js/assets/40715044/c61a454a-3a96-4658-a389-fbb68c241f18"> - Update `cross-spawn` to the latest version `7.0.3` - The only breaking change introduced in `cross-spawn@7.x` is dropping Node.js 8 supports, which allows `cross-spawn` to drop a dependency. Since `create-next-app` requires Node.js 16.8.0, I assume bumping `cross-spawn` would be safe. - Update `fast-glob` to the latest version `3.3.1` to remove more KiBs (pointed out by @imranbarbhuiya) - The breaking change introduced in `fast-glob@3.x` is dropping Node.js 8 supports and some options changes. Together the PR removes another 202 KiB from the `create-next-app/dist/index.js`. The size of `create-next-app/dist/index.js` is now 616 KiB. <img width="583" alt="image" src="https://github.com/vercel/next.js/assets/40715044/4deb5e36-a63b-4501-b67c-29ea06e30578">
57 lines
1.6 KiB
JSON
57 lines
1.6 KiB
JSON
{
|
|
"name": "create-next-app",
|
|
"version": "13.4.13-canary.6",
|
|
"keywords": [
|
|
"react",
|
|
"next",
|
|
"next.js"
|
|
],
|
|
"description": "Create Next.js-powered React apps with one command",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/vercel/next.js",
|
|
"directory": "packages/create-next-app"
|
|
},
|
|
"author": "Next.js Team <support@vercel.com>",
|
|
"license": "MIT",
|
|
"bin": {
|
|
"create-next-app": "./dist/index.js"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"dev": "ncc build ./index.ts -w -o dist/",
|
|
"prerelease": "node ../../scripts/rm.mjs dist",
|
|
"release": "ncc build ./index.ts -o ./dist/ --minify --no-cache --no-source-map-register",
|
|
"prepublishOnly": "cd ../../ && turbo run build",
|
|
"build": "pnpm release",
|
|
"lint-fix": "pnpm prettier -w --plugin prettier-plugin-tailwindcss 'templates/*-tw/{ts,js}/{app,pages}/**/*.{js,ts,tsx}'"
|
|
},
|
|
"devDependencies": {
|
|
"@types/async-retry": "1.4.2",
|
|
"@types/ci-info": "2.0.0",
|
|
"@types/cross-spawn": "6.0.0",
|
|
"@types/node": "^20.2.5",
|
|
"@types/prompts": "2.0.1",
|
|
"@types/tar": "6.1.5",
|
|
"@types/validate-npm-package-name": "3.0.0",
|
|
"@vercel/ncc": "0.34.0",
|
|
"async-retry": "1.3.1",
|
|
"ci-info": "watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540",
|
|
"commander": "2.20.0",
|
|
"conf": "10.2.0",
|
|
"cross-spawn": "7.0.3",
|
|
"fast-glob": "3.3.1",
|
|
"got": "10.7.0",
|
|
"picocolors": "1.0.0",
|
|
"prettier-plugin-tailwindcss": "0.3.0",
|
|
"prompts": "2.1.0",
|
|
"tar": "6.1.15",
|
|
"update-check": "1.5.4",
|
|
"validate-npm-package-name": "3.0.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=16.8.0"
|
|
}
|
|
}
|