vite-node 2.0.1 → 2.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/dist/chunk-hmr.cjs +1 -1
- package/dist/chunk-hmr.mjs +1 -1
- package/dist/cli.cjs +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/hmr.cjs +1 -1
- package/dist/hmr.mjs +1 -1
- package/dist/server.cjs +1 -1
- package/dist/server.mjs +1 -1
- package/package.json +2 -2
package/dist/chunk-hmr.cjs
CHANGED
package/dist/chunk-hmr.mjs
CHANGED
package/dist/cli.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var path = require('node:path');
|
|
4
4
|
var cac = require('cac');
|
|
5
|
-
var c = require('
|
|
5
|
+
var c = require('tinyrainbow');
|
|
6
6
|
var vite = require('vite');
|
|
7
7
|
var server = require('./server.cjs');
|
|
8
8
|
var client = require('./client.cjs');
|
|
@@ -20,7 +20,7 @@ require('node:url');
|
|
|
20
20
|
require('node:vm');
|
|
21
21
|
require('node:events');
|
|
22
22
|
|
|
23
|
-
var version = "2.0.
|
|
23
|
+
var version = "2.0.2";
|
|
24
24
|
|
|
25
25
|
const cli = cac("vite-node");
|
|
26
26
|
cli.option("-r, --root <path>", "Use specified root directory").option("-c, --config <path>", "Use specified config file").option("-m, --mode <mode>", "Set env mode").option("-w, --watch", 'Restart on file changes, similar to "nodemon"').option("--script", "Use vite-node as a script runner").option("--options <options>", "Use specified Vite server options").option("-v, --version", "Output the version number").option("-h, --help", "Display help for command");
|
package/dist/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolve } from 'node:path';
|
|
2
2
|
import cac from 'cac';
|
|
3
|
-
import c from '
|
|
3
|
+
import c from 'tinyrainbow';
|
|
4
4
|
import { createServer, loadEnv } from 'vite';
|
|
5
5
|
import { ViteNodeServer } from './server.mjs';
|
|
6
6
|
import { ViteNodeRunner } from './client.mjs';
|
|
@@ -18,7 +18,7 @@ import 'node:url';
|
|
|
18
18
|
import 'node:vm';
|
|
19
19
|
import 'node:events';
|
|
20
20
|
|
|
21
|
-
var version = "2.0.
|
|
21
|
+
var version = "2.0.2";
|
|
22
22
|
|
|
23
23
|
const cli = cac("vite-node");
|
|
24
24
|
cli.option("-r, --root <path>", "Use specified root directory").option("-c, --config <path>", "Use specified config file").option("-m, --mode <mode>", "Set env mode").option("-w, --watch", 'Restart on file changes, similar to "nodemon"').option("--script", "Use vite-node as a script runner").option("--options <options>", "Use specified Vite server options").option("-v, --version", "Output the version number").option("-h, --help", "Display help for command");
|
package/dist/hmr.cjs
CHANGED
package/dist/hmr.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { c as createHmrEmitter, a as createHotContext, g as getCache, h as handleMessage, r as reload, s as sendMessageBuffer, v as viteNodeHmrPlugin } from './chunk-hmr.mjs';
|
|
2
2
|
import 'node:events';
|
|
3
|
-
import '
|
|
3
|
+
import 'tinyrainbow';
|
|
4
4
|
import 'debug';
|
|
5
5
|
import './utils.mjs';
|
|
6
6
|
import 'node:url';
|
package/dist/server.cjs
CHANGED
|
@@ -7,7 +7,7 @@ var pathe = require('pathe');
|
|
|
7
7
|
var createDebug = require('debug');
|
|
8
8
|
var utils = require('./utils.cjs');
|
|
9
9
|
var constants = require('./constants.cjs');
|
|
10
|
-
var c = require('
|
|
10
|
+
var c = require('tinyrainbow');
|
|
11
11
|
var sourceMap = require('./source-map.cjs');
|
|
12
12
|
require('node:url');
|
|
13
13
|
require('node:module');
|
package/dist/server.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { join, extname, dirname, resolve, relative, normalize } from 'pathe';
|
|
|
5
5
|
import createDebug from 'debug';
|
|
6
6
|
import { isNodeBuiltin, slash, findNearestPackageData, toArray, withTrailingSlash, normalizeModuleId, toFilePath } from './utils.mjs';
|
|
7
7
|
import { KNOWN_ASSET_RE } from './constants.mjs';
|
|
8
|
-
import c from '
|
|
8
|
+
import c from 'tinyrainbow';
|
|
9
9
|
import { withInlineSourcemap } from './source-map.mjs';
|
|
10
10
|
import 'node:url';
|
|
11
11
|
import 'node:module';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-node",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.2",
|
|
5
5
|
"description": "Vite as Node.js runtime",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"cac": "^6.7.14",
|
|
81
81
|
"debug": "^4.3.5",
|
|
82
82
|
"pathe": "^1.1.2",
|
|
83
|
-
"
|
|
83
|
+
"tinyrainbow": "^1.2.0",
|
|
84
84
|
"vite": "^5.0.0"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|