@sanguogege/calendar 1.2.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.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +3 -1
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>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanguogege/calendar",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "keywords": [
5
5
  "日历",
6
6
  "农历",
@@ -12,6 +12,7 @@
12
12
  "type": "module",
13
13
  "main": "./dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
+ "repository": "https://github.com/sanguogege/calendar",
15
16
  "files": [
16
17
  "dist"
17
18
  ],
@@ -23,6 +24,7 @@
23
24
  "devDependencies": {
24
25
  "@vitejs/plugin-legacy": "^4.0.3",
25
26
  "rollup-plugin-dts": "^5.3.0",
27
+ "terser": "^5.17.1",
26
28
  "typescript": "^5.0.2",
27
29
  "vite": "^4.3.0",
28
30
  "vite-plugin-build": "^0.9.0",