@simplysm/sd-cli 12.16.39 → 12.16.41
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/pkg-builders/client/SdClientBuildRunner.js +1 -0
- package/dist/pkg-builders/client/SdNgBundler.d.ts +1 -0
- package/dist/pkg-builders/client/SdNgBundler.js +4 -3
- package/package.json +5 -5
- package/src/pkg-builders/client/SdClientBuildRunner.ts +1 -0
- package/src/pkg-builders/client/SdNgBundler.ts +5 -3
- package/vitest.config.js +3 -6
|
@@ -34,5 +34,6 @@ interface IConf<T extends keyof NonNullable<ISdClientPackageConfig["builder"]>>
|
|
|
34
34
|
builderType: T;
|
|
35
35
|
builderConfig: NonNullable<ISdClientPackageConfig["builder"]>[T];
|
|
36
36
|
env: Record<string, string> | undefined;
|
|
37
|
+
noLazyRoute: boolean | undefined;
|
|
37
38
|
}
|
|
38
39
|
export {};
|
|
@@ -360,7 +360,7 @@ export class SdNgBundler {
|
|
|
360
360
|
...(!this._opt.watch?.dev ? { ngDevMode: "false" } : {}),
|
|
361
361
|
"ngJitMode": "false",
|
|
362
362
|
"global": "global",
|
|
363
|
-
"process": "process",
|
|
363
|
+
// "process": "process",
|
|
364
364
|
"Buffer": "Buffer",
|
|
365
365
|
"process.env.SD_VERSION": JSON.stringify(this._pkgNpmConf.version),
|
|
366
366
|
"process.env.NODE_ENV": JSON.stringify(this._opt.watch?.dev ? "development" : "production"),
|
|
@@ -372,7 +372,7 @@ export class SdNgBundler {
|
|
|
372
372
|
entryNames: "[dir]/[name]",
|
|
373
373
|
entryPoints: {
|
|
374
374
|
"sd-polyfills": "virtual:sd-polyfills",
|
|
375
|
-
main: this._mainFilePath,
|
|
375
|
+
"main": this._mainFilePath,
|
|
376
376
|
...(FsUtils.exists(path.resolve(this._opt.pkgPath, "src/polyfills.ts"))
|
|
377
377
|
? {
|
|
378
378
|
polyfills: path.resolve(this._opt.pkgPath, "src/polyfills.ts"),
|
|
@@ -426,8 +426,9 @@ export class SdNgBundler {
|
|
|
426
426
|
: {
|
|
427
427
|
platform: "browser",
|
|
428
428
|
target: this._browserTarget,
|
|
429
|
+
...(this._conf.noLazyRoute ? {} : { supported: { "dynamic-import": true } }),
|
|
429
430
|
format: "esm",
|
|
430
|
-
splitting:
|
|
431
|
+
splitting: !this._conf.noLazyRoute,
|
|
431
432
|
inject: [
|
|
432
433
|
PathUtils.posix(fileURLToPath(import.meta.resolve("node-stdlib-browser/helpers/esbuild/shim"))),
|
|
433
434
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simplysm/sd-cli",
|
|
3
|
-
"version": "12.16.
|
|
3
|
+
"version": "12.16.41",
|
|
4
4
|
"description": "심플리즘 패키지 - CLI",
|
|
5
5
|
"author": "김석래",
|
|
6
6
|
"repository": {
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"@angular/compiler-cli": "^20.3.18",
|
|
18
18
|
"@anthropic-ai/sdk": "^0.78.0",
|
|
19
19
|
"@electron/rebuild": "^4.0.3",
|
|
20
|
-
"@simplysm/sd-core-common": "12.16.
|
|
21
|
-
"@simplysm/sd-core-node": "12.16.
|
|
22
|
-
"@simplysm/sd-service-server": "12.16.
|
|
23
|
-
"@simplysm/sd-storage": "12.16.
|
|
20
|
+
"@simplysm/sd-core-common": "12.16.41",
|
|
21
|
+
"@simplysm/sd-core-node": "12.16.41",
|
|
22
|
+
"@simplysm/sd-service-server": "12.16.41",
|
|
23
|
+
"@simplysm/sd-storage": "12.16.41",
|
|
24
24
|
"abortcontroller-polyfill": "^1.7.8",
|
|
25
25
|
"browserslist": "^4.28.1",
|
|
26
26
|
"cordova": "^13.0.0",
|
|
@@ -475,7 +475,7 @@ export class SdNgBundler {
|
|
|
475
475
|
...(!this._opt.watch?.dev ? { ngDevMode: "false" } : {}),
|
|
476
476
|
"ngJitMode": "false",
|
|
477
477
|
"global": "global",
|
|
478
|
-
"process": "process",
|
|
478
|
+
// "process": "process",
|
|
479
479
|
"Buffer": "Buffer",
|
|
480
480
|
"process.env.SD_VERSION": JSON.stringify(this._pkgNpmConf.version),
|
|
481
481
|
"process.env.NODE_ENV": JSON.stringify(this._opt.watch?.dev ? "development" : "production"),
|
|
@@ -490,7 +490,7 @@ export class SdNgBundler {
|
|
|
490
490
|
entryNames: "[dir]/[name]",
|
|
491
491
|
entryPoints: {
|
|
492
492
|
"sd-polyfills": "virtual:sd-polyfills",
|
|
493
|
-
main: this._mainFilePath,
|
|
493
|
+
"main": this._mainFilePath,
|
|
494
494
|
...(FsUtils.exists(path.resolve(this._opt.pkgPath, "src/polyfills.ts"))
|
|
495
495
|
? {
|
|
496
496
|
polyfills: path.resolve(this._opt.pkgPath, "src/polyfills.ts"),
|
|
@@ -549,8 +549,9 @@ export class SdNgBundler {
|
|
|
549
549
|
: {
|
|
550
550
|
platform: "browser",
|
|
551
551
|
target: this._browserTarget,
|
|
552
|
+
...(this._conf.noLazyRoute ? {} : { supported: { "dynamic-import": true } }),
|
|
552
553
|
format: "esm",
|
|
553
|
-
splitting:
|
|
554
|
+
splitting: !this._conf.noLazyRoute,
|
|
554
555
|
inject: [
|
|
555
556
|
PathUtils.posix(
|
|
556
557
|
fileURLToPath(import.meta.resolve("node-stdlib-browser/helpers/esbuild/shim")),
|
|
@@ -667,4 +668,5 @@ interface IConf<T extends keyof NonNullable<ISdClientPackageConfig["builder"]>>
|
|
|
667
668
|
builderType: T;
|
|
668
669
|
builderConfig: NonNullable<ISdClientPackageConfig["builder"]>[T];
|
|
669
670
|
env: Record<string, string> | undefined;
|
|
671
|
+
noLazyRoute: boolean | undefined;
|
|
670
672
|
}
|
package/vitest.config.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { defineConfig } from "vitest/config";
|
|
2
|
-
import tsconfigPaths from "vite-tsconfig-paths";
|
|
3
2
|
|
|
4
3
|
export default defineConfig({
|
|
5
|
-
|
|
6
|
-
tsconfigPaths
|
|
7
|
-
|
|
8
|
-
}),
|
|
9
|
-
],
|
|
4
|
+
resolve: {
|
|
5
|
+
tsconfigPaths: true,
|
|
6
|
+
},
|
|
10
7
|
test: {
|
|
11
8
|
globals: true,
|
|
12
9
|
environment: "node",
|