Commit e07d39e
authored
Check for
* Check for presence of `workspace:^` in package.json before replacing version
This change modifies getUpdatedDependencyField function to check the dependencyObject values for `workspace:^`
as a condition before replacing the version with newVersionRange. The 'workspace:^' should not be overridden with
newVersionRange.
* Add a step to use Node.js version specified in .nvmrc
Without specifying a version in the workflow, the job could fail or use the wrong version of Node.js. This change ensures that the job uses the Node.js version specified in .nvmrc.
* Update build files
* Check if dependency starts with 'workspace:'
This change checks whether a dependency field starts with 'workspace:', instead of being equal to 'workspace:^'.workspace:^ before replacing the version in package.json (#108)1 parent 4e69931 commit e07d39e
3 files changed
Lines changed: 13 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15035 | 15035 | | |
15036 | 15036 | | |
15037 | 15037 | | |
15038 | | - | |
15039 | | - | |
15040 | | - | |
| 15038 | + | |
| 15039 | + | |
| 15040 | + | |
| 15041 | + | |
| 15042 | + | |
15041 | 15043 | | |
15042 | 15044 | | |
15043 | 15045 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
358 | | - | |
359 | | - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
360 | 362 | | |
361 | 363 | | |
362 | 364 | | |
| |||
0 commit comments