diff --git a/packages/localizer/index.ts b/packages/localizer/index.ts index 02c0ee3..fc36d69 100644 --- a/packages/localizer/index.ts +++ b/packages/localizer/index.ts @@ -91,12 +91,12 @@ export const localize = (root?: string) => const resolvedLocalization= 'command/'+(root??module.name); Reflect.set(module, 'name_localizations', deps.localizer.translationsFor(resolvedLocalization+".name")); Reflect.set(module, 'description_localizations', deps.localizer.translationsFor(resolvedLocalization+'.description')); + //@ts-ignore const newOpts = module.options ?? []; //@ts-ignore dfsApplyLocalization(newOpts, deps, [resolvedLocalization]); return controller.next(); } else { - //@ts-ignore return controller.stop("Cannot localize this type of module " + module.name); } }) diff --git a/packages/publisher/index.ts b/packages/publisher/index.ts index cd91d3d..2183f50 100644 --- a/packages/publisher/index.ts +++ b/packages/publisher/index.ts @@ -209,6 +209,7 @@ export const publishConfig = (config: ValidPublishOptions) => { } let _config=config if(typeof _config === 'function') { + //@ts-ignore fix later _config = _config(absPath, module); } const { contexts, defaultMemberPermissions, integrationTypes } = _config diff --git a/yarn.lock b/yarn.lock index bafcdaa..7f51199 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2415,13 +2415,20 @@ __metadata: languageName: node linkType: hard -"tslib@npm:2.6.2, tslib@npm:^2.1.0, tslib@npm:^2.6.2": +"tslib@npm:2.6.2, tslib@npm:^2.6.2": version: 2.6.2 resolution: "tslib@npm:2.6.2" checksum: 329ea56123005922f39642318e3d1f0f8265d1e7fcb92c633e0809521da75eeaca28d2cf96d7248229deb40e5c19adf408259f4b9640afd20d13aecc1430f3ad languageName: node linkType: hard +"tslib@npm:^2.1.0": + version: 2.6.3 + resolution: "tslib@npm:2.6.3" + checksum: 74fce0e100f1ebd95b8995fbbd0e6c91bdd8f4c35c00d4da62e285a3363aaa534de40a80db30ecfd388ed7c313c42d930ee0eaf108e8114214b180eec3dbe6f5 + languageName: node + linkType: hard + "type-detect@npm:^4.0.0, type-detect@npm:^4.0.8": version: 4.0.8 resolution: "type-detect@npm:4.0.8"