create-rstack 3.2.0 → 3.2.2

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 (82) hide show
  1. package/README.md +1 -1
  2. package/package.json +2 -2
  3. package/template-app-lit/package.json +1 -1
  4. package/template-app-lit/rstack.config.js +8 -10
  5. package/template-app-lit-ts/package.json +1 -1
  6. package/template-app-lit-ts/rstack.config.ts +9 -10
  7. package/template-app-lit-ts/tests/tsconfig.json +7 -0
  8. package/template-app-preact/package.json +2 -2
  9. package/template-app-preact/rstack.config.js +10 -11
  10. package/template-app-preact-ts/package.json +2 -2
  11. package/template-app-preact-ts/rstack.config.ts +11 -12
  12. package/template-app-react/package.json +2 -2
  13. package/template-app-react/rstack.config.js +10 -11
  14. package/template-app-react-ts/package.json +2 -2
  15. package/template-app-react-ts/rstack.config.ts +11 -12
  16. package/template-app-solid/package.json +4 -4
  17. package/template-app-solid/rstack.config.js +8 -7
  18. package/template-app-solid-ts/package.json +4 -4
  19. package/template-app-solid-ts/rstack.config.ts +9 -7
  20. package/template-app-svelte/package.json +3 -3
  21. package/template-app-svelte/rstack.config.js +8 -7
  22. package/template-app-svelte-ts/package.json +4 -4
  23. package/template-app-svelte-ts/rstack.config.ts +9 -7
  24. package/template-app-svelte-ts/tests/tsconfig.json +1 -1
  25. package/template-app-vanilla/package.json +2 -2
  26. package/template-app-vanilla/rstack.config.js +8 -6
  27. package/template-app-vanilla/tests/dom.test.js +1 -1
  28. package/template-app-vanilla-ts/package.json +2 -2
  29. package/template-app-vanilla-ts/rstack.config.ts +9 -6
  30. package/template-app-vanilla-ts/tests/dom.test.ts +1 -1
  31. package/template-app-vue/package.json +2 -2
  32. package/template-app-vue/rstack.config.js +8 -7
  33. package/template-app-vue-ts/package.json +3 -3
  34. package/template-app-vue-ts/rstack.config.ts +9 -7
  35. package/template-common/README.md +2 -2
  36. package/template-doc/README.md +1 -1
  37. package/template-doc/package.json +1 -1
  38. package/template-doc/rstack.config.ts +7 -11
  39. package/template-doc-i18n/README.md +1 -1
  40. package/template-doc-i18n/package.json +1 -1
  41. package/template-doc-i18n/rstack.config.ts +7 -11
  42. package/template-lib-node/README.md +1 -1
  43. package/template-lib-node/package.json +2 -6
  44. package/template-lib-node/rstack.config.js +9 -13
  45. package/template-lib-node-ts/README.md +1 -1
  46. package/template-lib-node-ts/package.json +1 -1
  47. package/template-lib-node-ts/rstack.config.ts +9 -11
  48. package/template-lib-node-ts/tests/tsconfig.json +8 -0
  49. package/template-lib-react/README.md +1 -1
  50. package/template-lib-react/package.json +3 -7
  51. package/template-lib-react/rstack.config.js +10 -16
  52. package/template-lib-react-ts/README.md +1 -1
  53. package/template-lib-react-ts/package.json +2 -2
  54. package/template-lib-react-ts/rstack.config.ts +11 -17
  55. package/template-lib-react-ts/tests/tsconfig.json +1 -1
  56. package/template-lib-react-ts/tsconfig.json +1 -1
  57. package/template-lib-solid/README.md +1 -1
  58. package/template-lib-solid/package.json +4 -4
  59. package/template-lib-solid/rstack.config.js +9 -15
  60. package/template-lib-solid-ts/README.md +1 -1
  61. package/template-lib-solid-ts/package.json +5 -5
  62. package/template-lib-solid-ts/rstack.config.ts +10 -15
  63. package/template-lib-solid-ts/tests/tsconfig.json +1 -1
  64. package/template-lib-solid-ts/tsconfig.json +1 -1
  65. package/template-lib-svelte/README.md +1 -1
  66. package/template-lib-svelte/package.json +4 -5
  67. package/template-lib-svelte/rstack.config.js +8 -17
  68. package/template-lib-svelte-ts/README.md +1 -1
  69. package/template-lib-svelte-ts/package.json +6 -5
  70. package/template-lib-svelte-ts/rstack.config.ts +9 -17
  71. package/template-lib-svelte-ts/tests/tsconfig.json +3 -1
  72. package/template-lib-svelte-ts/tsconfig.json +4 -4
  73. package/template-lib-vue/README.md +1 -1
  74. package/template-lib-vue/package.json +3 -7
  75. package/template-lib-vue/rstack.config.js +8 -12
  76. package/template-lib-vue/tests/index.test.js +3 -2
  77. package/template-lib-vue-ts/README.md +1 -1
  78. package/template-lib-vue-ts/package.json +3 -3
  79. package/template-lib-vue-ts/rstack.config.ts +9 -12
  80. package/template-lib-vue-ts/tests/index.test.ts +3 -2
  81. package/template-lib-vue-ts/tests/tsconfig.json +2 -1
  82. package/template-lib-vue-ts/tsconfig.json +1 -1
