vitest 0.0.1 → 0.0.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.
package/bin/vitest.mjs CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  import { fileURLToPath } from 'url'
5
5
  import { resolve, dirname } from 'path'
6
- import { startAndRun } from 'vite-node'
6
+ import { run } from 'vite-node'
7
7
  import minimist from 'minimist'
8
8
 
9
9
  const argv = minimist(process.argv.slice(2), {
@@ -12,9 +12,16 @@ const argv = minimist(process.argv.slice(2), {
12
12
 
13
13
  const __dirname = dirname(fileURLToPath(import.meta.url))
14
14
 
15
- await startAndRun({
15
+ await run({
16
16
  root: resolve(argv.root || process.cwd()),
17
17
  files: [
18
18
  resolve(__dirname, '../dist/cli.js'),
19
19
  ],
20
+ defaultConfig: {
21
+ optimizeDeps: {
22
+ exclude: [
23
+ 'vitest',
24
+ ],
25
+ },
26
+ },
20
27
  })
package/dist/cli.js CHANGED
@@ -19,7 +19,7 @@ const argv = minimist(process.argv.slice(2), {
19
19
  },
20
20
  });
21
21
  // TODO: load config, CLI
22
- run({
22
+ await run({
23
23
  rootDir: argv.root || join(process.cwd(), 'test'),
24
24
  updateSnapshot: argv.update,
25
25
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitest",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "keywords": [],
@@ -17,14 +17,13 @@
17
17
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
18
18
  "exports": {
19
19
  ".": {
20
- "require": "./dist/index.cjs",
21
- "import": "./dist/index.mjs",
20
+ "import": "./dist/index.js",
22
21
  "types": "./dist/index.d.ts"
23
22
  },
24
23
  "./*": "./*"
25
24
  },
26
- "main": "./dist/index.cjs",
27
- "module": "./dist/index.mjs",
25
+ "main": "./dist/index.js",
26
+ "module": "./dist/index.js",
28
27
  "types": "./dist/index.d.ts",
29
28
  "files": [
30
29
  "dist",
@@ -53,7 +52,7 @@
53
52
  "jest-util": "^27.4.2",
54
53
  "minimist": "^1.2.5",
55
54
  "picocolors": "^1.0.0",
56
- "vite-node": "v0.1.6"
55
+ "vite-node": "v0.1.7"
57
56
  },
58
57
  "scripts": {
59
58
  "build": "tsc",