Skip to content

Commit 9eea73c

Browse files
authored
chore: bundle more dependencies (#582)
1 parent 3c19641 commit 9eea73c

File tree

5 files changed

+148
-18
lines changed

5 files changed

+148
-18
lines changed

packages/core/LICENSE.md

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,32 @@ Licensed under MIT license.
578578
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
579579
> SOFTWARE.
580580
581+
### chai
582+
583+
Licensed under MIT license in the repository at https://github.com/chaijs/chai.
584+
585+
> MIT License
586+
>
587+
> Copyright (c) 2017 Chai.js Assertion Library
588+
>
589+
> Permission is hereby granted, free of charge, to any person obtaining a copy
590+
> of this software and associated documentation files (the "Software"), to deal
591+
> in the Software without restriction, including without limitation the rights
592+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
593+
> copies of the Software, and to permit persons to whom the Software is
594+
> furnished to do so, subject to the following conditions:
595+
>
596+
> The above copyright notice and this permission notice shall be included in all
597+
> copies or substantial portions of the Software.
598+
>
599+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
600+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
601+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
602+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
603+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
604+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
605+
> SOFTWARE.
606+
581607
### chalk
582608

583609
Licensed under MIT license.
@@ -735,6 +761,81 @@ Licensed under MIT license in the repository at https://github.com/rich-harris/m
735761
>
736762
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
737763
764+
### pathe
765+
766+
Licensed under MIT license.
767+
768+
> MIT License
769+
>
770+
> Copyright (c) Pooya Parsa <[email protected]> - Daniel Roe <[email protected]>
771+
>
772+
> Permission is hereby granted, free of charge, to any person obtaining a copy
773+
> of this software and associated documentation files (the "Software"), to deal
774+
> in the Software without restriction, including without limitation the rights
775+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
776+
> copies of the Software, and to permit persons to whom the Software is
777+
> furnished to do so, subject to the following conditions:
778+
>
779+
> The above copyright notice and this permission notice shall be included in all
780+
> copies or substantial portions of the Software.
781+
>
782+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
783+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
784+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
785+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
786+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
787+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
788+
> SOFTWARE.
789+
>
790+
> ---
791+
>
792+
> Copyright Joyent, Inc. and other Node contributors.
793+
>
794+
> Permission is hereby granted, free of charge, to any person obtaining a
795+
> copy of this software and associated documentation files (the
796+
> "Software"), to deal in the Software without restriction, including
797+
> without limitation the rights to use, copy, modify, merge, publish,
798+
> distribute, sublicense, and/or sell copies of the Software, and to permit
799+
> persons to whom the Software is furnished to do so, subject to the
800+
> following conditions:
801+
>
802+
> The above copyright notice and this permission notice shall be included
803+
> in all copies or substantial portions of the Software.
804+
>
805+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
806+
> OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
807+
> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
808+
> NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
809+
> DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
810+
> OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
811+
> USE OR OTHER DEALINGS IN THE SOFTWARE.
812+
>
813+
> ---
814+
>
815+
> Bundled zeptomatch (https://github.com/fabiospampinato/zeptomatch)
816+
>
817+
> The MIT License (MIT)
818+
>
819+
> Copyright (c) 2023-present Fabio Spampinato
820+
>
821+
> Permission is hereby granted, free of charge, to any person obtaining a
822+
> copy of this software and associated documentation files (the "Software"),
823+
> to deal in the Software without restriction, including without limitation
824+
> the rights to use, copy, modify, merge, publish, distribute, sublicense,
825+
> and/or sell copies of the Software, and to permit persons to whom the
826+
> Software is furnished to do so, subject to the following conditions:
827+
>
828+
> The above copyright notice and this permission notice shall be included in
829+
> all copies or substantial portions of the Software.
830+
>
831+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
832+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
833+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
834+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
835+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
836+
> FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
837+
> DEALINGS IN THE SOFTWARE.
838+
738839
### picocolors
739840

740841
Licensed under ISC license.
@@ -916,6 +1017,32 @@ Licensed under MIT license in the repository at git+https://github.com/errwischt
9161017
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
9171018
> SOFTWARE.
9181019
1020+
### std-env
1021+
1022+
Licensed under MIT license.
1023+
1024+
> MIT License
1025+
>
1026+
> Copyright (c) Pooya Parsa <[email protected]>
1027+
>
1028+
> Permission is hereby granted, free of charge, to any person obtaining a copy
1029+
> of this software and associated documentation files (the "Software"), to deal
1030+
> in the Software without restriction, including without limitation the rights
1031+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1032+
> copies of the Software, and to permit persons to whom the Software is
1033+
> furnished to do so, subject to the following conditions:
1034+
>
1035+
> The above copyright notice and this permission notice shall be included in all
1036+
> copies or substantial portions of the Software.
1037+
>
1038+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1039+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1040+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1041+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1042+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1043+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1044+
> SOFTWARE.
1045+
9191046
### strip-ansi
9201047

9211048
Licensed under MIT license.

packages/core/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,14 @@
5050
"test": "npx rstest --globals"
5151
},
5252
"dependencies": {
53-
"chai": "^5.3.3",
5453
"@types/chai": "^5.2.2",
5554
"@rsbuild/core": "1.5.0",
56-
"birpc": "2.5.0",
57-
"pathe": "^2.0.3",
58-
"std-env": "^3.9.0",
5955
"tinypool": "^1.1.1"
6056
},
6157
"devDependencies": {
58+
"chai": "^5.3.3",
59+
"pathe": "^2.0.3",
60+
"birpc": "2.5.0",
6261
"@vitest/expect": "^3.2.4",
6362
"@vitest/snapshot": "^3.2.4",
6463
"@babel/code-frame": "^7.27.1",
@@ -82,6 +81,7 @@
8281
"picocolors": "^1.1.1",
8382
"rslog": "^1.2.11",
8483
"source-map-support": "^0.5.21",
84+
"std-env": "^3.9.0",
8585
"stacktrace-parser": "0.1.11",
8686
"strip-ansi": "^7.1.2",
8787
"tinyglobby": "^0.2.15",

packages/core/rslib.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ export default defineConfig({
1313
bundle: {
1414
bundledPackages: [
1515
'@types/sinonjs__fake-timers',
16+
'@types/istanbul-reports',
17+
'@types/istanbul-lib-report',
18+
'@types/istanbul-lib-coverage',
1619
'@jridgewell/trace-mapping',
1720
'@vitest/expect',
1821
'@vitest/snapshot',

packages/core/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1+
import type { RsbuildPlugin } from '@rsbuild/core';
12
import type {
23
CoverageOptions,
34
CoverageProvider,
45
NormalizedCoverageOptions,
56
RstestConfig,
67
} from './types';
78

8-
export type { RsbuildPlugin } from '@rsbuild/core';
9-
109
export { runCLI } from './cli';
1110
export { mergeRstestConfig } from './config';
1211
export * from './runtime/api/public';
@@ -16,6 +15,7 @@ export type {
1615
CoverageOptions,
1716
CoverageProvider,
1817
RstestConfig,
18+
RsbuildPlugin,
1919
};
2020

2121
export type RstestConfigAsyncFn = () => Promise<RstestConfig>;

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)