appstage 0.2.14 → 0.2.16
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/bin.js +3 -3
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
- package/src/controllers/files.ts +1 -1
- package/src/scripts/utils/buildClient.ts +3 -3
package/dist/bin.js
CHANGED
|
@@ -434,18 +434,18 @@ async function getEntryPoints(path) {
|
|
|
434
434
|
|
|
435
435
|
// src/scripts/utils/buildClient.ts
|
|
436
436
|
var entryClientPaths = ["ui/index", "client/index", "index", "src/index"];
|
|
437
|
-
async function buildClient({ watch, watchClient }, plugins) {
|
|
437
|
+
async function buildClient({ clientDir, watch, watchClient }, plugins) {
|
|
438
438
|
let clientEntries = await getEntryPoints(entryClientPaths);
|
|
439
439
|
let buildOptions = {
|
|
440
440
|
...commonBuildOptions,
|
|
441
441
|
entryPoints: clientEntries.map(({ path, name }) => ({
|
|
442
442
|
in: path,
|
|
443
|
-
out: `${name}/
|
|
443
|
+
out: `${name}/index`
|
|
444
444
|
})),
|
|
445
445
|
bundle: true,
|
|
446
446
|
splitting: true,
|
|
447
447
|
format: "esm",
|
|
448
|
-
outdir:
|
|
448
|
+
outdir: clientDir,
|
|
449
449
|
minify: process.env.NODE_ENV !== "development",
|
|
450
450
|
plugins
|
|
451
451
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -78,7 +78,7 @@ function matches(x, matcher) {
|
|
|
78
78
|
return false;
|
|
79
79
|
}
|
|
80
80
|
const defaultExtensions = ["html", "htm"];
|
|
81
|
-
const defaultPath = (req) => req.
|
|
81
|
+
const defaultPath = (req) => req.path;
|
|
82
82
|
const defaultLanguages = getLanguageList;
|
|
83
83
|
/**
|
|
84
84
|
* Serves files from the specified directory path in a locale-aware
|
|
@@ -399,18 +399,18 @@ const entryClientPaths = [
|
|
|
399
399
|
/**
|
|
400
400
|
* Builds the client-side code.
|
|
401
401
|
*/
|
|
402
|
-
async function buildClient({ watch, watchClient }, plugins) {
|
|
402
|
+
async function buildClient({ clientDir, watch, watchClient }, plugins) {
|
|
403
403
|
let clientEntries = await getEntryPoints(entryClientPaths);
|
|
404
404
|
let buildOptions = {
|
|
405
405
|
...commonBuildOptions,
|
|
406
406
|
entryPoints: clientEntries.map(({ path, name }) => ({
|
|
407
407
|
in: path,
|
|
408
|
-
out: `${name}/
|
|
408
|
+
out: `${name}/index`
|
|
409
409
|
})),
|
|
410
410
|
bundle: true,
|
|
411
411
|
splitting: true,
|
|
412
412
|
format: "esm",
|
|
413
|
-
outdir:
|
|
413
|
+
outdir: clientDir,
|
|
414
414
|
minify: process.env.NODE_ENV !== "development",
|
|
415
415
|
plugins
|
|
416
416
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -52,7 +52,7 @@ function matches(x, matcher) {
|
|
|
52
52
|
return false;
|
|
53
53
|
}
|
|
54
54
|
const defaultExtensions = ["html", "htm"];
|
|
55
|
-
const defaultPath = (req) => req.
|
|
55
|
+
const defaultPath = (req) => req.path;
|
|
56
56
|
const defaultLanguages = getLanguageList;
|
|
57
57
|
/**
|
|
58
58
|
* Serves files from the specified directory path in a locale-aware
|
|
@@ -373,18 +373,18 @@ const entryClientPaths = [
|
|
|
373
373
|
/**
|
|
374
374
|
* Builds the client-side code.
|
|
375
375
|
*/
|
|
376
|
-
async function buildClient({ watch, watchClient }, plugins) {
|
|
376
|
+
async function buildClient({ clientDir, watch, watchClient }, plugins) {
|
|
377
377
|
let clientEntries = await getEntryPoints(entryClientPaths);
|
|
378
378
|
let buildOptions = {
|
|
379
379
|
...commonBuildOptions,
|
|
380
380
|
entryPoints: clientEntries.map(({ path, name }) => ({
|
|
381
381
|
in: path,
|
|
382
|
-
out: `${name}/
|
|
382
|
+
out: `${name}/index`
|
|
383
383
|
})),
|
|
384
384
|
bundle: true,
|
|
385
385
|
splitting: true,
|
|
386
386
|
format: "esm",
|
|
387
|
-
outdir:
|
|
387
|
+
outdir: clientDir,
|
|
388
388
|
minify: process.env.NODE_ENV !== "development",
|
|
389
389
|
plugins
|
|
390
390
|
};
|
package/package.json
CHANGED
package/src/controllers/files.ts
CHANGED
|
@@ -72,7 +72,7 @@ export type FilesParams = {
|
|
|
72
72
|
};
|
|
73
73
|
|
|
74
74
|
const defaultExtensions = ["html", "htm"];
|
|
75
|
-
const defaultPath = (req: Request) => req.
|
|
75
|
+
const defaultPath = (req: Request) => req.path;
|
|
76
76
|
const defaultLanguages = getLanguageList;
|
|
77
77
|
|
|
78
78
|
/**
|
|
@@ -9,7 +9,7 @@ const entryClientPaths = ["ui/index", "client/index", "index", "src/index"];
|
|
|
9
9
|
* Builds the client-side code.
|
|
10
10
|
*/
|
|
11
11
|
export async function buildClient(
|
|
12
|
-
{ watch, watchClient }: BuildParams,
|
|
12
|
+
{ clientDir, watch, watchClient }: BuildParams,
|
|
13
13
|
plugins?: Plugin[],
|
|
14
14
|
) {
|
|
15
15
|
let clientEntries = await getEntryPoints(entryClientPaths);
|
|
@@ -18,12 +18,12 @@ export async function buildClient(
|
|
|
18
18
|
...commonBuildOptions,
|
|
19
19
|
entryPoints: clientEntries.map(({ path, name }) => ({
|
|
20
20
|
in: path,
|
|
21
|
-
out: `${name}/
|
|
21
|
+
out: `${name}/index`,
|
|
22
22
|
})),
|
|
23
23
|
bundle: true,
|
|
24
24
|
splitting: true,
|
|
25
25
|
format: "esm",
|
|
26
|
-
outdir:
|
|
26
|
+
outdir: clientDir,
|
|
27
27
|
minify: process.env.NODE_ENV !== "development",
|
|
28
28
|
plugins,
|
|
29
29
|
};
|