@tsed/cli-plugin-vitest 7.3.4 → 7.5.0-rc.1

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.
@@ -13,9 +13,7 @@ export class CliPluginVitestModule {
13
13
  });
14
14
  packageJson.addDevDependencies({
15
15
  vitest: "latest",
16
- "unplugin-swc": "latest",
17
- "@vitest/coverage-v8": "latest",
18
- "@swc/core": "latest"
16
+ "@vitest/coverage-v8": "latest"
19
17
  });
20
18
  }
21
19
  return packageJson;
@@ -7,26 +7,17 @@ export default defineTemplate({
7
7
  outputDir: ".",
8
8
  hidden: true,
9
9
  render() {
10
- return `import swc from "unplugin-swc";
11
- import {defineConfig} from "vitest/config";
10
+ return `import {defineConfig} from "vitest/config";
12
11
 
13
12
  export default defineConfig({
13
+ resolve: {
14
+ tsconfigPaths: true
15
+ },
14
16
  test: {
15
17
  globals: true,
16
18
  root: "./"
17
19
  },
18
- plugins: [
19
- // This is required to build the test files with SWC
20
- swc.vite({
21
- // Explicitly set the module type to avoid inheriting this value from a \`.swcrc\` config file
22
- module: {type: "es6"},
23
- jsc: {
24
- transform: {
25
- useDefineForClassFields: false
26
- }
27
- }
28
- })
29
- ]
20
+ plugins: []
30
21
  });`;
31
22
  }
32
23
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tsed/cli-plugin-vitest",
3
3
  "description": "Ts.ED CLI plugin. Add Jest support",
4
- "version": "7.3.4",
4
+ "version": "7.5.0-rc.1",
5
5
  "type": "module",
6
6
  "main": "./lib/esm/index.js",
7
7
  "source": "./src/index.ts",
@@ -22,9 +22,9 @@
22
22
  "test:ci": "vitest run --coverage.thresholds.autoUpdate=true"
23
23
  },
24
24
  "devDependencies": {
25
- "@tsed/cli": "7.3.4",
26
- "@tsed/cli-core": "7.3.4",
27
- "@tsed/typescript": "7.3.4",
25
+ "@tsed/cli": "7.5.0-rc.1",
26
+ "@tsed/cli-core": "7.5.0-rc.1",
27
+ "@tsed/typescript": "7.5.0-rc.1",
28
28
  "cross-env": "7.0.3",
29
29
  "typescript": "5.6.2",
30
30
  "vitest": "4.1.0"
@@ -39,5 +39,8 @@
39
39
  },
40
40
  "homepage": "https://github.com/tsedio/tsed-cli/tree/master/packages/cli-plugin-vitest",
41
41
  "author": "Romain Lenzotti",
42
- "license": "MIT"
42
+ "license": "MIT",
43
+ "publishConfig": {
44
+ "tag": "rc"
45
+ }
43
46
  }