@best-shot/dev-server 0.13.7 → 0.13.8
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/lib/action.mjs
CHANGED
|
@@ -16,6 +16,7 @@ export function action({ _: [command] }) {
|
|
|
16
16
|
const configs = await readConfig()({ command });
|
|
17
17
|
|
|
18
18
|
const result = [];
|
|
19
|
+
|
|
19
20
|
for (const config of configs) {
|
|
20
21
|
const io = await createConfig(config, {
|
|
21
22
|
watch: true,
|
|
@@ -56,6 +57,7 @@ export function action({ _: [command] }) {
|
|
|
56
57
|
console.error(error);
|
|
57
58
|
process.exitCode = 1;
|
|
58
59
|
}
|
|
60
|
+
|
|
59
61
|
if (stats) {
|
|
60
62
|
if (stats.hasErrors()) {
|
|
61
63
|
process.exitCode = 1;
|
package/lib/utils.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { readFileSync } from 'fs';
|
|
2
|
-
import { dirname, resolve } from 'path';
|
|
3
|
-
import { fileURLToPath } from 'url';
|
|
1
|
+
import { readFileSync } from 'node:fs';
|
|
2
|
+
import { dirname, resolve } from 'node:path';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
4
|
|
|
5
5
|
import { compile } from 'ejs';
|
|
6
6
|
import { Router } from 'express';
|
|
@@ -22,7 +22,7 @@ router.use(({ method, url }, res, next) => {
|
|
|
22
22
|
export function notFound({ publicPath: path = '/' }) {
|
|
23
23
|
const render = compile(
|
|
24
24
|
readFileSync(resolve(__dirname, '404.html'), {
|
|
25
|
-
encoding: '
|
|
25
|
+
encoding: 'utf8',
|
|
26
26
|
}),
|
|
27
27
|
{
|
|
28
28
|
delimiter: '?',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@best-shot/dev-server",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.8",
|
|
4
4
|
"description": "DevServer support of `@best-shot/cli`",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
},
|
|
32
32
|
"main": "index.mjs",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@best-shot/config": "^0.2.
|
|
35
|
-
"chalk": "^5.0
|
|
34
|
+
"@best-shot/config": "^0.2.18",
|
|
35
|
+
"chalk": "^5.1.0",
|
|
36
36
|
"ejs": "^3.1.8",
|
|
37
|
-
"express": "^4.18.
|
|
37
|
+
"express": "^4.18.2",
|
|
38
38
|
"launch-editor-middleware": "^2.6.0",
|
|
39
|
-
"webpack-dev-server": "^4.11.
|
|
39
|
+
"webpack-dev-server": "^4.11.1",
|
|
40
40
|
"webpack-dev-server-waitpage": "^2.1.1"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|