File tree Expand file tree Collapse file tree 3 files changed +2155
-147
lines changed Expand file tree Collapse file tree 3 files changed +2155
-147
lines changed Original file line number Diff line number Diff line change 1+ import { defineBuildConfig } from 'unbuild' ;
2+
3+ export default defineBuildConfig ( {
4+ entries : [
5+ 'src/index' ,
6+ ] ,
7+ declaration : true ,
8+ clean : true ,
9+ rollup : {
10+ emitCJS : true ,
11+ } ,
12+ } ) ;
Original file line number Diff line number Diff line change 2020 " eslint" ,
2121 " rxjs"
2222 ],
23- "main" : " ./dist/index.js" ,
23+ "sideEffects" : false ,
24+ "exports" : {
25+ "." : {
26+ "types" : " ./dist/index.d.ts" ,
27+ "import" : " ./dist/index.mjs" ,
28+ "require" : " ./dist/index.cjs"
29+ }
30+ },
31+ "main" : " ./dist/index.mjs" ,
32+ "module" : " ./dist/index.mjs" ,
33+ "types" : " ./dist/index.d.ts" ,
2434 "files" : [
2535 " dist" ,
2636 " docs"
2737 ],
2838 "scripts" : {
29- "dist " : " echo \" todo \" " ,
39+ "build " : " unbuild " ,
3040 "lint" : " eslint" ,
31- "test" : " vitest"
41+ "test" : " vitest" ,
42+ "typecheck" : " tsc --noEmit"
3243 },
3344 "dependencies" : {
3445 "@typescript-eslint/scope-manager" : " ^8.12.2" ,
5869 "rxjs" : " ^7.0.0" ,
5970 "typescript" : " ~5.6.3" ,
6071 "typescript-eslint" : " ^8.12.2" ,
72+ "unbuild" : " ^2.0.0" ,
6173 "vitest" : " ^2.1.4"
6274 },
6375 "engines" : {
You can’t perform that action at this time.
0 commit comments