@sanguogege/calendar 1.1.1 → 1.2.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.
package/README.md CHANGED
@@ -4,17 +4,17 @@
4
4
  `npm i @sanguogege/calendar`
5
5
 
6
6
  ```
7
- import calendar from "yz-calendar";
7
+ import calendar from "@sanguogege/calendar";
8
8
 
9
9
  const today = calendar.solar2lunar(2021, 3, 21)
10
10
 
11
11
  ```
12
12
 
13
13
 
14
- ### 传统页面直接复制/dist/index.js
14
+ ### 传统页面直接复制/dist/index.iife.js 或者 /dist/index.umd.cjsindex.iife.js
15
15
 
16
16
  ```
17
- <script src="./dist/index.js"></script>
17
+ <script src="./dist/index.iife.js"></script>
18
18
  <script>
19
19
  const today = calendar.solar2lunar(2021, 3, 21)
20
20
  </script>
@@ -35,7 +35,7 @@ declare const toGanZhiYear: (lYear: number) => string;
35
35
  /**
36
36
  * 传入offset偏移量返回干支
37
37
  * @param offset 相对甲子的偏移量
38
- * @return Cn string
38
+ * @return Cn { string }
39
39
  */
40
40
  declare const toGanZhi: (offset: number) => string;
41
41
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanguogege/calendar",
3
- "version": "1.1.1",
3
+ "version": "1.2.2",
4
4
  "keywords": [
5
5
  "日历",
6
6
  "农历",
@@ -11,7 +11,8 @@
11
11
  "author": "sanguogege",
12
12
  "type": "module",
13
13
  "main": "./dist/index.js",
14
- "types": "./dist/core/index.d.ts",
14
+ "types": "./dist/index.d.ts",
15
+ "repository": "https://github.com/sanguogege/calendar",
15
16
  "files": [
16
17
  "dist"
17
18
  ],
@@ -21,12 +22,12 @@
21
22
  "preview": "vite preview"
22
23
  },
23
24
  "devDependencies": {
25
+ "@vitejs/plugin-legacy": "^4.0.3",
24
26
  "rollup-plugin-dts": "^5.3.0",
27
+ "terser": "^5.17.1",
25
28
  "typescript": "^5.0.2",
26
29
  "vite": "^4.3.0",
30
+ "vite-plugin-build": "^0.9.0",
27
31
  "vite-plugin-dts": "^2.3.0"
28
- },
29
- "dependencies": {
30
- "vite-dts": "^1.0.4"
31
32
  }
32
33
  }
File without changes