spoclip-kit 1.0.16 → 1.0.17

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 +10 -3
  2. package/package.json +27 -7
package/README.md CHANGED
@@ -48,9 +48,16 @@ npm run release:major
48
48
 
49
49
  ## 새로운 진입점 정의
50
50
 
51
- 1. src/new-module
51
+ ### 1. src/new-module
52
52
 
53
- 1. Update tsup.config.ts
53
+ ```
54
+ src
55
+ new-module
56
+ index.ts // re-export new-feature.ts
57
+ new-feature.ts
58
+ ```
59
+
60
+ ### 2. Update tsup.config.ts
54
61
 
55
62
  ```ts
56
63
  export default defineConfig({
@@ -65,7 +72,7 @@ export default defineConfig({
65
72
  });
66
73
  ```
67
74
 
68
- 2. Update package.json
75
+ ### 3. Update package.json
69
76
 
70
77
  ```json
71
78
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spoclip-kit",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "type": "module",
5
5
  "description": "TypeScript utility library for internal use",
6
6
  "files": [
@@ -11,14 +11,34 @@
11
11
  "types": "./dist/index.d.ts",
12
12
  "exports": {
13
13
  ".": {
14
- "types": "./dist/index.d.ts",
15
- "require": "./dist/index.cjs",
16
- "import": "./dist/index.js"
14
+ "import": {
15
+ "default": "./dist/index.js",
16
+ "types": "./dist/index.d.ts"
17
+ },
18
+ "require": {
19
+ "default": "./dist/index.cjs",
20
+ "types": "./dist/index.d.cts"
21
+ }
17
22
  },
18
23
  "./libs": {
19
- "types": "./dist/libs.d.ts",
20
- "require": "./dist/libs.cjs",
21
- "import": "./dist/libs.js"
24
+ "import": {
25
+ "default": "./dist/libs.js",
26
+ "types": "./dist/libs.d.ts"
27
+ },
28
+ "require": {
29
+ "default": "./dist/libs.cjs",
30
+ "types": "./dist/libs.d.cts"
31
+ }
32
+ },
33
+ "./types": {
34
+ "import": {
35
+ "default": "./dist/types.js",
36
+ "types": "./dist/types.d.ts"
37
+ },
38
+ "require": {
39
+ "default": "./dist/types.cjs",
40
+ "types": "./dist/types.d.cts"
41
+ }
22
42
  }
23
43
  },
24
44
  "scripts": {