Skip to content

Commit 2888e7b

Browse files
committed
docs: add readme to build
1 parent 6b45fea commit 2888e7b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"test": "vitest",
88
"typecheck": "tsc --noEmit",
9-
"build": "swc ./src -d dist --no-swcrc --config-file .swcrc.build && cp src/index.d.ts dist/index.d.ts && cp LICENSE dist/LICENSE"
9+
"build": "sh ./scripts/build.sh"
1010
},
1111
"repository": {
1212
"type": "git",

scripts/build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
swc ./src -d dist --no-swcrc --config-file .swcrc.build
2+
cp src/index.d.ts dist/index.d.ts
3+
cp LICENSE dist/LICENSE
4+
cp README.md dist/README.md

0 commit comments

Comments
 (0)