@microbt/environment 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +15 -12
package/README.md CHANGED
@@ -70,7 +70,7 @@ console.log(regionCode); // 输出: 'cn'
70
70
 
71
71
  ```typescript
72
72
  const url = baseUrl();
73
- console.log(url); // 输出: '//api-cn-prod.superacme.com'
73
+ console.log(url); // 输出: '//api-cn.superacme.com'
74
74
  ```
75
75
 
76
76
  ## 混合应用相关函数
package/package.json CHANGED
@@ -1,11 +1,22 @@
1
1
  {
2
2
  "name": "@microbt/environment",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "microbt app library for environment",
5
5
  "keywords": [],
6
6
  "license": "MIT",
7
- "main": "dist/umd/shared.min.js",
7
+ "main": "dist/umd/environment.min.js",
8
8
  "types": "dist/esm/index.d.ts",
9
+ "scripts": {
10
+ "build": "father build",
11
+ "build:deps": "father prebundle",
12
+ "dev": "father dev",
13
+ "format": "prettier --cache --write .",
14
+ "lint": "eslint . --fix ",
15
+ "prepare": "husky install",
16
+ "prepublishOnly": "father doctor && npm run test && npm run build",
17
+ "postpublish": "cnpm sync @microbt/environment",
18
+ "test": "jest"
19
+ },
9
20
  "lint-staged": {
10
21
  "*.{md,json}": [
11
22
  "prettier --cache --write"
@@ -41,13 +52,5 @@
41
52
  "access": "public",
42
53
  "registry": "https://registry.npmjs.org"
43
54
  },
44
- "authors": [],
45
- "scripts": {
46
- "build": "father build",
47
- "build:deps": "father prebundle",
48
- "dev": "father dev",
49
- "format": "prettier --cache --write .",
50
- "lint": "eslint . --fix ",
51
- "test": "jest"
52
- }
53
- }
55
+ "authors": []
56
+ }