@@ -18,9 +18,9 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "@rsbuild/plugin-vue": "^2.0.1",
21
- "@testing-library/jest-dom": "^7.0.0",
21
+ "@testing-library/jest-dom": "^7.0.1",
22
22
  "@vue/test-utils": "^2.4.11",
23
23
  "happy-dom": "^20.11.2",
24
- "rstack": "^0.6.0"
24
+ "rstack": "^0.6.2"
25
25
  }
26
26
  }
@@ -1,10 +1,9 @@
1
1
  // @ts-check
2
- // Rstack configuration guide: https://rstack.rs/config
2
+ // Configuration guide: https://rstack.rs/config
3
3
  import { define } from 'rstack';
4
4
 
5
5
  define.app(async () => {
6
6
  const { pluginVue } = await import('@rsbuild/plugin-vue');
7
-
8
7
  return {
9
8
  plugins: [pluginVue()],
10
9
  };
@@ -14,11 +13,13 @@ define.test({
14
13
  setupFiles: ['./tests/rstest.setup.js'],
15
14
  });
16
15
 
17
- define.lint(async () => {
18
- const { js } = await import('rstack/lint');
19
-
20
- return [js.configs.recommended];
21
- });
16
+ define.lint(({ js, rstestPlugin }) => [
17
+ js.configs.recommended,
18
+ {
19
+ files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
20
+ ...rstestPlugin.configs.recommended,
21
+ },
22
+ ]);
22
23
 
23
24
  define.fmt({
24
25
  singleQuote: true,
@@ -18,12 +18,12 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "@rsbuild/plugin-vue": "^2.0.1",
21
- "@testing-library/jest-dom": "^7.0.0",
21
+ "@testing-library/jest-dom": "^7.0.1",
22
22
  "@types/node": "^24.13.3",
23
23
  "@vue/test-utils": "^2.4.11",
24
24
  "happy-dom": "^20.11.2",
25
- "rstack": "^0.6.0",
25
+ "rstack": "^0.6.2",
26
26
  "typescript": "^6.0.3",
27
- "vue-tsc": "^3.3.9"
27
+ "vue-tsc": "^3.3.10"
28
28
  }
29
29
  }
@@ -1,9 +1,8 @@
1
- // Rstack configuration guide: https://rstack.rs/config
1
+ // Configuration guide: https://rstack.rs/config
2
2
  import { define } from 'rstack';
3
3
 
4
4
  define.app(async () => {
5
5
  const { pluginVue } = await import('@rsbuild/plugin-vue');
6
-
7
6
  return {
8
7
  plugins: [pluginVue()],
9
8
  };
@@ -13,11 +12,14 @@ define.test({
13
12
  setupFiles: ['./tests/rstest.setup.ts'],
14
13
  });
15
14
 
16
- define.lint(async () => {
17
- const { js, ts } = await import('rstack/lint');
18
-
19
- return [js.configs.recommended, ts.configs.recommendedTypeChecked];
20
- });
15
+ define.lint(({ js, ts, rstestPlugin }) => [
16
+ js.configs.recommended,
17
+ ts.configs.recommendedTypeChecked,
18
+ {
19
+ files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
20
+ ...rstestPlugin.configs.recommended,
21
+ },
22
+ ]);
21
23
 
22
24
  define.fmt({
23
25
  singleQuote: true,
@@ -21,5 +21,5 @@ Install the dependencies:
21
21
 
22
22
  ## Learn more
23
23
 
24
- - [Rstack documentation](https://rstack.rs)
25
- - [Rstack GitHub repository](https://github.com/rstackjs/rstack-cli)
24
+ - [Rstack CLI documentation](https://rstack.rs)
25
+ - [Rstack CLI GitHub repository](https://github.com/rstackjs/rstack-cli)
@@ -19,5 +19,5 @@ Install the dependencies:
19
19
 
20
20
  ## Learn more
21
21
 
22
- - [Rstack documentation](https://rstack.rs)
22
+ - [Rstack CLI documentation](https://rstack.rs)
23
23
  - [Rspress documentation](https://rspress.rs)
@@ -18,7 +18,7 @@
18
18
  "@types/react-dom": "^19.2.4",
19
19
  "react": "^19.2.8",
20
20
  "react-dom": "^19.2.8",
21
- "rstack": "^0.6.0",
21
+ "rstack": "^0.6.2",
22
22
  "typescript": "^7.0.2"
23
23
  }
24
24
  }
@@ -1,4 +1,4 @@
1
- // Rstack configuration guide: https://rstack.rs/config
1
+ // Configuration guide: https://rstack.rs/config
2
2
  import path from 'node:path';
3
3
  import { define } from 'rstack';
4
4
 
@@ -7,16 +7,12 @@ define.doc({
7
7
  title: 'My Site',
8
8
  });
9
9
 
10
- define.lint(async () => {
11
- const { js, ts, reactPlugin, reactHooksPlugin } = await import('rstack/lint');
12
-
13
- return [
14
- js.configs.recommended,
15
- ts.configs.recommendedTypeChecked,
16
- reactPlugin.configs.recommended,
17
- reactHooksPlugin.configs.recommended,
18
- ];
19
- });
10
+ define.lint(({ js, ts, reactPlugin, reactHooksPlugin }) => [
11
+ js.configs.recommended,
12
+ ts.configs.recommendedTypeChecked,
13
+ reactPlugin.configs.recommended,
14
+ reactHooksPlugin.configs.recommended,
15
+ ]);
20
16
 
21
17
  define.fmt({
22
18
  singleQuote: true,
@@ -19,5 +19,5 @@ Install the dependencies:
19
19
 
20
20
  ## Learn more
21
21
 
22
- - [Rstack documentation](https://rstack.rs)
22
+ - [Rstack CLI documentation](https://rstack.rs)
23
23
  - [Rspress documentation](https://rspress.rs)
@@ -18,7 +18,7 @@
18
18
  "@types/react-dom": "^19.2.4",
19
19
  "react": "^19.2.8",
20
20
  "react-dom": "^19.2.8",
21
- "rstack": "^0.6.0",
21
+ "rstack": "^0.6.2",
22
22
  "typescript": "^7.0.2"
23
23
  }
24
24
  }
@@ -1,4 +1,4 @@
1
- // Rstack configuration guide: https://rstack.rs/config
1
+ // Configuration guide: https://rstack.rs/config
2
2
  import path from 'node:path';
3
3
  import { define } from 'rstack';
4
4
 
@@ -23,16 +23,12 @@ define.doc({
23
23
  ],
24
24
  });
25
25
 
26
- define.lint(async () => {
27
- const { js, ts, reactPlugin, reactHooksPlugin } = await import('rstack/lint');
28
-
29
- return [
30
- js.configs.recommended,
31
- ts.configs.recommendedTypeChecked,
32
- reactPlugin.configs.recommended,
33
- reactHooksPlugin.configs.recommended,
34
- ];
35
- });
26
+ define.lint(({ js, ts, reactPlugin, reactHooksPlugin }) => [
27
+ js.configs.recommended,
28
+ ts.configs.recommendedTypeChecked,
29
+ reactPlugin.configs.recommended,
30
+ reactHooksPlugin.configs.recommended,
31
+ ]);
36
32
 
37
33
  define.fmt({
38
34
  singleQuote: true,
@@ -20,5 +20,5 @@ Install the dependencies:
20
20
 
21
21
  ## Learn more
22
22
 
23
- - [Rstack documentation](https://rstack.rs)
23
+ - [Rstack CLI documentation](https://rstack.rs)
24
24
  - [Rslib documentation](https://rslib.rs)
@@ -3,11 +3,7 @@
3
3
  "version": "0.0.0",
4
4
  "sideEffects": false,
5
5
  "type": "module",
6
- "exports": {
7
- ".": {
8
- "default": "./dist/index.js"
9
- }
10
- },
6
+ "exports": "./dist/index.js",
11
7
  "files": [
12
8
  "dist",
13
9
  "README.md"
@@ -22,7 +18,7 @@
22
18
  "test:watch": "rs test --watch"
23
19
  },
24
20
  "devDependencies": {
25
- "rstack": "^0.6.0"
21
+ "rstack": "^0.6.2"
26
22
  },
27
23
  "engines": {
28
24
  "node": ">=22.12.0"
@@ -1,20 +1,16 @@
1
1
  // @ts-check
2
- // Rstack configuration guide: https://rstack.rs/config
2
+ // Configuration guide: https://rstack.rs/config
3
3
  import { define } from 'rstack';
4
4
 
5
- define.lib({
6
- syntax: ['node 22'],
7
- });
8
-
9
- define.test({
10
- // Configure Rstest
11
- });
5
+ define.lib({});
12
6
 
13
- define.lint(async () => {
14
- const { js } = await import('rstack/lint');
15
-
16
- return [js.configs.recommended];
17
- });
7
+ define.lint(({ js, rstestPlugin }) => [
8
+ js.configs.recommended,
9
+ {
10
+ files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
11
+ ...rstestPlugin.configs.recommended,
12
+ },
13
+ ]);
18
14
 
19
15
  define.fmt({
20
16
  singleQuote: true,
@@ -20,5 +20,5 @@ Install the dependencies:
20
20
 
21
21
  ## Learn more
22
22
 
23
- - [Rstack documentation](https://rstack.rs)
23
+ - [Rstack CLI documentation](https://rstack.rs)
24
24
  - [Rslib documentation](https://rslib.rs)
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/node": "^24.13.3",
28
- "rstack": "^0.6.0",
28
+ "rstack": "^0.6.2",
29
29
  "typescript": "^7.0.2"
30
30
  },
31
31
  "engines": {
@@ -1,20 +1,18 @@
1
- // Rstack configuration guide: https://rstack.rs/config
1
+ // Configuration guide: https://rstack.rs/config
2
2
  import { define } from 'rstack';
3
3
 
4
4
  define.lib({
5
- syntax: ['node 22'],
6
5
  dts: true,
7
6
  });
8
7
 
9
- define.test({
10
- // Configure Rstest
11
- });
12
-
13
- define.lint(async () => {
14
- const { js, ts } = await import('rstack/lint');
15
-
16
- return [js.configs.recommended, ts.configs.recommendedTypeChecked];
17
- });
8
+ define.lint(({ js, ts, rstestPlugin }) => [
9
+ js.configs.recommended,
10
+ ts.configs.recommendedTypeChecked,
11
+ {
12
+ files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
13
+ ...rstestPlugin.configs.recommended,
14
+ },
15
+ ]);
18
16
 
19
17
  define.fmt({
20
18
  singleQuote: true,
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "../tsconfig.json",
3
+ "compilerOptions": {
4
+ "rootDir": "..",
5
+ "types": ["rstack/types", "node"]
6
+ },
7
+ "include": ["./"]
8
+ }
@@ -20,5 +20,5 @@ Install the dependencies:
20
20
 
21
21
  ## Learn more
22
22
 
23
- - [Rstack documentation](https://rstack.rs)
23
+ - [Rstack CLI documentation](https://rstack.rs)
24
24
  - [Rslib documentation](https://rslib.rs)
@@ -2,11 +2,7 @@
2
2
  "name": "rstack-lib-react",
3
3
  "version": "0.0.0",
4
4
  "type": "module",
5
- "exports": {
6
- ".": {
7
- "default": "./dist/index.js"
8
- }
9
- },
5
+ "exports": "./dist/index.js",
10
6
  "files": [
11
7
  "dist",
12
8
  "README.md"
@@ -23,13 +19,13 @@
23
19
  "devDependencies": {
24
20
  "@rsbuild/plugin-react": "^2.1.0",
25
21
  "@testing-library/dom": "^10.4.1",
26
- "@testing-library/jest-dom": "^7.0.0",
22
+ "@testing-library/jest-dom": "^7.0.1",
27
23
  "@testing-library/react": "^16.3.2",
28
24
  "@types/react-dom": "^19.2.4",
29
25
  "happy-dom": "^20.11.2",
30
26
  "react": "^19.2.8",
31
27
  "react-dom": "^19.2.8",
32
- "rstack": "^0.6.0"
28
+ "rstack": "^0.6.2"
33
29
  },
34
30
  "peerDependencies": {
35
31
  "react": ">=18.0.0",
@@ -1,17 +1,11 @@
1
1
  // @ts-check
2
- // Rstack configuration guide: https://rstack.rs/config
2
+ // Configuration guide: https://rstack.rs/config
3
3
  import { define } from 'rstack';
4
4
 
5
5
  define.lib(async () => {
6
6
  const { pluginReact } = await import('@rsbuild/plugin-react');
7
-
8
7
  return {
9
8
  bundle: false,
10
- source: {
11
- entry: {
12
- index: ['./src/**'],
13
- },
14
- },
15
9
  output: {
16
10
  target: 'web',
17
11
  },
@@ -23,15 +17,15 @@ define.test({
23
17
  setupFiles: ['./tests/rstest.setup.js'],
24
18
  });
25
19
 
26
- define.lint(async () => {
27
- const { js, reactHooksPlugin, reactPlugin } = await import('rstack/lint');
28
-
29
- return [
30
- js.configs.recommended,
31
- reactPlugin.configs.recommended,
32
- reactHooksPlugin.configs.recommended,
33
- ];
34
- });
20
+ define.lint(({ js, reactHooksPlugin, reactPlugin, rstestPlugin }) => [
21
+ js.configs.recommended,
22
+ reactPlugin.configs.recommended,
23
+ reactHooksPlugin.configs.recommended,
24
+ {
25
+ files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
26
+ ...rstestPlugin.configs.recommended,
27
+ },
28
+ ]);
35
29
 
36
30
  define.fmt({
37
31
  singleQuote: true,
@@ -20,5 +20,5 @@ Install the dependencies:
20
20
 
21
21
  ## Learn more
22
22
 
23
- - [Rstack documentation](https://rstack.rs)
23
+ - [Rstack CLI documentation](https://rstack.rs)
24
24
  - [Rslib documentation](https://rslib.rs)
@@ -25,7 +25,7 @@
25
25
  "devDependencies": {
26
26
  "@rsbuild/plugin-react": "^2.1.0",
27
27
  "@testing-library/dom": "^10.4.1",
28
- "@testing-library/jest-dom": "^7.0.0",
28
+ "@testing-library/jest-dom": "^7.0.1",
29
29
  "@testing-library/react": "^16.3.2",
30
30
  "@types/node": "^24.13.3",
31
31
  "@types/react": "^19.2.18",
@@ -33,7 +33,7 @@
33
33
  "happy-dom": "^20.11.2",
34
34
  "react": "^19.2.8",
35
35
  "react-dom": "^19.2.8",
36
- "rstack": "^0.6.0",
36
+ "rstack": "^0.6.2",
37
37
  "typescript": "^7.0.2"
38
38
  },
39
39
  "peerDependencies": {
@@ -1,17 +1,11 @@
1
- // Rstack configuration guide: https://rstack.rs/config
1
+ // Configuration guide: https://rstack.rs/config
2
2
  import { define } from 'rstack';
3
3
 
4
4
  define.lib(async () => {
5
5
  const { pluginReact } = await import('@rsbuild/plugin-react');
6
-
7
6
  return {
8
7
  bundle: false,
9
8
  dts: true,
10
- source: {
11
- entry: {
12
- index: ['./src/**'],
13
- },
14
- },
15
9
  output: {
16
10
  target: 'web',
17
11
  },
@@ -23,16 +17,16 @@ define.test({
23
17
  setupFiles: ['./tests/rstest.setup.ts'],
24
18
  });
25
19
 
26
- define.lint(async () => {
27
- const { js, ts, reactPlugin, reactHooksPlugin } = await import('rstack/lint');
28
-
29
- return [
30
- js.configs.recommended,
31
- ts.configs.recommendedTypeChecked,
32
- reactPlugin.configs.recommended,
33
- reactHooksPlugin.configs.recommended,
34
- ];
35
- });
20
+ define.lint(({ js, ts, reactPlugin, reactHooksPlugin, rstestPlugin }) => [
21
+ js.configs.recommended,
22
+ ts.configs.recommendedTypeChecked,
23
+ reactPlugin.configs.recommended,
24
+ reactHooksPlugin.configs.recommended,
25
+ {
26
+ files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
27
+ ...rstestPlugin.configs.recommended,
28
+ },
29
+ ]);
36
30
 
37
31
  define.fmt({
38
32
  singleQuote: true,
@@ -2,7 +2,7 @@
2
2
  "extends": "../tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "rootDir": "..",
5
- "types": ["@testing-library/jest-dom"]
5
+ "types": ["rstack/types", "node", "@testing-library/jest-dom"]
6
6
  },
7
7
  "include": ["./"]
8
8
  }
@@ -5,7 +5,7 @@
5
5
  "target": "ES2022",
6
6
  "noEmit": true,
7
7
  "skipLibCheck": true,
8
- "types": ["rstack/types", "node"],
8
+ "types": ["rstack/types"],
9
9
  "useDefineForClassFields": true,
10
10
  "rootDir": "src",
11
11
 
@@ -20,5 +20,5 @@ Install the dependencies:
20
20
 
21
21
  ## Learn more
22
22
 
23
- - [Rstack documentation](https://rstack.rs)
23
+ - [Rstack CLI documentation](https://rstack.rs)
24
24
  - [Rslib documentation](https://rslib.rs)
@@ -22,13 +22,13 @@
22
22
  "test:watch": "rs test --watch"
23
23
  },
24
24
  "devDependencies": {
25
- "@rsbuild/plugin-babel": "^2.0.1",
25
+ "@rsbuild/plugin-babel": "^2.1.0",
26
26
  "@rsbuild/plugin-solid": "^1.2.2",
27
27
  "@solidjs/testing-library": "^0.8.10",
28
- "@testing-library/jest-dom": "^7.0.0",
28
+ "@testing-library/jest-dom": "^7.0.1",
29
29
  "happy-dom": "^20.11.2",
30
- "rstack": "^0.6.0",
31
- "solid-js": "^1.9.14"
30
+ "rstack": "^0.6.2",
31
+ "solid-js": "^1.9.15"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "solid-js": ">=1.8.0"
@@ -1,16 +1,14 @@
1
1
  // @ts-check
2
- // Rstack configuration guide: https://rstack.rs/config
2
+ // Configuration guide: https://rstack.rs/config
3
3
  import { define } from 'rstack';
4
4
 
5
5
  define.lib(async () => {
6
6
  const { pluginBabel } = await import('@rsbuild/plugin-babel');
7
7
  const { pluginSolid } = await import('@rsbuild/plugin-solid');
8
-
9
8
  return {
10
9
  lib: [
11
10
  {
12
11
  id: 'compiled',
13
- bundle: false,
14
12
  plugins: [
15
13
  pluginBabel({
16
14
  include: /\.(?:jsx|tsx)$/,
@@ -20,7 +18,6 @@ define.lib(async () => {
20
18
  },
21
19
  {
22
20
  id: 'source',
23
- bundle: false,
24
21
  output: {
25
22
  filename: {
26
23
  js: '[name].jsx',
@@ -49,11 +46,7 @@ define.lib(async () => {
49
46
  },
50
47
  },
51
48
  ],
52
- source: {
53
- entry: {
54
- index: ['./src/**'],
55
- },
56
- },
49
+ bundle: false,
57
50
  output: {
58
51
  target: 'web',
59
52
  },
@@ -63,7 +56,6 @@ define.lib(async () => {
63
56
  define.test(async () => {
64
57
  const { pluginBabel } = await import('@rsbuild/plugin-babel');
65
58
  const { pluginSolid } = await import('@rsbuild/plugin-solid');
66
-
67
59
  return {
68
60
  setupFiles: ['./tests/rstest.setup.js'],
69
61
  plugins: [
@@ -75,11 +67,13 @@ define.test(async () => {
75
67
  };
76
68
  });
77
69
 
78
- define.lint(async () => {
79
- const { js } = await import('rstack/lint');
80
-
81
- return [js.configs.recommended];
82
- });
70
+ define.lint(({ js, rstestPlugin }) => [
71
+ js.configs.recommended,
72
+ {
73
+ files: ['**/*.{test,spec}.?(c|m)[jt]s?(x)'],
74
+ ...rstestPlugin.configs.recommended,
75
+ },
76
+ ]);
83
77
 
84
78
  define.fmt({
85
79
  singleQuote: true,
@@ -20,5 +20,5 @@ Install the dependencies:
20
20
 
21
21
  ## Learn more
22
22
 
23
- - [Rstack documentation](https://rstack.rs)
23
+ - [Rstack CLI documentation](https://rstack.rs)
24
24
  - [Rslib documentation](https://rslib.rs)
@@ -4,8 +4,8 @@
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
7
- "solid": "./dist/index.jsx",
8
7
  "types": "./dist/index.d.ts",
8
+ "solid": "./dist/index.jsx",
9
9
  "default": "./dist/index.js"
10
10
  }
11
11
  },
@@ -24,14 +24,14 @@
24
24
  "test:watch": "rs test --watch"
25
25
  },
26
26
  "devDependencies": {
27
- "@rsbuild/plugin-babel": "^2.0.1",
27
+ "@rsbuild/plugin-babel": "^2.1.0",
28
28
  "@rsbuild/plugin-solid": "^1.2.2",
29
29
  "@solidjs/testing-library": "^0.8.10",
30
- "@testing-library/jest-dom": "^7.0.0",
30
+ "@testing-library/jest-dom": "^7.0.1",
31
31
  "@types/node": "^24.13.3",
32
32
  "happy-dom": "^20.11.2",
33
- "rstack": "^0.6.0",
34
- "solid-js": "^1.9.14",
33
+ "rstack": "^0.6.2",
34
+ "solid-js": "^1.9.15",
35
35
  "typescript": "^7.0.2"
36
36
  },
37
37
  "peerDependencies": {