@xfe-repo/mini-app 0.2.0 → 0.2.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/config/index.ts +2 -0
- package/package.json +3 -3
package/config/index.ts
CHANGED
|
@@ -10,6 +10,7 @@ export const appProjectRootRelPath = path.relative(path.join(__dirname, '..'), a
|
|
|
10
10
|
|
|
11
11
|
// 获取API_ENV环境变量 此处注意 需要stringify为带引号的字符串 这样在webpack中才能正确解析
|
|
12
12
|
export const API_ENV = JSON.stringify(process.env.API_ENV || '')
|
|
13
|
+
export const DUMI = JSON.stringify(process.env.DUMI || '')
|
|
13
14
|
|
|
14
15
|
export const XFE_JWT_AUD = JSON.stringify(process.env.XFE_JWT_AUD || '')
|
|
15
16
|
export const XFE_JWT_PRIVATE_KEY = JSON.stringify(process.env.XFE_JWT_PRIVATE_KEY || '')
|
|
@@ -32,6 +33,7 @@ export default defineConfig<'webpack5'>(async (merge) => {
|
|
|
32
33
|
outputRoot: path.join(appProjectRootRelPath, 'dist', process.env.TARO_ENV || ''),
|
|
33
34
|
env: {
|
|
34
35
|
API_ENV,
|
|
36
|
+
DUMI,
|
|
35
37
|
XFE_JWT_AUD,
|
|
36
38
|
XFE_JWT_PRIVATE_KEY,
|
|
37
39
|
XFE_JWT_KEY_ID,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xfe-repo/mini-app",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"bin": {
|
|
5
5
|
"xfe-mini": "./bin/index.js"
|
|
6
6
|
},
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"typescript": "5.5.4",
|
|
52
52
|
"webpack": "5.91.0",
|
|
53
53
|
"yaml": "^2.3.4",
|
|
54
|
-
"@xfe-repo/
|
|
55
|
-
"@xfe-repo/
|
|
54
|
+
"@xfe-repo/routes-define-webpack-plugin": "0.0.3",
|
|
55
|
+
"@xfe-repo/typescript-config": "0.0.6"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"react": "18.2.0",
|