-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: add update-deps #27
Conversation
scripts/update-dependencies.ts
Outdated
*/ | ||
|
||
import { execSync } from 'node:child_process'; | ||
import * as fs from 'node:fs'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fs-extra
scripts/update-dependencies.ts
Outdated
}); | ||
|
||
if (hasUpdates) { | ||
fs.writeFileSync(packageJsonPath, `${JSON.stringify(packageJson, null, 4)}\n`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fs.writeJSONSync
scripts/update-dependencies.ts
Outdated
*/ | ||
|
||
import { execSync } from 'node:child_process'; | ||
import * as path from 'node:path'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an ESM project, there's no need to import *
.
scripts/update-dependencies.ts
Outdated
}); | ||
|
||
if (hasUpdates) { | ||
fs.writeJSONSync(packageJsonPath, packageJson, { spaces: 4 }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EOL is required
No description provided.