Skip to content

Commit 010f53b

Browse files
authored
build: add tsup for build (#135)
* build: add tsup for build * build: 在 rush-project.json 中添加 test:cov 操作配置
1 parent 9c67211 commit 010f53b

6 files changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@coze-editor/lang-javascript",
5+
"comment": "add tsup for build",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@coze-editor/lang-javascript",
10+
"email": "hanchayi@163.com"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@coze-editor/lang-javascript",
5+
"comment": "在 rush-project.json 中添加 test:cov 操作配置",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@coze-editor/lang-javascript",
10+
"email": "hanchayi@163.com"
11+
}

common/config/subspaces/default/pnpm-lock.yaml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/text-editor/lang-javascript/config/rush-project.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
{
88
"operationName": "ts-check",
99
"outputFolderNames": ["./dist"]
10+
},
11+
{
12+
"operationName": "test:cov",
13+
"outputFolderNames": ["coverage"]
1014
}
1115
]
1216
}

packages/text-editor/lang-javascript/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@
2727
"@lezer/javascript": "^1.4.19"
2828
},
2929
"devDependencies": {
30+
"@coze-arch/ts-config": "workspace:*",
3031
"@coze-arch/vitest-config": "workspace:*",
3132
"@coze-editor/eslint-config": "workspace:*",
3233
"@lezer/lr": "^1.4.0",
3334
"@vitest/coverage-v8": "^3.0.9",
3435
"eslint": "9.14.0",
36+
"tsup": "^8.0.1",
3537
"vitest": "^3.0.9"
3638
},
3739
"publishConfig": {

packages/text-editor/lang-javascript/tsconfig.build.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
},
1414
"include": ["src"],
1515
"references": [
16+
{
17+
"path": "../../../config/ts-config/tsconfig.build.json"
18+
},
1619
{
1720
"path": "../../../config/vitest-config/tsconfig.build.json"
1821
},

0 commit comments

Comments
 (0)