Skip to content

Commit ad93e31

Browse files
fix: インポートできない問題を修正し末尾の-util を削除
1 parent 54089b2 commit ad93e31

8 files changed

Lines changed: 13 additions & 22 deletions

File tree

.changeset/dry-webs-dream.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@yoshinani/utils': minor
3+
---
4+
5+
インポートできない問題を修正し末尾の-util を削除

package.json

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"scripts": {
2424
"prepare": "husky",
25-
"build": "tsdown --clean",
25+
"build": "tsdown",
2626
"dev": "tsdown --watch",
2727
"release": "changeset publish",
2828
"check": "pnpm run lint && biome check .",
@@ -33,18 +33,10 @@
3333
"tsc": "tsc --noEmit"
3434
},
3535
"exports": {
36-
"./date-util": {
37-
"types": "./dist/date-util/index.d.ts",
38-
"default": "./dist/date-util/index.js"
39-
},
40-
"./file-util": {
41-
"types": "./dist/file-util/index.d.ts",
42-
"default": "./dist/file-util/index.js"
43-
},
44-
"./string-util": {
45-
"types": "./dist/string-util/index.d.ts",
46-
"default": "./dist/string-util/index.js"
47-
}
36+
"./date": "./dist/date/index.js",
37+
"./file": "./dist/file/index.js",
38+
"./string": "./dist/string/index.js",
39+
"./package.json": "./package.json"
4840
},
4941
"files": [
5042
"dist"

tsdown.config.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
import { defineConfig } from "tsdown"
22

33
export default defineConfig({
4-
entry: {
5-
"date-util/index": "src/date-util/index.ts",
6-
"file-util/index": "src/file-util/index.ts",
7-
"string-util/index": "src/string-util/index.ts",
8-
},
9-
format: "esm",
10-
target: "es2022",
11-
outDir: "dist",
4+
entry: ["src/**/*.ts", "!src/**/*.spec.ts"],
5+
unbundle: true,
6+
exports: true,
127
dts: true,
138
sourcemap: true,
14-
bundle: false,
159
clean: true,
1610
})

0 commit comments

Comments
 (0)