diff --git a/package.json b/package.json index e1fc47b322..03ae1dd63e 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "acorn": "^8.8.1", "astring": "^1.8.6", "chalk": "^5.0.1", - "commander": "^12.0.0", + "commander": "^13.0.0", "console-table-printer": "^2.11.1", "esbuild": "^0.25.0", "eslint": "^9.21.0", diff --git a/scripts/scripts_manager.js b/scripts/scripts_manager.js index 7aa7a5278a..308726f34d 100644 --- a/scripts/scripts_manager.js +++ b/scripts/scripts_manager.js @@ -77,6 +77,7 @@ function runJest(patterns) { const testCommand = new Command('test') .description('Run tests for script files') .allowUnknownOption() + .allowExcessArguments() .action((_, command) => runJest(command.args)); await new Command() diff --git a/scripts/src/testing/index.ts b/scripts/src/testing/index.ts index b6c606ee45..7d6517429f 100644 --- a/scripts/src/testing/index.ts +++ b/scripts/src/testing/index.ts @@ -12,6 +12,7 @@ export type TestCommandOptions = { const getTestCommand = () => new Command('test') .description('Run jest') .addOption(srcDirOption) + .allowExcessArguments() .allowUnknownOption() .action(({ srcDir }, command) => { const [args, filePatterns] = lodash.partition(command.args, arg => arg.startsWith('-')); diff --git a/src/bundles/csg/functions.ts b/src/bundles/csg/functions.ts index 0d79b721ad..25ed861d7d 100644 --- a/src/bundles/csg/functions.ts +++ b/src/bundles/csg/functions.ts @@ -1,7 +1,6 @@ /* [Imports] */ import { primitives } from '@jscad/modeling'; import { colorize as colorSolid } from '@jscad/modeling/src/colors'; -import { geom3 } from '@jscad/modeling/src/geometries'; import { measureBoundingBox, type BoundingBox diff --git a/src/bundles/robot_simulation/engine/Core/RobotConsole.ts b/src/bundles/robot_simulation/engine/Core/RobotConsole.ts index 1d6c877222..f3658b15af 100644 --- a/src/bundles/robot_simulation/engine/Core/RobotConsole.ts +++ b/src/bundles/robot_simulation/engine/Core/RobotConsole.ts @@ -1,5 +1,4 @@ -const logLevels = ['source', 'error'] as const; -type LogLevel = typeof logLevels[number]; +type LogLevel = 'error' | 'source'; export type LogEntry = { message: string; diff --git a/src/bundles/sound/__tests__/sound.test.ts b/src/bundles/sound/__tests__/sound.test.ts index b304adc133..c7980e5be9 100644 --- a/src/bundles/sound/__tests__/sound.test.ts +++ b/src/bundles/sound/__tests__/sound.test.ts @@ -1,3 +1,4 @@ +/* eslint-disable @typescript-eslint/no-unused-vars */ import { make_sound, play, play_in_tab } from '../functions'; describe('Test make_sound', () => { diff --git a/src/tabs/Curve/__tests__/Curve.tsx b/src/tabs/Curve/__tests__/Curve.tsx index d0d87089ec..77428afd60 100644 --- a/src/tabs/Curve/__tests__/Curve.tsx +++ b/src/tabs/Curve/__tests__/Curve.tsx @@ -1,3 +1,4 @@ +/* eslint-disable @typescript-eslint/no-unused-vars */ import { CurveTab } from '..'; import { animate_3D_curve, animate_curve, draw_3D_connected, draw_connected } from '../../../bundles/curve'; import type { CurveModuleState } from '../../../bundles/curve/types'; diff --git a/src/tabs/Rune/__tests__/Rune.tsx b/src/tabs/Rune/__tests__/Rune.tsx index c352b49bf3..b41df9ea90 100644 --- a/src/tabs/Rune/__tests__/Rune.tsx +++ b/src/tabs/Rune/__tests__/Rune.tsx @@ -1,3 +1,4 @@ +/* eslint-disable @typescript-eslint/no-unused-vars */ import { RuneTab } from '..'; import { animate_rune } from '../../../bundles/rune'; import type { RuneModuleState } from '../../../bundles/rune/functions'; diff --git a/yarn.lock b/yarn.lock index e90eee4894..605fa2f952 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3545,6 +3545,13 @@ __metadata: languageName: node linkType: hard +"commander@npm:^13.0.0": + version: 13.1.0 + resolution: "commander@npm:13.1.0" + checksum: 10c0/7b8c5544bba704fbe84b7cab2e043df8586d5c114a4c5b607f83ae5060708940ed0b5bd5838cf8ce27539cde265c1cbd59ce3c8c6b017ed3eec8943e3a415164 + languageName: node + linkType: hard + "commist@npm:^1.0.0": version: 1.1.0 resolution: "commist@npm:1.1.0" @@ -7557,7 +7564,7 @@ __metadata: astring: "npm:^1.8.6" chalk: "npm:^5.0.1" classnames: "npm:^2.3.1" - commander: "npm:^12.0.0" + commander: "npm:^13.0.0" console-table-printer: "npm:^2.11.1" esbuild: "npm:^0.25.0" eslint: "npm:^9.21.0"