Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf8f6a34

Browse files
committed
Addtype: commonjs package.json to cjs output
1 parent5954aa1 commitf8f6a34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"prebuild":"npm run clean && npm run lint && mkdir dist",
3535
"build":"npm run build:esm && npm run build:cjs",
3636
"build:esm":"tsc",
37-
"build:cjs":"tsc --module commonjs --outDir dist/cjs",
37+
"build:cjs":"tsc --module commonjs --outDir dist/cjs && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
3838
"clean":"rm -rf dist",
3939
"lint":"eslint --report-unused-disable-directives . --color --ext .js,.ts,.tsx && tsc --noEmit",
4040
"prepublishOnly":"npm run build",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp