Skip to content

Commit ab713bf

Browse files
committed
chore: 更新配置文件并添加publint依赖
- 在vitest.config.ts中修复文件末尾换行符问题 - 在rslib.config.ts中排除测试目录以优化构建 - 在package.json中调整模块路径并添加publint脚本和依赖 - 在pnpm-lock.yaml中更新依赖项以支持publint
1 parent 38c4acf commit ab713bf

4 files changed

Lines changed: 31 additions & 27 deletions

File tree

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@
1111
".": {
1212
"import": {
1313
"types": "./dist/index.d.ts",
14-
"default": "./dist/esm/index.js"
14+
"default": "./dist/index.js"
1515
},
1616
"require": {
17-
"types": "./dist/index.d.cts",
18-
"default": "./dist/umd/index.js"
17+
"default": "./dist/index.cjs"
1918
}
2019
}
2120
},
@@ -44,6 +43,7 @@
4443
"test:ui": "vitest --ui",
4544
"release": "pnpm build && bumpp --commit --push --tag && pnpm publish --no-git-checks",
4645
"postinstall": "simple-git-hooks",
46+
"lint:package": "publint",
4747
"type-check": "tsc --noEmit"
4848
},
4949
"simple-git-hooks": {
@@ -59,6 +59,7 @@
5959
"bumpp": "^10.1.0",
6060
"gh-pages": "^6.3.0",
6161
"prettier": "^3.5.2",
62+
"publint": "^0.3.12",
6263
"rspress": "^1.43.9",
6364
"rspress-plugin-sitemap": "^1.1.1",
6465
"simple-git-hooks": "^2.9.0",

pnpm-lock.yaml

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

rslib.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ export default defineConfig({
4141
}
4242
}
4343
],
44+
source: {
45+
exclude: [
46+
'src/__tests__/'
47+
]
48+
},
4449
output: {
4550
target: 'web'
4651
}

vitest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ export default defineConfig({
2424
},
2525
},
2626
},
27-
});
27+
});

0 commit comments

Comments
 (0)