@secret-momo/utils 1.0.0 → 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 +11 -0
  2. package/package.json +11 -2
package/README.md CHANGED
@@ -1,2 +1,13 @@
1
1
  # utils
2
+
2
3
  个人常用的工具库集合
4
+
5
+ ## NPM Publish
6
+
7
+ 需要在 `package.json` 中添加如下配置:
8
+
9
+ ```
10
+ "publishConfig": {
11
+ "access": "public"
12
+ }
13
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secret-momo/utils",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "module": "src/index.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -9,6 +9,14 @@
9
9
  "files": [
10
10
  "lib"
11
11
  ],
12
+ "main": "./lib/index.js",
13
+ "types": "./lib/index.d.ts",
14
+ "exports": {
15
+ ".": {
16
+ "types": "./lib/index.d.ts",
17
+ "import": "./lib/index.js"
18
+ }
19
+ },
12
20
  "lint-staged": {
13
21
  "*.{ts,tsx,js,jsx}": [
14
22
  "bunx eslint --fix",
@@ -19,6 +27,7 @@
19
27
  ]
20
28
  },
21
29
  "scripts": {
30
+ "postinstall": "bun outdated",
22
31
  "prepublishOnly": "bun run build",
23
32
  "build": "rm -rf lib && rollup -c && tsc -p tsconfig.json"
24
33
  },
@@ -33,7 +42,7 @@
33
42
  "eslint-plugin-unused-imports": "4.4.1",
34
43
  "husky": "9.1.7",
35
44
  "jiti": "2.7.0",
36
- "lint-staged": "16.4.0",
45
+ "lint-staged": "17.0.7",
37
46
  "prettier": "3.8.3",
38
47
  "rollup": "4.61.1",
39
48
  "rollup-plugin-esbuild": "6.2.1",