@intlify/bundle-utils
Advanced tools
Comparing version
export declare type InstalledPackage = 'vue-i18n' | 'petite-vue-i18n'; | ||
export declare function checkInstallPackage(pkg: string, debug: Function): InstalledPackage; | ||
export declare function checkVueI18nBridgeInstallPackage(debug: Function): boolean; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.checkInstallPackage = void 0; | ||
exports.checkVueI18nBridgeInstallPackage = exports.checkInstallPackage = void 0; | ||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
@@ -31,1 +31,14 @@ function checkInstallPackage(pkg, debug) { | ||
exports.checkInstallPackage = checkInstallPackage; | ||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
function checkVueI18nBridgeInstallPackage(debug) { | ||
let ret = false; | ||
try { | ||
debug(`vue-i18n-bridge load path: ${require.resolve('vue-i18n-bridge')}`); | ||
ret = true; | ||
} | ||
catch (e) { | ||
debug(`cannot find 'vue-i18n-bridge'`, e); | ||
} | ||
return ret; | ||
} | ||
exports.checkVueI18nBridgeInstallPackage = checkVueI18nBridgeInstallPackage; |
{ | ||
"name": "@intlify/bundle-utils", | ||
"description": "Bundle utilities for Intlify project", | ||
"version": "3.1.2", | ||
"version": "3.2.0", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "kazuya kawaguchi", |
44303
13.06%16
6.67%868
1.64%