@4399ywkf/core 5.1.6 → 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.
@@ -1,5 +1,5 @@
1
- import { Y as YwkfConfig } from '../schema-Ba1qfYz_.js';
2
- export { B as BuiltinPluginConfig, D as DevServerConfig, E as EnvConfig, H as HtmlConfig, M as MicroFrontendConfig, O as OptionalPluginConfig, b as OutputConfig, P as PerformanceConfig, R as RouterConfig, S as StyleConfig, T as ToolsConfig, c as YwkfUserConfig, d as defaultConfig, a as defineConfig } from '../schema-Ba1qfYz_.js';
1
+ import { Y as YwkfConfig } from '../schema-Ade9gA3U.js';
2
+ export { B as BuiltinPluginConfig, D as DevServerConfig, E as EnvConfig, H as HtmlConfig, M as MicroFrontendConfig, O as OptionalPluginConfig, b as OutputConfig, P as PerformanceConfig, R as RouterConfig, S as StyleConfig, T as ToolsConfig, c as YwkfUserConfig, d as defaultConfig, a as defineConfig } from '../schema-Ade9gA3U.js';
3
3
  import '@rspack/core';
4
4
  import '../types-ZJhd87ue.js';
5
5
  import 'react';
@@ -755,7 +755,7 @@ function scaffoldI18nRc(cwd, localesDir, defaultLocale, locales, logger) {
755
755
  const filePath = join3(cwd, ".i18nrc.js");
756
756
  if (existsSync3(filePath)) return;
757
757
  const outputLocales = locales.filter((l) => l !== defaultLocale).map((l) => `"${l}"`).join(", ");
758
- const content = `const { defineConfig } = require("@lobehub/i18n-cli");
758
+ const content = `const { defineConfig } = require("@4399ywkf/i18n");
759
759
 
760
760
  module.exports = defineConfig({
761
761
  entry: "${localesDir}/${defaultLocale}",
@@ -765,7 +765,7 @@ module.exports = defineConfig({
765
765
  });
766
766
  `;
767
767
  writeFileSync2(filePath, content, "utf-8");
768
- logger.info("\u5DF2\u751F\u6210\u7FFB\u8BD1\u914D\u7F6E: .i18nrc.js\uFF08@lobehub/i18n-cli\uFF09");
768
+ logger.info("\u5DF2\u751F\u6210\u7FFB\u8BD1\u914D\u7F6E: .i18nrc.js\uFF08\u9700\u5B89\u88C5 @4399ywkf/i18n\uFF09");
769
769
  }
770
770
  function scaffoldLocaleJsonDirs(cwd, localesDir, locales, defaultLocale, namespaces, logger) {
771
771
  const baseDir = join3(cwd, localesDir);
@@ -2165,7 +2165,9 @@ var defaultConfig = {
2165
2165
  tools: {},
2166
2166
  env: {
2167
2167
  publicEnvFile: "config/env/.env.public",
2168
- envDir: "config/env"
2168
+ envDir: "config/env",
2169
+ expose: [],
2170
+ exposePrefixes: ["YWKF_PUBLIC_", "NEXT_PUBLIC_"]
2169
2171
  },
2170
2172
  alias: {},
2171
2173
  plugins: []