@rstest/adapter-rsbuild 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +4 -2
  2. package/package.json +26 -26
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ function toRstestConfig({ environmentName, rsbuildConfig: rawRsbuildConfig, modi
6
6
  const finalBuildConfig = modifyRsbuildConfig ? modifyRsbuildConfig(rsbuildConfig) : rsbuildConfig;
7
7
  const { rspack, swc, bundlerChain } = finalBuildConfig.tools || {};
8
8
  const { cssModules, target, module } = finalBuildConfig.output || {};
9
- const { decorators, define, include, exclude, tsconfigPath } = finalBuildConfig.source || {};
9
+ const { assetsInclude, decorators, define, include, exclude, tsconfigPath, transformImport } = finalBuildConfig.source || {};
10
10
  return {
11
11
  root: finalBuildConfig.root,
12
12
  name: environmentName,
@@ -21,11 +21,13 @@ function toRstestConfig({ environmentName, rsbuildConfig: rawRsbuildConfig, modi
21
21
  }
22
22
  ],
23
23
  source: {
24
+ assetsInclude,
24
25
  decorators,
25
26
  define,
26
27
  include,
27
28
  exclude,
28
- tsconfigPath
29
+ tsconfigPath,
30
+ transformImport
29
31
  },
30
32
  resolve: finalBuildConfig.resolve,
31
33
  output: {
package/package.json CHANGED
@@ -1,47 +1,47 @@
1
1
  {
2
2
  "name": "@rstest/adapter-rsbuild",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "Rstest adapter for rsbuild configuration",
5
+ "keywords": [
6
+ "rstest",
7
+ "rsbuild",
8
+ "adapter",
9
+ "configuration"
10
+ ],
11
+ "bugs": {
12
+ "url": "https://github.com/web-infra-dev/rstest/issues"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/web-infra-dev/rstest",
17
+ "directory": "packages/adapter-rsbuild"
18
+ },
19
+ "license": "MIT",
5
20
  "type": "module",
6
- "main": "dist/index.js",
7
- "types": "dist/index.d.ts",
8
21
  "exports": {
9
22
  ".": {
10
- "import": "./dist/index.js",
11
- "types": "./dist/index.d.ts"
23
+ "types": "./dist/index.d.ts",
24
+ "import": "./dist/index.js"
12
25
  }
13
26
  },
27
+ "main": "dist/index.js",
28
+ "types": "dist/index.d.ts",
14
29
  "files": [
15
30
  "dist"
16
31
  ],
17
- "keywords": [
18
- "rstest",
19
- "rsbuild",
20
- "adapter",
21
- "configuration"
22
- ],
23
- "license": "MIT",
32
+ "devDependencies": {
33
+ "@rsbuild/core": "2.0.0-rc.0",
34
+ "@rslib/core": "0.20.2",
35
+ "@rstest/core": "0.9.6",
36
+ "@rstest/tsconfig": "0.0.1"
37
+ },
24
38
  "peerDependencies": {
25
39
  "@rsbuild/core": "*",
26
40
  "@rstest/core": ">=0.7.7"
27
41
  },
28
- "devDependencies": {
29
- "@rsbuild/core": "2.0.0-beta.9",
30
- "@rslib/core": "0.20.0",
31
- "@rstest/core": "0.9.4",
32
- "@rstest/tsconfig": "0.0.1"
33
- },
34
42
  "publishConfig": {
35
43
  "access": "public"
36
44
  },
37
- "bugs": {
38
- "url": "https://github.com/web-infra-dev/rstest/issues"
39
- },
40
- "repository": {
41
- "type": "git",
42
- "url": "https://github.com/web-infra-dev/rstest",
43
- "directory": "packages/adapter-rsbuild"
44
- },
45
45
  "scripts": {
46
46
  "build": "rslib build",
47
47
  "dev": "rslib build --watch",