Skip to content

Commit adeec5c

Browse files
Update dependency commander to v13 (#395)
* Update dependency commander to v13 * Fix lint warnings * Remove unused import * Fix CI workflow * Revert "Fix CI workflow" This reverts commit 7f2d750. * Fix breaking change * Fix scripts --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Richard Dominick <[email protected]>
1 parent c337b81 commit adeec5c

File tree

9 files changed

+15
-5
lines changed

9 files changed

+15
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"acorn": "^8.8.1",
6767
"astring": "^1.8.6",
6868
"chalk": "^5.0.1",
69-
"commander": "^12.0.0",
69+
"commander": "^13.0.0",
7070
"console-table-printer": "^2.11.1",
7171
"esbuild": "^0.25.0",
7272
"eslint": "^9.21.0",

scripts/scripts_manager.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ function runJest(patterns) {
7777
const testCommand = new Command('test')
7878
.description('Run tests for script files')
7979
.allowUnknownOption()
80+
.allowExcessArguments()
8081
.action((_, command) => runJest(command.args));
8182

8283
await new Command()

scripts/src/testing/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export type TestCommandOptions = {
1212
const getTestCommand = () => new Command('test')
1313
.description('Run jest')
1414
.addOption(srcDirOption)
15+
.allowExcessArguments()
1516
.allowUnknownOption()
1617
.action(({ srcDir }, command) => {
1718
const [args, filePatterns] = lodash.partition(command.args, arg => arg.startsWith('-'));

src/bundles/csg/functions.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* [Imports] */
22
import { primitives } from '@jscad/modeling';
33
import { colorize as colorSolid } from '@jscad/modeling/src/colors';
4-
import { geom3 } from '@jscad/modeling/src/geometries';
54
import {
65
measureBoundingBox,
76
type BoundingBox

src/bundles/robot_simulation/engine/Core/RobotConsole.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
const logLevels = ['source', 'error'] as const;
2-
type LogLevel = typeof logLevels[number];
1+
type LogLevel = 'error' | 'source';
32

43
export type LogEntry = {
54
message: string;

src/bundles/sound/__tests__/sound.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-unused-vars */
12
import { make_sound, play, play_in_tab } from '../functions';
23

34
describe('Test make_sound', () => {

src/tabs/Curve/__tests__/Curve.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-unused-vars */
12
import { CurveTab } from '..';
23
import { animate_3D_curve, animate_curve, draw_3D_connected, draw_connected } from '../../../bundles/curve';
34
import type { CurveModuleState } from '../../../bundles/curve/types';

src/tabs/Rune/__tests__/Rune.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-unused-vars */
12
import { RuneTab } from '..';
23
import { animate_rune } from '../../../bundles/rune';
34
import type { RuneModuleState } from '../../../bundles/rune/functions';

yarn.lock

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3545,6 +3545,13 @@ __metadata:
35453545
languageName: node
35463546
linkType: hard
35473547

3548+
"commander@npm:^13.0.0":
3549+
version: 13.1.0
3550+
resolution: "commander@npm:13.1.0"
3551+
checksum: 10c0/7b8c5544bba704fbe84b7cab2e043df8586d5c114a4c5b607f83ae5060708940ed0b5bd5838cf8ce27539cde265c1cbd59ce3c8c6b017ed3eec8943e3a415164
3552+
languageName: node
3553+
linkType: hard
3554+
35483555
"commist@npm:^1.0.0":
35493556
version: 1.1.0
35503557
resolution: "commist@npm:1.1.0"
@@ -7569,7 +7576,7 @@ __metadata:
75697576
astring: "npm:^1.8.6"
75707577
chalk: "npm:^5.0.1"
75717578
classnames: "npm:^2.3.1"
7572-
commander: "npm:^12.0.0"
7579+
commander: "npm:^13.0.0"
75737580
console-table-printer: "npm:^2.11.1"
75747581
esbuild: "npm:^0.25.0"
75757582
eslint: "npm:^9.21.0"

0 commit comments

Comments
 (0)