create-packer 1.35.7 → 1.35.9

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.35.7",
3
+ "version": "1.35.9",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/kevily/create-packer",
6
6
  "author": "1k <bug_zero@163.com>",
@@ -2,25 +2,27 @@
2
2
  import 'styled-components'
3
3
  import { themeType } from './shared/theme'
4
4
 
5
- declare module '*.svg' {
6
- const content: string
7
- export default content
8
- }
9
- declare module '*.svg?react' {
10
- const ReactComponent: React.FunctionComponent<React.SVGProps<SVGSVGElement>>
11
- export default ReactComponent
12
- }
13
-
14
5
  declare module 'styled-components' {
15
6
  export interface DefaultTheme extends themeType {}
16
7
  }
8
+ declare global {
9
+ interface ImportMetaEnv {
10
+ // import.meta.env.PUBLIC_FOO
11
+ readonly PUBLIC_BASE_URL: string
12
+ readonly PUBLIC_API_HOST: string
13
+ }
17
14
 
18
- interface ImportMetaEnv {
19
- // import.meta.env.PUBLIC_FOO
20
- readonly PUBLIC_BASE_URL: string
21
- readonly PUBLIC_API_HOST: string
22
- }
15
+ interface ImportMeta {
16
+ readonly env: ImportMetaEnv
17
+ }
18
+
19
+ declare module '*.svg' {
20
+ const content: string
21
+ export default content
22
+ }
23
23
 
24
- interface ImportMeta {
25
- readonly env: ImportMetaEnv
24
+ declare module '*.svg?react' {
25
+ const ReactComponent: FunctionComponent<SVGProps<SVGSVGElement>>
26
+ export default ReactComponent
27
+ }
26
28
  }