@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.
- package/dist/cli/index.js +115 -41
- package/dist/cli/index.js.map +1 -1
- package/dist/config/index.d.ts +2 -2
- package/dist/config/index.js +5 -3
- package/dist/config/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +117 -43
- 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 +80 -8
- package/dist/rspack/index.js.map +1 -1
- package/dist/{schema-Ba1qfYz_.d.ts → schema-Ade9gA3U.d.ts} +16 -1
- package/package.json +11 -12
package/dist/config/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Y as YwkfConfig } from '../schema-
|
|
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-
|
|
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';
|
package/dist/config/index.js
CHANGED
|
@@ -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("@
|
|
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@
|
|
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: []
|