@4399ywkf/core 5.3.0 → 5.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +2 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/config/index.d.ts +2 -2
- package/dist/config/index.js +2 -2
- package/dist/config/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/plugin/index.d.ts +2 -2
- package/dist/rspack/index.d.ts +1 -1
- package/dist/rspack/index.js +2 -2
- package/dist/rspack/index.js.map +1 -1
- package/dist/{schema-QzJlmn39.d.ts → schema-Ade9gA3U.d.ts} +1 -1
- package/package.json +11 -12
package/dist/plugin/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Q as YwkfPlugin, e as PluginHooks, Y as YwkfConfig, f as PluginConfig, U as RouteItem } from '../schema-
|
|
2
|
-
export { y as BuildHooks, C as CodeInjection, V as DefinePlugin, F as GeneratedFile, G as GeneratorContext, J as GeneratorHooks, W as PluginAPI, K as PluginContext, X as PluginLogger, L as RouterHooks, N as RuntimeHooks } from '../schema-
|
|
1
|
+
import { Q as YwkfPlugin, e as PluginHooks, Y as YwkfConfig, f as PluginConfig, U as RouteItem } from '../schema-Ade9gA3U.js';
|
|
2
|
+
export { y as BuildHooks, C as CodeInjection, V as DefinePlugin, F as GeneratedFile, G as GeneratorContext, J as GeneratorHooks, W as PluginAPI, K as PluginContext, X as PluginLogger, L as RouterHooks, N as RuntimeHooks } from '../schema-Ade9gA3U.js';
|
|
3
3
|
import { Configuration } from '@rspack/core';
|
|
4
4
|
import { a as AppConfig, P as ProviderConfig } from '../types-ZJhd87ue.js';
|
|
5
5
|
import 'react';
|
package/dist/rspack/index.d.ts
CHANGED
package/dist/rspack/index.js
CHANGED
|
@@ -763,7 +763,7 @@ function scaffoldI18nRc(cwd, localesDir, defaultLocale, locales, logger) {
|
|
|
763
763
|
const filePath = join3(cwd, ".i18nrc.js");
|
|
764
764
|
if (existsSync3(filePath)) return;
|
|
765
765
|
const outputLocales = locales.filter((l) => l !== defaultLocale).map((l) => `"${l}"`).join(", ");
|
|
766
|
-
const content = `const { defineConfig } = require("@
|
|
766
|
+
const content = `const { defineConfig } = require("@4399ywkf/i18n");
|
|
767
767
|
|
|
768
768
|
module.exports = defineConfig({
|
|
769
769
|
entry: "${localesDir}/${defaultLocale}",
|
|
@@ -773,7 +773,7 @@ module.exports = defineConfig({
|
|
|
773
773
|
});
|
|
774
774
|
`;
|
|
775
775
|
writeFileSync2(filePath, content, "utf-8");
|
|
776
|
-
logger.info("\u5DF2\u751F\u6210\u7FFB\u8BD1\u914D\u7F6E: .i18nrc.js\uFF08@
|
|
776
|
+
logger.info("\u5DF2\u751F\u6210\u7FFB\u8BD1\u914D\u7F6E: .i18nrc.js\uFF08\u9700\u5B89\u88C5 @4399ywkf/i18n\uFF09");
|
|
777
777
|
}
|
|
778
778
|
function scaffoldLocaleJsonDirs(cwd, localesDir, locales, defaultLocale, namespaces, logger) {
|
|
779
779
|
const baseDir = join3(cwd, localesDir);
|