diff --git a/packages/localizer/index.ts b/packages/localizer/index.ts index a226f43..dbee843 100644 --- a/packages/localizer/index.ts +++ b/packages/localizer/index.ts @@ -87,9 +87,10 @@ export const localize = (root?: string) => updateModule({ options: newOpts }); + return controller.next(); } else { console.error("Cannot localize this type of module"); - return controller.next(); + return controller.stop(); } }) diff --git a/yarn.lock b/yarn.lock index 698f365..11e489b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2278,7 +2278,7 @@ __metadata: "typescript@patch:typescript@^5.0.0#~builtin": version: 5.4.5 - resolution: "typescript@patch:typescript@npm%3A5.4.5#~builtin::version=5.4.5&hash=14eedb" + resolution: "typescript@patch:typescript@npm%3A5.4.5#~builtin::version=5.4.5&hash=f3b441" bin: tsc: bin/tsc tsserver: bin/tsserver