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 +9 -2
- package/dist/cli.js +1 -1
- package/package.json +5 -6
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 {
|
|
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
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest",
|
|
3
|
-
"version": "0.0.
|
|
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
|
-
"
|
|
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.
|
|
27
|
-
"module": "./dist/index.
|
|
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.
|
|
55
|
+
"vite-node": "v0.1.7"
|
|
57
56
|
},
|
|
58
57
|
"scripts": {
|
|
59
58
|
"build": "tsc",
|