Skip to content

Commit 8e6575a

Browse files
authored
Merge pull request #206 from deflis/update-20261210
パッケージバージョンアップとtsdownの設定追加と型キャストの修正
2 parents 18f1fdd + b05601f commit 8e6575a

File tree

9 files changed

+1196
-1234
lines changed

9 files changed

+1196
-1234
lines changed

examples/fetch/README.md

Whitespace-only changes.

examples/fetch/brower.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { search } from "narou/browser"
2+
3+
async function main() {
4+
console.log(await search("ハーレム").execute())
5+
}
6+
7+
main()

examples/fetch/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { search } from "narou"
2+
3+
async function main() {
4+
console.log(await search("ハーレム").execute())
5+
}
6+
7+
main()

examples/fetch/package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "fetch",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"keywords": [],
10+
"author": "",
11+
"license": "ISC",
12+
"packageManager": "pnpm@10.10.0",
13+
"dependencies": {
14+
"narou": "link:../.."
15+
}
16+
}

package.json

Lines changed: 24 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -11,38 +11,26 @@
1111
"type": "module",
1212
"exports": {
1313
".": {
14-
"types": "./dist/index.d.ts",
14+
"types": "./dist/index.d.mts",
1515
"node": {
16-
"import": "./dist/index.js",
16+
"import": "./dist/index.mjs",
1717
"require": "./dist/index.cjs"
1818
},
1919
"browser": {
20-
"import": "./dist/index.browser.js",
20+
"import": "./dist/index.browser.mjs",
2121
"require": "./dist/index.browser.cjs"
2222
},
23-
"default": "./dist/index.js"
23+
"default": "./dist/index.mjs"
2424
},
2525
"./browser": {
26-
"types": "./dist/index.browser.d.ts",
27-
"import": "./dist/index.browser.js",
26+
"types": "./dist/index.browser.d.mts",
27+
"import": "./dist/index.browser.mjs",
2828
"require": "./dist/index.browser.cjs",
29-
"default": "./dist/index.browser.js"
30-
},
31-
"./utils/*": {
32-
"types": "./dist/utils/*.d.ts",
33-
"import": "./dist/utils/*.js",
34-
"require": "./dist/utils/*.cjs",
35-
"default": "./dist/utils/*.js"
36-
},
37-
"./*": {
38-
"types": "./dist/*.d.ts",
39-
"import": "./dist/*.js",
40-
"require": "./dist/*.cjs",
41-
"default": "./dist/*.js"
29+
"default": "./dist/index.browser.mjs"
4230
}
4331
},
4432
"main": "dist/index.cjs",
45-
"types": "dist/index.d.ts",
33+
"types": "dist/index.d.mts",
4634
"files": [
4735
"dist",
4836
"src",
@@ -52,7 +40,7 @@
5240
],
5341
"scripts": {
5442
"build": "run-z check build:tsc",
55-
"build:tsc": "tsup ./src",
43+
"build:tsc": "tsdown",
5644
"check": "run-z check:lint,check:build,test",
5745
"check:lint": "eslint src/** test/**",
5846
"check:build": "tsc --noEmit",
@@ -66,27 +54,27 @@
6654
"docs:llms": "node scripts/generate-llms-txt.js"
6755
},
6856
"devDependencies": {
69-
"@swc/core": "^1.11.29",
70-
"@types/node": "^24.0.8",
71-
"@typescript-eslint/eslint-plugin": "^8.31.1",
72-
"@typescript-eslint/parser": "^8.31.1",
73-
"@vitest/coverage-v8": "^3.1.2",
57+
"@swc/core": "^1.15.3",
58+
"@types/node": "^24.10.2",
59+
"@typescript-eslint/eslint-plugin": "^8.49.0",
60+
"@typescript-eslint/parser": "^8.49.0",
61+
"@vitest/coverage-v8": "^3.2.4",
7462
"date-fns": "^4.1.0",
75-
"eslint": "^9.25.1",
76-
"eslint-config-prettier": "^10.1.2",
77-
"eslint-plugin-prettier": "^5.2.6",
78-
"globals": "^16.0.0",
79-
"msw": "^2.7.5",
80-
"prettier": "^3.5.3",
63+
"eslint": "^9.39.1",
64+
"eslint-config-prettier": "^10.1.8",
65+
"eslint-plugin-prettier": "^5.5.4",
66+
"globals": "^16.5.0",
67+
"msw": "^2.12.4",
68+
"prettier": "^3.7.4",
8169
"run-z": "^2.1.0",
82-
"tsup": "^8.4.0",
83-
"typescript": "^5.8.3",
84-
"vitest": "^3.1.2"
70+
"tsdown": "^0.17.2",
71+
"typescript": "^5.9.3",
72+
"vitest": "^3.2.4"
8573
},
8674
"engines": {
8775
"node": ">=16.0.0",
8876
"pnpm": ">=8"
8977
},
9078
"module": "dist/index.js",
9179
"packageManager": "pnpm@10.10.0"
92-
}
80+
}

0 commit comments

Comments
 (0)