Skip to content

Commit 1db2fc3

Browse files
Upgrade node-core-library and prettier, task updates in core-build-tasks (#66)
* Upgrade prettier to 3.5.3 * PR feedback; use npx for execSync, update node-core-library, add options to vitestTask * Change files * Update workflows node versions
1 parent 7c0bf63 commit 1db2fc3

17 files changed

+227
-163
lines changed

.github/workflows/beachball-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v4
14-
- name: Use Node.js 20.x
14+
- name: Use Node.js 22.x
1515
uses: actions/setup-node@v4
1616
with:
17-
node-version: 20
17+
node-version: 22
1818
- run: npx beachball check

.github/workflows/pull-request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v4
14-
- name: Use Node.js 20.x
14+
- name: Use Node.js 22.x
1515
uses: actions/setup-node@v4
1616
with:
17-
node-version: 20
17+
node-version: 22
1818
- run: npm ci
1919
- run: npm run test

.github/workflows/release-changes.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
- uses: actions/checkout@v4
1515
with:
1616
persist-credentials: false
17-
- name: Use Node.js 20.x
17+
- name: Use Node.js 22.x
1818
uses: actions/setup-node@v4
1919
with:
20-
node-version: 20
20+
node-version: 22
2121
- run: npm ci
2222
- run: npm run test # Fully build the repo so we have artifacts available to create releases, include tests so we don't ship in a broken state
2323

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "major",
3+
"comment": "Upgrade @rushstack/node-core-library to 5.13.0, prettier to ^3.5.3",
4+
"packageName": "@minecraft/core-build-tasks",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "Upgrade prettier to ^3.5.3",
4+
"packageName": "@minecraft/math",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "Upgrade @types/node to ^22.0.0",
4+
"packageName": "eslint-plugin-minecraft-linting",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

libraries/math/just.config.cts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ task('build', series('typescript', 'api-extractor-local', 'bundle'));
3636

3737
// Test
3838
task('api-extractor-validate', apiExtractorTask('./api-extractor.json', isOnlyBuild /* localBuild */));
39-
task('vitest', vitestTask());
39+
task('vitest', vitestTask({ test: argv().test, update: argv().update }));
4040
task('test', series('api-extractor-validate', 'vitest'));
4141

4242
// Clean

libraries/math/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@minecraft/server": "^1.15.0",
4242
"@minecraft/tsconfig": "*",
4343
"just-scripts": "^2.3.3",
44-
"prettier": "^2.8.2",
44+
"prettier": "^3.5.3",
4545
"vitest": "^3.0.8"
4646
}
4747
}

0 commit comments

Comments
 (0)