📄 scripts/update¶
📊 Analysis Summary¶
| Metric | Count |
|---|---|
| 🔧 Functions | 1 |
| 📦 Imports | 10 |
| ⚡ Async/Await Patterns | 1 |
📚 Table of Contents¶
🛠️ File Location:¶
📂 scripts/update.ts
📦 Imports¶
| Name | Source |
|---|---|
process |
node:process |
metadata |
../packages/metadata/metadata |
updateContributors |
./utils |
updateCountBadge |
./utils |
updateFunctionREADME |
./utils |
updateFunctionsMD |
./utils |
updateImport |
./utils |
updateIndexREADME |
./utils |
updatePackageJSON |
./utils |
updatePackageREADME |
./utils |
Async/Await Patterns¶
| Type | Function | Await Expressions | Promise Chains |
|---|---|---|---|
| async-function | run |
Promise.all([ updateImport(metadata), updatePackageREADME(metadata), updateIn... | Promise.all |
Functions¶
run(): Promise<void>¶
Returns: Promise<void>
Calls:
Promise.allupdateImport (from ./utils)updatePackageREADME (from ./utils)updateIndexREADME (from ./utils)updateFunctionsMD (from ./utils)updateFunctionREADME (from ./utils)updatePackageJSON (from ./utils)updateCountBadge (from ./utils)updateContributors (from ./utils)fs.copyFile
Code
async function run() {
await Promise.all([
updateImport(metadata),
updatePackageREADME(metadata),
updateIndexREADME(metadata),
updateFunctionsMD(metadata),
updateFunctionREADME(metadata),
updatePackageJSON(metadata),
updateCountBadge(metadata),
process.env.NETLIFY && updateContributors(),
])
await fs.copyFile('./CONTRIBUTING.md', './packages/contributing.md')
}
Generated by Syntax Scribe