appstage 0.2.12 → 0.2.13
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 +5 -4
- package/dist/index.cjs +5 -4
- package/dist/index.mjs +5 -4
- package/package.json +1 -1
- package/src/scripts/utils/buildClient.ts +5 -4
package/dist/bin.js
CHANGED
|
@@ -434,16 +434,17 @@ 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({
|
|
437
|
+
async function buildClient({ watch, watchClient }, plugins) {
|
|
438
438
|
let clientEntries = await getEntryPoints(entryClientPaths);
|
|
439
439
|
let buildOptions = {
|
|
440
440
|
...commonBuildOptions,
|
|
441
|
-
entryPoints: clientEntries.map(({ path }) =>
|
|
441
|
+
entryPoints: clientEntries.map(({ path, name }) => ({
|
|
442
|
+
in: path,
|
|
443
|
+
out: `src/entries/${name}/dist/index`
|
|
444
|
+
})),
|
|
442
445
|
bundle: true,
|
|
443
446
|
splitting: true,
|
|
444
447
|
format: "esm",
|
|
445
|
-
outdir: clientDir,
|
|
446
|
-
outbase: "src/entries",
|
|
447
448
|
minify: process.env.NODE_ENV !== "development",
|
|
448
449
|
plugins
|
|
449
450
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -399,16 +399,17 @@ const entryClientPaths = [
|
|
|
399
399
|
/**
|
|
400
400
|
* Builds the client-side code.
|
|
401
401
|
*/
|
|
402
|
-
async function buildClient({
|
|
402
|
+
async function buildClient({ watch, watchClient }, plugins) {
|
|
403
403
|
let clientEntries = await getEntryPoints(entryClientPaths);
|
|
404
404
|
let buildOptions = {
|
|
405
405
|
...commonBuildOptions,
|
|
406
|
-
entryPoints: clientEntries.map(({ path }) =>
|
|
406
|
+
entryPoints: clientEntries.map(({ path, name }) => ({
|
|
407
|
+
in: path,
|
|
408
|
+
out: `src/entries/${name}/dist/index`
|
|
409
|
+
})),
|
|
407
410
|
bundle: true,
|
|
408
411
|
splitting: true,
|
|
409
412
|
format: "esm",
|
|
410
|
-
outdir: clientDir,
|
|
411
|
-
outbase: "src/entries",
|
|
412
413
|
minify: process.env.NODE_ENV !== "development",
|
|
413
414
|
plugins
|
|
414
415
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -373,16 +373,17 @@ const entryClientPaths = [
|
|
|
373
373
|
/**
|
|
374
374
|
* Builds the client-side code.
|
|
375
375
|
*/
|
|
376
|
-
async function buildClient({
|
|
376
|
+
async function buildClient({ watch, watchClient }, plugins) {
|
|
377
377
|
let clientEntries = await getEntryPoints(entryClientPaths);
|
|
378
378
|
let buildOptions = {
|
|
379
379
|
...commonBuildOptions,
|
|
380
|
-
entryPoints: clientEntries.map(({ path }) =>
|
|
380
|
+
entryPoints: clientEntries.map(({ path, name }) => ({
|
|
381
|
+
in: path,
|
|
382
|
+
out: `src/entries/${name}/dist/index`
|
|
383
|
+
})),
|
|
381
384
|
bundle: true,
|
|
382
385
|
splitting: true,
|
|
383
386
|
format: "esm",
|
|
384
|
-
outdir: clientDir,
|
|
385
|
-
outbase: "src/entries",
|
|
386
387
|
minify: process.env.NODE_ENV !== "development",
|
|
387
388
|
plugins
|
|
388
389
|
};
|
package/package.json
CHANGED
|
@@ -9,19 +9,20 @@ 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
|
-
{
|
|
12
|
+
{ watch, watchClient }: BuildParams,
|
|
13
13
|
plugins?: Plugin[],
|
|
14
14
|
) {
|
|
15
15
|
let clientEntries = await getEntryPoints(entryClientPaths);
|
|
16
16
|
|
|
17
17
|
let buildOptions: BuildOptions = {
|
|
18
18
|
...commonBuildOptions,
|
|
19
|
-
entryPoints: clientEntries.map(({ path }) =>
|
|
19
|
+
entryPoints: clientEntries.map(({ path, name }) => ({
|
|
20
|
+
in: path,
|
|
21
|
+
out: `src/entries/${name}/dist/index`,
|
|
22
|
+
})),
|
|
20
23
|
bundle: true,
|
|
21
24
|
splitting: true,
|
|
22
25
|
format: "esm",
|
|
23
|
-
outdir: clientDir,
|
|
24
|
-
outbase: "src/entries",
|
|
25
26
|
minify: process.env.NODE_ENV !== "development",
|
|
26
27
|
plugins,
|
|
27
28
|
};
|