diff --git a/frontend/src/ts/test/words-generator.ts b/frontend/src/ts/test/words-generator.ts index 44bd3beb6a0c..edee8321c477 100644 --- a/frontend/src/ts/test/words-generator.ts +++ b/frontend/src/ts/test/words-generator.ts @@ -663,7 +663,7 @@ export async function generateWords( const sectionFinishedAndOverLimit = currentSection.length === 0 && sectionIndex >= CustomText.getLimitValue(); - if (sectionFinishedAndOverLimit || ret.words.length >= 100) { + if (sectionFinishedAndOverLimit || ret.words.length >= limit) { stop = true; } } else if (ret.words.length >= limit) { diff --git a/packages/funbox/package.json b/packages/funbox/package.json index 525e3b83de0c..434429fa8489 100644 --- a/packages/funbox/package.json +++ b/packages/funbox/package.json @@ -9,7 +9,6 @@ "lint": "eslint \"./**/*.ts\"" }, "devDependencies": { - "@monkeytype/util": "workspace:*", "@monkeytype/esbuild": "workspace:*", "@monkeytype/eslint-config": "workspace:*", "@monkeytype/typescript-config": "workspace:*", @@ -20,6 +19,9 @@ "typescript": "5.5.4", "vitest": "2.0.5" }, + "dependencies": { + "@monkeytype/util": "workspace:*" + }, "exports": { ".": { "types": "./src/index.ts", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 31ab5890d14e..d9d255707709 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -529,6 +529,10 @@ importers: version: 1.1.9 packages/funbox: + dependencies: + '@monkeytype/util': + specifier: workspace:* + version: link:../util devDependencies: '@monkeytype/esbuild': specifier: workspace:* @@ -539,9 +543,6 @@ importers: '@monkeytype/typescript-config': specifier: workspace:* version: link:../typescript-config - '@monkeytype/util': - specifier: workspace:* - version: link:../util chokidar: specifier: 3.6.0 version: 3.6.0