@4399ywkf/core 5.1.6 → 5.3.0

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.
@@ -980,6 +980,21 @@ interface EnvConfig {
980
980
  publicEnvFile?: string;
981
981
  /** 环境特定的变量文件目录 */
982
982
  envDir?: string;
983
+ /**
984
+ * 额外内联进客户端产物的环境变量名。
985
+ *
986
+ * 产物只内联 env 文件里声明的键 + 框架自身变量 + 本项 + `exposePrefixes` 前缀命中的键,
987
+ * 其余(构建机 shell、CI 凭据等)一律不进产物。用于「不写在 env 文件、由 CI 注入」的公开变量。
988
+ *
989
+ * @example ["SENTRY_RELEASE", "BUILD_VERSION"]
990
+ */
991
+ expose?: string[];
992
+ /**
993
+ * 按前缀放行的环境变量,同 Vite 的 `VITE_` / Next 的 `NEXT_PUBLIC_` 约定。
994
+ *
995
+ * @default ["YWKF_PUBLIC_", "NEXT_PUBLIC_"]
996
+ */
997
+ exposePrefixes?: string[];
983
998
  }
984
999
  /**
985
1000
  * 内置插件快捷配置
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4399ywkf/core",
3
- "version": "5.1.6",
3
+ "version": "5.3.0",
4
4
  "description": "4399运维开发前端框架核心",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",