Buckets:
| // This script must be run with tsx | |
| import { NEXT_DIR, exec } from './pack-util' | |
| import fs from 'fs' | |
| import path from 'path' | |
| const TARBALLS = `${NEXT_DIR}/tarballs` | |
| const PROJECT_DIR = path.resolve(process.argv[2]) | |
| function realPathIfAny(path: fs.PathLike) { | |
| try { | |
| return fs.realpathSync(path) | |
| } catch { | |
| return null | |
| } | |
| } | |
| const packages = { | |
| next: realPathIfAny(`${PROJECT_DIR}/node_modules/next`), | |
| 'next-swc': realPathIfAny(`${PROJECT_DIR}/node_modules/@next/swc`), | |
| 'next-mdx': realPathIfAny(`${PROJECT_DIR}/node_modules/@next/mdx`), | |
| 'next-bundle-analyzer': realPathIfAny( | |
| `${PROJECT_DIR}/node_modules/@next/bundle-anlyzer` | |
| ), | |
| } | |
| for (const [key, path] of Object.entries(packages)) { | |
| if (!path) continue | |
| exec(`Unpack ${key}`, `tar -xf '${TARBALLS}/${key}.tar' -C '${path}'`) | |
| } | |
Xet Storage Details
- Size:
- 811 Bytes
- Xet hash:
- 2856a482e9cd560493690474ca139e0bd6e71e70125ff91e865469e533ed031f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.