File tree Expand file tree Collapse file tree 3 files changed +375
-596
lines changed Expand file tree Collapse file tree 3 files changed +375
-596
lines changed Original file line number Diff line number Diff line change 40
40
"build:cjs" : " swc ./src/index.ts --config-file ./.config/.swcrc -o dist/index.js -C module.type=commonjs" ,
41
41
"build:esm" : " swc ./src/index.ts --config-file ./.config/.swcrc -o dist/index.mjs -C module.type=es6 " ,
42
42
"build:tsc" : " tsc --project .config/tsconfig.build.json" ,
43
- "bundlesize" : " pnpm build && bundlesize -f 'dist/*.js' -s 1.2KB " ,
43
+ "bundlesize" : " pnpm build && size-limit " ,
44
44
"check" : " tsc --project tsconfig.json --noEmit" ,
45
45
"prepublishOnly" : " pnpm build"
46
46
},
47
47
"dependencies" : {
48
48
"clsx" : " ^2.1.1"
49
49
},
50
50
"devDependencies" : {
51
+ "@size-limit/preset-small-lib" : " ^11.2.0" ,
51
52
"@swc/cli" : " 0.3.12" ,
52
53
"@swc/core" : " 1.4.16" ,
53
54
"@types/node" : " 20.12.7" ,
54
55
"@types/react" : " 18.2.79" ,
55
56
"@types/react-dom" : " 18.2.25" ,
56
- "bundlesize" : " 0.18.2" ,
57
57
"react" : " 18.2.0" ,
58
58
"react-dom" : " 18.2.0" ,
59
+ "size-limit" : " ^11.2.0" ,
59
60
"ts-node" : " 10.9.2" ,
60
61
"typescript" : " 5.7.3"
61
62
},
73
74
"main" : " dist/index.js" ,
74
75
"module" : " dist/index.mjs" ,
75
76
"types" : " dist/index.d.ts"
76
- }
77
+ },
78
+ "size-limit" : [
79
+ {
80
+ "path" : " dist/index.js" ,
81
+ "limit" : " 1.2KB"
82
+ }
83
+ ]
77
84
}
Original file line number Diff line number Diff line change 35
35
"build:cjs" : " swc ./src/index.ts --config-file ./.config/.swcrc -o dist/index.js -C module.type=commonjs" ,
36
36
"build:esm" : " swc ./src/index.ts --config-file ./.config/.swcrc -o dist/index.mjs -C module.type=es6 " ,
37
37
"build:tsc" : " tsc --project .config/tsconfig.build.json" ,
38
- "bundlesize" : " pnpm build && bundlesize -f 'dist/*.js' -s 1.6KB " ,
38
+ "bundlesize" : " pnpm build && size-limit " ,
39
39
"check" : " pnpm run '/^check:.*/'" ,
40
40
"check:exports" : " attw --pack ." ,
41
41
"check:tsc" : " tsc --project tsconfig.json --noEmit" ,
47
47
},
48
48
"devDependencies" : {
49
49
"@arethetypeswrong/cli" : " 0.17.3" ,
50
+ "@size-limit/preset-small-lib" : " ^11.2.0" ,
50
51
"@swc/cli" : " 0.3.12" ,
51
52
"@swc/core" : " 1.4.16" ,
52
53
"@types/node" : " 20.12.7" ,
53
54
"@types/react" : " 18.2.79" ,
54
55
"@types/react-dom" : " 18.2.25" ,
55
- "bundlesize" : " 0.18.2" ,
56
56
"react" : " 18.2.0" ,
57
57
"react-dom" : " 18.2.0" ,
58
+ "size-limit" : " ^11.2.0" ,
58
59
"ts-node" : " 10.9.2" ,
59
60
"typescript" : " 5.7.3"
60
61
},
75
76
"main" : " dist/index.js" ,
76
77
"module" : " dist/index.mjs" ,
77
78
"types" : " dist/index.d.ts"
78
- }
79
+ },
80
+ "size-limit" : [
81
+ {
82
+ "path" : " dist/index.js" ,
83
+ "limit" : " 1.6KB"
84
+ }
85
+ ]
79
86
}
You can’t perform that action at this time.
0 commit comments