create-packer 1.43.0 → 1.43.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-packer",
3
- "version": "1.43.0",
3
+ "version": "1.43.1",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/kevily/create-packer",
6
6
  "author": "1k <bug_zero@163.com>",
@@ -1,2 +1,3 @@
1
+ PUBLIC_MODE=production
1
2
  PUBLIC_BASE_URL=/
2
3
  PUBLIC_API_HOST=/
@@ -1,2 +1,3 @@
1
+ PUBLIC_MODE=development
1
2
  PUBLIC_BASE_URL=/dev
2
3
  PUBLIC_API_HOST=/api
@@ -7,9 +7,9 @@ declare module 'styled-components' {
7
7
  }
8
8
  declare global {
9
9
  interface ImportMetaEnv {
10
- // import.meta.env.PUBLIC_FOO
11
10
  readonly PUBLIC_BASE_URL: string
12
11
  readonly PUBLIC_API_HOST: string
12
+ readonly PUBLIC_MODE: 'production' | 'development'
13
13
  }
14
14
 
15
15
  interface ImportMeta {
@@ -1,2 +1,3 @@
1
+ PUBLIC_MODE=production
1
2
  PUBLIC_BASE_URL=/
2
- PUBLIC_API_HOST=
3
+ PUBLIC_API_HOST=/
@@ -1,2 +1,3 @@
1
+ PUBLIC_MODE=development
1
2
  PUBLIC_BASE_URL=/dev
2
3
  PUBLIC_API_HOST=/api
@@ -9,6 +9,7 @@ declare module '*.vue' {
9
9
  interface ImportMetaEnv {
10
10
  readonly PUBLIC_BASE_URL: string
11
11
  readonly PUBLIC_API_HOST: string
12
+ readonly PUBLIC_MODE: 'production' | 'development'
12
13
  // 更多环境变量...
13
14
  }
14
15