Skip to content

Commit 65addaf

Browse files
committed
Update package.json
Signed-off-by: Sora Morimoto <[email protected]>
1 parent 4ea88d5 commit 65addaf

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

package.json

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,28 @@
1313
"type": "module",
1414
"exports": {
1515
".": {
16-
"import": "./dist/index.js",
17-
"require": "./dist/index.cjs"
16+
"require": "./dist/index.cjs",
17+
"import": "./dist/index.mjs"
1818
},
1919
"./cli": {
20-
"import": "./dist/cli.js",
21-
"require": "./dist/cli.cjs"
20+
"require": "./dist/cli.cjs",
21+
"import": "./dist/cli.mjs"
2222
},
2323
"./package.json": "./package.json"
2424
},
2525
"main": "./dist/index.cjs",
26-
"module": "./dist/index.js",
26+
"module": "./dist/index.mjs",
2727
"types": "./dist/index.d.cts",
2828
"bin": {
29-
"sta": "./dist/cli.js",
30-
"swagger-typescript-api": "./dist/cli.js"
29+
"sta": "./dist/cli.mjs",
30+
"swagger-typescript-api": "./dist/cli.mjs"
3131
},
3232
"files": [
3333
"dist",
3434
"templates"
3535
],
3636
"scripts": {
3737
"build": "tsdown",
38-
"cli:help": "node index.js -h",
39-
"cli:json": "node index.js -r -d -p ./swagger-test-cli.json -n swagger-test-cli.ts",
40-
"cli:yaml": "node index.js -r -d -p ./swagger-test-cli.yaml -n swagger-test-cli.ts",
4138
"format": "biome format --write .",
4239
"format:check": "biome format .",
4340
"lint": "biome check",

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3652,8 +3652,8 @@ __metadata:
36523652
vitest: "npm:4.0.16"
36533653
yaml: "npm:^2.8.1"
36543654
bin:
3655-
sta: ./dist/cli.js
3656-
swagger-typescript-api: ./dist/cli.js
3655+
sta: ./dist/cli.mjs
3656+
swagger-typescript-api: ./dist/cli.mjs
36573657
languageName: unknown
36583658
linkType: soft
36593659

0 commit comments

Comments
 (0)