@jayrdeaton/scripts 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -321,7 +321,7 @@ jrd update-boilerplate
|
|
|
321
321
|
|
|
322
322
|
### `jrd update-deps`
|
|
323
323
|
|
|
324
|
-
Update all npm dependencies to `@latest`. Automatically runs `npx expo install --fix` if the project uses Expo.
|
|
324
|
+
Update all npm dependencies to `@latest`. Automatically runs `npx expo install --fix` if the project uses Expo. Skips any dependency whose version is not a plain version number — `file:`, `yalc:`, `link:`, `workspace:`, and similar non-registry entries are left untouched.
|
|
325
325
|
|
|
326
326
|
```
|
|
327
327
|
jrd update-deps [options]
|
package/package.json
CHANGED
|
@@ -65,10 +65,7 @@ export const command = Program.command('find-script', '<command>')
|
|
|
65
65
|
console.log(Color.bold(`\nFound ${results.length} project${results.length !== 1 ? 's' : ''}:\n`))
|
|
66
66
|
|
|
67
67
|
for (const result of results) {
|
|
68
|
-
const label =
|
|
69
|
-
result.projectName && result.projectName !== result.dir
|
|
70
|
-
? `${Color.bold(result.dir)} ${Color.faint(`(${result.projectName})`)}`
|
|
71
|
-
: Color.bold(result.dir)
|
|
68
|
+
const label = result.projectName && result.projectName !== result.dir ? `${Color.bold(result.dir)} ${Color.faint(`(${result.projectName})`)}` : Color.bold(result.dir)
|
|
72
69
|
|
|
73
70
|
console.log(` ${label}`)
|
|
74
71
|
|
|
@@ -10,7 +10,9 @@ function exec(cmd) {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
function latestPackages(deps = {}) {
|
|
13
|
-
return Object.
|
|
13
|
+
return Object.entries(deps)
|
|
14
|
+
.filter(([, version]) => /^\^?[\d*]/.test(version))
|
|
15
|
+
.map(([name]) => `${name}@latest`)
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
export const command = Program.command('update-deps')
|
|
@@ -77,10 +77,7 @@ export const command = Program.command('yalc-check')
|
|
|
77
77
|
console.log(Color.bold(`\n${results.length} project${results.length !== 1 ? 's' : ''} with yalc dependencies:\n`))
|
|
78
78
|
|
|
79
79
|
for (const result of results) {
|
|
80
|
-
const label =
|
|
81
|
-
result.projectName && result.projectName !== result.dir
|
|
82
|
-
? `${Color.bold(result.dir)} ${Color.faint(`(${result.projectName})`)}`
|
|
83
|
-
: Color.bold(result.dir)
|
|
80
|
+
const label = result.projectName && result.projectName !== result.dir ? `${Color.bold(result.dir)} ${Color.faint(`(${result.projectName})`)}` : Color.bold(result.dir)
|
|
84
81
|
|
|
85
82
|
const lockNote = result.hasLock && !result.found.length ? Color.yellow(' yalc.lock present') : ''
|
|
86
83
|
console.log(` ${label}${lockNote}`)
|