@holo-js/cli 0.1.6 → 0.1.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/dist/bin/holo.mjs +45 -31
- package/dist/{broadcast-2AZIC5ZP.mjs → broadcast-3VPGBNCR.mjs} +4 -4
- package/dist/{cache-5OROX4GL.mjs → cache-JGGCYQQG.mjs} +4 -4
- package/dist/{cache-migrations-7XFVLTOC.mjs → cache-migrations-3V7LI4CC.mjs} +5 -5
- package/dist/{chunk-ODJA3TFG.mjs → chunk-2NUEWM2P.mjs} +6 -4
- package/dist/{chunk-UZTDQKIY.mjs → chunk-D4NXGVV4.mjs} +1 -1
- package/dist/{chunk-5BLEC66P.mjs → chunk-DFKX4YT4.mjs} +1 -1
- package/dist/{chunk-MXKNQACM.mjs → chunk-O6AXHL7Z.mjs} +1417 -17
- package/dist/{chunk-OZUDZEAW.mjs → chunk-QIOHKKXP.mjs} +23 -5
- package/dist/{chunk-USACXIIB.mjs → chunk-SABHUOON.mjs} +141 -1180
- package/dist/{config-5JSC6KJG.mjs → config-K7SBKT2C.mjs} +2 -2
- package/dist/{dev-F6QUWNCR.mjs → dev-RZLZX75U.mjs} +5 -5
- package/dist/{discovery-JLT2EOGH.mjs → discovery-SFRDA4VX.mjs} +2 -2
- package/dist/{generators-WVKJLAYB.mjs → generators-UJA6WP7J.mjs} +5 -5
- package/dist/index.mjs +45 -31
- package/dist/{media-migrations-DU7WEKAY.mjs → media-migrations-76KFHA2U.mjs} +6 -6
- package/dist/{queue-NOLVWPCH.mjs → queue-JGVKSPUM.mjs} +6 -6
- package/dist/{queue-migrations-HXNTZMGL.mjs → queue-migrations-3TYOTL45.mjs} +5 -5
- package/dist/{runtime-462O2BDR.mjs → runtime-4AAMJI34.mjs} +5 -5
- package/dist/{scaffold-WOJV2ZZI.mjs → scaffold-TMP7PWOA.mjs} +7 -6
- package/dist/{security-5VGM467J.mjs → security-ILU74RIZ.mjs} +4 -4
- package/package.json +7 -7
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
serializeDatabaseConfig,
|
|
8
8
|
serializeProjectConfig,
|
|
9
9
|
writeProjectConfig
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-DFKX4YT4.mjs";
|
|
11
|
+
import "./chunk-O6AXHL7Z.mjs";
|
|
12
12
|
import {
|
|
13
13
|
readTextFile
|
|
14
14
|
} from "./chunk-R6BWRY3E.mjs";
|
|
@@ -13,15 +13,15 @@ import {
|
|
|
13
13
|
runProjectLifecycleScript,
|
|
14
14
|
runProjectPrepare,
|
|
15
15
|
toPosixSlashes
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2NUEWM2P.mjs";
|
|
17
17
|
import {
|
|
18
18
|
hasProjectDependency
|
|
19
19
|
} from "./chunk-F4MT6GBK.mjs";
|
|
20
20
|
import "./chunk-D7O4SU6N.mjs";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-D4NXGVV4.mjs";
|
|
22
|
+
import "./chunk-SABHUOON.mjs";
|
|
23
|
+
import "./chunk-DFKX4YT4.mjs";
|
|
24
|
+
import "./chunk-O6AXHL7Z.mjs";
|
|
25
25
|
import "./chunk-R6BWRY3E.mjs";
|
|
26
26
|
export {
|
|
27
27
|
collectDirectoryTree,
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
resolveListenerEventNamesFromSource,
|
|
11
11
|
resolveNamedExport,
|
|
12
12
|
resolveNamedExportEntry
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-D4NXGVV4.mjs";
|
|
14
|
+
import "./chunk-O6AXHL7Z.mjs";
|
|
15
15
|
import "./chunk-R6BWRY3E.mjs";
|
|
16
16
|
export {
|
|
17
17
|
collectImportedBindingsBySource,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-5EU32E7X.mjs";
|
|
4
4
|
import {
|
|
5
5
|
runProjectPrepare
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2NUEWM2P.mjs";
|
|
7
7
|
import "./chunk-F4MT6GBK.mjs";
|
|
8
8
|
import {
|
|
9
9
|
hasRegisteredCreateTableMigration,
|
|
@@ -21,12 +21,12 @@ import "./chunk-D7O4SU6N.mjs";
|
|
|
21
21
|
import {
|
|
22
22
|
collectFiles,
|
|
23
23
|
prepareProjectDiscovery
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-D4NXGVV4.mjs";
|
|
25
|
+
import "./chunk-SABHUOON.mjs";
|
|
26
26
|
import {
|
|
27
27
|
ensureGeneratedSchemaPlaceholder,
|
|
28
28
|
ensureProjectConfig
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-DFKX4YT4.mjs";
|
|
30
30
|
import {
|
|
31
31
|
ensureSuffix,
|
|
32
32
|
loadGeneratedProjectRegistry,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
toKebabCase,
|
|
49
49
|
toPascalCase,
|
|
50
50
|
toSnakeCase
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-O6AXHL7Z.mjs";
|
|
52
52
|
import {
|
|
53
53
|
makeProjectRelativePath,
|
|
54
54
|
resolveDefaultArtifactPath,
|
package/dist/index.mjs
CHANGED
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
fileExists
|
|
26
26
|
} from "./chunk-57SJ566R.mjs";
|
|
27
27
|
import "./chunk-D7O4SU6N.mjs";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-D4NXGVV4.mjs";
|
|
29
|
+
import "./chunk-SABHUOON.mjs";
|
|
30
|
+
import "./chunk-DFKX4YT4.mjs";
|
|
31
|
+
import "./chunk-O6AXHL7Z.mjs";
|
|
32
32
|
import {
|
|
33
33
|
SUPPORTED_AUTH_SOCIAL_PROVIDERS
|
|
34
34
|
} from "./chunk-R6BWRY3E.mjs";
|
|
@@ -124,51 +124,51 @@ var projectDiscoveryModulePromise;
|
|
|
124
124
|
var projectRuntimeModulePromise;
|
|
125
125
|
var projectScaffoldModulePromise;
|
|
126
126
|
function loadRuntimeModule() {
|
|
127
|
-
runtimeModulePromise ??= import("./runtime-
|
|
127
|
+
runtimeModulePromise ??= import("./runtime-4AAMJI34.mjs");
|
|
128
128
|
return runtimeModulePromise;
|
|
129
129
|
}
|
|
130
130
|
function loadQueueModule() {
|
|
131
|
-
queueModulePromise ??= import("./queue-
|
|
131
|
+
queueModulePromise ??= import("./queue-JGVKSPUM.mjs");
|
|
132
132
|
return queueModulePromise;
|
|
133
133
|
}
|
|
134
134
|
function loadCacheModule() {
|
|
135
|
-
cacheModulePromise ??= import("./cache-
|
|
135
|
+
cacheModulePromise ??= import("./cache-JGGCYQQG.mjs");
|
|
136
136
|
return cacheModulePromise;
|
|
137
137
|
}
|
|
138
138
|
function loadQueueMigrationsModule() {
|
|
139
|
-
queueMigrationsModulePromise ??= import("./queue-migrations-
|
|
139
|
+
queueMigrationsModulePromise ??= import("./queue-migrations-3TYOTL45.mjs");
|
|
140
140
|
return queueMigrationsModulePromise;
|
|
141
141
|
}
|
|
142
142
|
function loadCacheMigrationsModule() {
|
|
143
|
-
cacheMigrationsModulePromise ??= import("./cache-migrations-
|
|
143
|
+
cacheMigrationsModulePromise ??= import("./cache-migrations-3V7LI4CC.mjs");
|
|
144
144
|
return cacheMigrationsModulePromise;
|
|
145
145
|
}
|
|
146
146
|
function loadMediaMigrationsModule() {
|
|
147
|
-
mediaMigrationsModulePromise ??= import("./media-migrations-
|
|
147
|
+
mediaMigrationsModulePromise ??= import("./media-migrations-76KFHA2U.mjs");
|
|
148
148
|
return mediaMigrationsModulePromise;
|
|
149
149
|
}
|
|
150
150
|
function loadGeneratorsModule() {
|
|
151
|
-
generatorsModulePromise ??= import("./generators-
|
|
151
|
+
generatorsModulePromise ??= import("./generators-UJA6WP7J.mjs");
|
|
152
152
|
return generatorsModulePromise;
|
|
153
153
|
}
|
|
154
154
|
function loadBroadcastModule() {
|
|
155
|
-
broadcastModulePromise ??= import("./broadcast-
|
|
155
|
+
broadcastModulePromise ??= import("./broadcast-3VPGBNCR.mjs");
|
|
156
156
|
return broadcastModulePromise;
|
|
157
157
|
}
|
|
158
158
|
function loadSecurityModule() {
|
|
159
|
-
securityModulePromise ??= import("./security-
|
|
159
|
+
securityModulePromise ??= import("./security-ILU74RIZ.mjs");
|
|
160
160
|
return securityModulePromise;
|
|
161
161
|
}
|
|
162
162
|
function loadDevModule() {
|
|
163
|
-
devModulePromise ??= import("./dev-
|
|
163
|
+
devModulePromise ??= import("./dev-RZLZX75U.mjs");
|
|
164
164
|
return devModulePromise;
|
|
165
165
|
}
|
|
166
166
|
function loadProjectConfigModule() {
|
|
167
|
-
projectConfigModulePromise ??= import("./config-
|
|
167
|
+
projectConfigModulePromise ??= import("./config-K7SBKT2C.mjs");
|
|
168
168
|
return projectConfigModulePromise;
|
|
169
169
|
}
|
|
170
170
|
function loadProjectDiscoveryModule() {
|
|
171
|
-
projectDiscoveryModulePromise ??= import("./discovery-
|
|
171
|
+
projectDiscoveryModulePromise ??= import("./discovery-SFRDA4VX.mjs");
|
|
172
172
|
return projectDiscoveryModulePromise;
|
|
173
173
|
}
|
|
174
174
|
function loadProjectRuntimeModule() {
|
|
@@ -176,7 +176,7 @@ function loadProjectRuntimeModule() {
|
|
|
176
176
|
return projectRuntimeModulePromise;
|
|
177
177
|
}
|
|
178
178
|
function loadProjectScaffoldModule() {
|
|
179
|
-
projectScaffoldModulePromise ??= import("./scaffold-
|
|
179
|
+
projectScaffoldModulePromise ??= import("./scaffold-TMP7PWOA.mjs");
|
|
180
180
|
return projectScaffoldModulePromise;
|
|
181
181
|
}
|
|
182
182
|
async function resolveRuntimeExecutor(runtimeExecutor) {
|
|
@@ -185,7 +185,8 @@ async function resolveRuntimeExecutor(runtimeExecutor) {
|
|
|
185
185
|
var projectExecutorLoaders = {
|
|
186
186
|
runProjectPrepare: async () => (await loadDevModule()).runProjectPrepare,
|
|
187
187
|
runProjectDevServer: async () => (await loadDevModule()).runProjectDevServer,
|
|
188
|
-
runProjectLifecycleScript: async () => (await loadDevModule()).runProjectLifecycleScript
|
|
188
|
+
runProjectLifecycleScript: async () => (await loadDevModule()).runProjectLifecycleScript,
|
|
189
|
+
runProjectDependencyInstall: async () => (await loadDevModule()).runProjectDependencyInstall
|
|
189
190
|
};
|
|
190
191
|
async function resolveProjectExecutor(projectExecutors, key) {
|
|
191
192
|
const existing = projectExecutors[key];
|
|
@@ -278,18 +279,6 @@ function printCommandHelp(io, command) {
|
|
|
278
279
|
writeLine(io.stdout, command.usage);
|
|
279
280
|
writeLine(io.stdout, command.description);
|
|
280
281
|
}
|
|
281
|
-
function resolvePackageManagerInstallCommand(packageManager) {
|
|
282
|
-
switch (packageManager) {
|
|
283
|
-
case "bun":
|
|
284
|
-
return "bun install";
|
|
285
|
-
case "npm":
|
|
286
|
-
return "npm install";
|
|
287
|
-
case "pnpm":
|
|
288
|
-
return "pnpm install";
|
|
289
|
-
case "yarn":
|
|
290
|
-
return "yarn install";
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
282
|
function resolvePackageManagerDevCommand(packageManager) {
|
|
294
283
|
switch (packageManager) {
|
|
295
284
|
case "bun":
|
|
@@ -302,6 +291,17 @@ function resolvePackageManagerDevCommand(packageManager) {
|
|
|
302
291
|
return "yarn dev";
|
|
303
292
|
}
|
|
304
293
|
}
|
|
294
|
+
async function runProjectDependencyInstallAfterPackageJsonUpdate(context, projectExecutors, updatedPackageJson) {
|
|
295
|
+
if (!updatedPackageJson) {
|
|
296
|
+
return;
|
|
297
|
+
}
|
|
298
|
+
await runProjectDependencyInstallForProject(context, projectExecutors, context.projectRoot);
|
|
299
|
+
}
|
|
300
|
+
async function runProjectDependencyInstallForProject(context, projectExecutors, projectRoot) {
|
|
301
|
+
const runProjectDependencyInstall = await resolveProjectExecutor(projectExecutors, "runProjectDependencyInstall");
|
|
302
|
+
await runProjectDependencyInstall(context, projectRoot);
|
|
303
|
+
writeLine(context.stdout, " - installed dependencies");
|
|
304
|
+
}
|
|
305
305
|
function createInternalCommands(context, runtimeExecutor, queueExecutors = {}, projectExecutors = {}, broadcastExecutors = {}, securityExecutors = {}, cacheExecutors = {}, mediaExecutors = {}) {
|
|
306
306
|
return [
|
|
307
307
|
{
|
|
@@ -354,10 +354,10 @@ function createInternalCommands(context, runtimeExecutor, queueExecutors = {}, p
|
|
|
354
354
|
optionalPackages
|
|
355
355
|
});
|
|
356
356
|
writeLine(context.stdout, `Created Holo project: ${targetDir}`);
|
|
357
|
+
await runProjectDependencyInstallForProject(context, projectExecutors, targetDir);
|
|
357
358
|
writeLine(context.stdout);
|
|
358
359
|
writeLine(context.stdout, "Next steps");
|
|
359
360
|
writeLine(context.stdout, ` cd ${projectName}`);
|
|
360
|
-
writeLine(context.stdout, ` ${resolvePackageManagerInstallCommand(packageManager)}`);
|
|
361
361
|
writeLine(context.stdout, ` ${resolvePackageManagerDevCommand(packageManager)}`);
|
|
362
362
|
}
|
|
363
363
|
},
|
|
@@ -462,6 +462,11 @@ function createInternalCommands(context, runtimeExecutor, queueExecutors = {}, p
|
|
|
462
462
|
if (queueResult.updatedEnvExample) writeLine(context.stdout, " - updated .env.example");
|
|
463
463
|
if (queueResult.createdJobsDirectory) writeLine(context.stdout, " - created server/jobs");
|
|
464
464
|
}
|
|
465
|
+
await runProjectDependencyInstallAfterPackageJsonUpdate(
|
|
466
|
+
context,
|
|
467
|
+
projectExecutors,
|
|
468
|
+
eventsResult.updatedPackageJson || queueResult?.updatedPackageJson === true
|
|
469
|
+
);
|
|
465
470
|
return;
|
|
466
471
|
}
|
|
467
472
|
if (target === "auth") {
|
|
@@ -484,6 +489,7 @@ function createInternalCommands(context, runtimeExecutor, queueExecutors = {}, p
|
|
|
484
489
|
if (result2.updatedEnv) writeLine(context.stdout, " - updated .env");
|
|
485
490
|
if (result2.updatedEnvExample) writeLine(context.stdout, " - updated .env.example");
|
|
486
491
|
if (result2.createdMigrationFiles.length > 0) writeLine(context.stdout, ` - created ${result2.createdMigrationFiles.length} auth migrations`);
|
|
492
|
+
await runProjectDependencyInstallAfterPackageJsonUpdate(context, projectExecutors, result2.updatedPackageJson);
|
|
487
493
|
return;
|
|
488
494
|
}
|
|
489
495
|
if (target === "authorization") {
|
|
@@ -496,6 +502,7 @@ function createInternalCommands(context, runtimeExecutor, queueExecutors = {}, p
|
|
|
496
502
|
if (result2.createdAbilitiesDirectory) writeLine(context.stdout, " - created server/abilities");
|
|
497
503
|
if (result2.createdPoliciesReadme) writeLine(context.stdout, " - created server/policies/README.md");
|
|
498
504
|
if (result2.createdAbilitiesReadme) writeLine(context.stdout, " - created server/abilities/README.md");
|
|
505
|
+
await runProjectDependencyInstallAfterPackageJsonUpdate(context, projectExecutors, result2.updatedPackageJson);
|
|
499
506
|
return;
|
|
500
507
|
}
|
|
501
508
|
if (target === "notifications") {
|
|
@@ -508,6 +515,7 @@ function createInternalCommands(context, runtimeExecutor, queueExecutors = {}, p
|
|
|
508
515
|
if (result2.createdMigrationFiles.length > 0) {
|
|
509
516
|
writeLine(context.stdout, ` - created ${result2.createdMigrationFiles.length} notifications migration`);
|
|
510
517
|
}
|
|
518
|
+
await runProjectDependencyInstallAfterPackageJsonUpdate(context, projectExecutors, result2.updatedPackageJson);
|
|
511
519
|
return;
|
|
512
520
|
}
|
|
513
521
|
if (target === "mail") {
|
|
@@ -520,6 +528,7 @@ function createInternalCommands(context, runtimeExecutor, queueExecutors = {}, p
|
|
|
520
528
|
if (result2.updatedEnvExample) writeLine(context.stdout, " - updated .env.example");
|
|
521
529
|
if (result2.createdMailConfig) writeLine(context.stdout, " - created config/mail.ts");
|
|
522
530
|
if (result2.createdMailDirectory) writeLine(context.stdout, " - created server/mail");
|
|
531
|
+
await runProjectDependencyInstallAfterPackageJsonUpdate(context, projectExecutors, result2.updatedPackageJson);
|
|
523
532
|
return;
|
|
524
533
|
}
|
|
525
534
|
if (target === "broadcast") {
|
|
@@ -535,6 +544,7 @@ function createInternalCommands(context, runtimeExecutor, queueExecutors = {}, p
|
|
|
535
544
|
if (result2.createdChannelsDirectory) writeLine(context.stdout, " - created server/channels");
|
|
536
545
|
if (result2.createdBroadcastAuthRoute) writeLine(context.stdout, " - created /broadcasting/auth route");
|
|
537
546
|
if (result2.createdFrameworkSetup) writeLine(context.stdout, " - created framework Flux setup");
|
|
547
|
+
await runProjectDependencyInstallAfterPackageJsonUpdate(context, projectExecutors, result2.updatedPackageJson);
|
|
538
548
|
return;
|
|
539
549
|
}
|
|
540
550
|
if (target === "security") {
|
|
@@ -545,6 +555,7 @@ function createInternalCommands(context, runtimeExecutor, queueExecutors = {}, p
|
|
|
545
555
|
if (result2.updatedPackageJson) writeLine(context.stdout, " - updated package.json");
|
|
546
556
|
if (result2.createdSecurityConfig) writeLine(context.stdout, " - created config/security.ts");
|
|
547
557
|
if (result2.createdCorsConfig) writeLine(context.stdout, " - created config/cors.ts");
|
|
558
|
+
await runProjectDependencyInstallAfterPackageJsonUpdate(context, projectExecutors, result2.updatedPackageJson);
|
|
548
559
|
return;
|
|
549
560
|
}
|
|
550
561
|
if (target === "cache") {
|
|
@@ -560,6 +571,7 @@ function createInternalCommands(context, runtimeExecutor, queueExecutors = {}, p
|
|
|
560
571
|
if (result2.updatedEnv) writeLine(context.stdout, " - updated .env");
|
|
561
572
|
if (result2.updatedEnvExample) writeLine(context.stdout, " - updated .env.example");
|
|
562
573
|
if (result2.databaseDriver) writeLine(context.stdout, ' - run "holo cache:table" to create the cache tables');
|
|
574
|
+
await runProjectDependencyInstallAfterPackageJsonUpdate(context, projectExecutors, result2.updatedPackageJson);
|
|
563
575
|
return;
|
|
564
576
|
}
|
|
565
577
|
if (target === "media") {
|
|
@@ -570,6 +582,7 @@ function createInternalCommands(context, runtimeExecutor, queueExecutors = {}, p
|
|
|
570
582
|
if (result2.createdMediaConfig) writeLine(context.stdout, " - created config/media.ts");
|
|
571
583
|
if (result2.updatedPackageJson) writeLine(context.stdout, " - updated package.json");
|
|
572
584
|
if (result2.createdMigrationFiles.length > 0) writeLine(context.stdout, " - created media migration");
|
|
585
|
+
await runProjectDependencyInstallAfterPackageJsonUpdate(context, projectExecutors, result2.updatedPackageJson);
|
|
573
586
|
return;
|
|
574
587
|
}
|
|
575
588
|
if (target !== "queue") {
|
|
@@ -586,6 +599,7 @@ function createInternalCommands(context, runtimeExecutor, queueExecutors = {}, p
|
|
|
586
599
|
if (result.updatedEnv) writeLine(context.stdout, " - updated .env");
|
|
587
600
|
if (result.updatedEnvExample) writeLine(context.stdout, " - updated .env.example");
|
|
588
601
|
if (result.createdJobsDirectory) writeLine(context.stdout, " - created server/jobs");
|
|
602
|
+
await runProjectDependencyInstallAfterPackageJsonUpdate(context, projectExecutors, result.updatedPackageJson);
|
|
589
603
|
}
|
|
590
604
|
},
|
|
591
605
|
{
|
|
@@ -11,14 +11,14 @@ import "./chunk-57SJ566R.mjs";
|
|
|
11
11
|
import "./chunk-D7O4SU6N.mjs";
|
|
12
12
|
import {
|
|
13
13
|
prepareProjectDiscovery
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-D4NXGVV4.mjs";
|
|
15
|
+
import "./chunk-SABHUOON.mjs";
|
|
16
16
|
import {
|
|
17
17
|
ensureProjectConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-DFKX4YT4.mjs";
|
|
19
19
|
import {
|
|
20
20
|
loadGeneratedProjectRegistry
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-O6AXHL7Z.mjs";
|
|
22
22
|
import {
|
|
23
23
|
makeProjectRelativePath,
|
|
24
24
|
resolveDefaultArtifactPath,
|
|
@@ -54,7 +54,7 @@ function renderMediaTableMigration(tableName = DEFAULT_MEDIA_TABLE) {
|
|
|
54
54
|
" table.string('extension').nullable()",
|
|
55
55
|
" table.bigInteger('size')",
|
|
56
56
|
" table.string('path')",
|
|
57
|
-
" table.json('generated_conversions')
|
|
57
|
+
" table.json('generated_conversions')",
|
|
58
58
|
" table.integer('order_column').default(1)",
|
|
59
59
|
" table.timestamps()",
|
|
60
60
|
" table.index(['model_type', 'model_id'])",
|
|
@@ -94,7 +94,7 @@ async function createMediaTableMigration(projectRoot, options = {}) {
|
|
|
94
94
|
}
|
|
95
95
|
async function runMediaTableCommand(io, projectRoot) {
|
|
96
96
|
const migrationFilePath = await createMediaTableMigration(projectRoot);
|
|
97
|
-
const { runProjectPrepare } = await import("./dev-
|
|
97
|
+
const { runProjectPrepare } = await import("./dev-RZLZX75U.mjs");
|
|
98
98
|
if (!migrationFilePath) {
|
|
99
99
|
throw new Error(`A migration for table "${DEFAULT_MEDIA_TABLE}" already exists.`);
|
|
100
100
|
}
|
|
@@ -4,27 +4,27 @@ import {
|
|
|
4
4
|
normalizeWatchedFilePath,
|
|
5
5
|
runProjectPrepare,
|
|
6
6
|
toPosixSlashes
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2NUEWM2P.mjs";
|
|
8
8
|
import "./chunk-F4MT6GBK.mjs";
|
|
9
9
|
import {
|
|
10
10
|
writeLine
|
|
11
11
|
} from "./chunk-ZXDU7RHU.mjs";
|
|
12
12
|
import {
|
|
13
13
|
initializeProjectRuntime
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QIOHKKXP.mjs";
|
|
15
15
|
import "./chunk-57SJ566R.mjs";
|
|
16
16
|
import "./chunk-D7O4SU6N.mjs";
|
|
17
17
|
import {
|
|
18
18
|
prepareProjectDiscovery
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-D4NXGVV4.mjs";
|
|
20
|
+
import "./chunk-SABHUOON.mjs";
|
|
21
21
|
import {
|
|
22
22
|
ensureProjectConfig,
|
|
23
23
|
loadProjectConfig
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-DFKX4YT4.mjs";
|
|
25
25
|
import {
|
|
26
26
|
loadGeneratedProjectRegistry
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-O6AXHL7Z.mjs";
|
|
28
28
|
import {
|
|
29
29
|
HOLO_RUNTIME_ROOT,
|
|
30
30
|
bundleProjectModule,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runProjectPrepare
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2NUEWM2P.mjs";
|
|
4
4
|
import "./chunk-F4MT6GBK.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getRegistryMigrationSlug,
|
|
@@ -15,14 +15,14 @@ import "./chunk-57SJ566R.mjs";
|
|
|
15
15
|
import "./chunk-D7O4SU6N.mjs";
|
|
16
16
|
import {
|
|
17
17
|
prepareProjectDiscovery
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-D4NXGVV4.mjs";
|
|
19
|
+
import "./chunk-SABHUOON.mjs";
|
|
20
20
|
import {
|
|
21
21
|
ensureProjectConfig
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-DFKX4YT4.mjs";
|
|
23
23
|
import {
|
|
24
24
|
loadGeneratedProjectRegistry
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-O6AXHL7Z.mjs";
|
|
26
26
|
import {
|
|
27
27
|
makeProjectRelativePath,
|
|
28
28
|
resolveDefaultArtifactPath,
|
|
@@ -22,13 +22,13 @@ import {
|
|
|
22
22
|
resolvePackageRootFromSpecifier,
|
|
23
23
|
runRuntimeInvocation,
|
|
24
24
|
withRuntimeEnvironment
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-QIOHKKXP.mjs";
|
|
26
26
|
import "./chunk-57SJ566R.mjs";
|
|
27
27
|
import "./chunk-D7O4SU6N.mjs";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-D4NXGVV4.mjs";
|
|
29
|
+
import "./chunk-SABHUOON.mjs";
|
|
30
|
+
import "./chunk-DFKX4YT4.mjs";
|
|
31
|
+
import "./chunk-O6AXHL7Z.mjs";
|
|
32
32
|
import "./chunk-R6BWRY3E.mjs";
|
|
33
33
|
export {
|
|
34
34
|
RUNTIME_MIGRATION_NAME_PATTERN,
|
|
@@ -20,14 +20,11 @@ import {
|
|
|
20
20
|
renderAuthConfig,
|
|
21
21
|
renderAuthEnvFiles,
|
|
22
22
|
renderAuthMigration,
|
|
23
|
-
renderAuthProviderRouteFiles,
|
|
24
23
|
renderAuthUserModel,
|
|
25
24
|
renderCacheConfig,
|
|
26
25
|
renderCacheEnvFiles,
|
|
27
26
|
renderCorsConfig,
|
|
28
27
|
renderEnvFileContents,
|
|
29
|
-
renderFrameworkFiles,
|
|
30
|
-
renderFrameworkRunner,
|
|
31
28
|
renderMailConfig,
|
|
32
29
|
renderMailEnvFiles,
|
|
33
30
|
renderMediaConfig,
|
|
@@ -58,9 +55,13 @@ import {
|
|
|
58
55
|
upsertMediaPackageDependency,
|
|
59
56
|
upsertNotificationsPackageDependency,
|
|
60
57
|
upsertSecurityPackageDependency
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import
|
|
58
|
+
} from "./chunk-SABHUOON.mjs";
|
|
59
|
+
import "./chunk-DFKX4YT4.mjs";
|
|
60
|
+
import {
|
|
61
|
+
renderAuthProviderRouteFiles,
|
|
62
|
+
renderFrameworkFiles,
|
|
63
|
+
renderFrameworkRunner
|
|
64
|
+
} from "./chunk-O6AXHL7Z.mjs";
|
|
64
65
|
import {
|
|
65
66
|
isSupportedCacheInstallerDriver,
|
|
66
67
|
isSupportedQueueInstallerDriver,
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
writeLine
|
|
3
3
|
} from "./chunk-ZXDU7RHU.mjs";
|
|
4
4
|
import "./chunk-D7O4SU6N.mjs";
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-D4NXGVV4.mjs";
|
|
6
|
+
import "./chunk-SABHUOON.mjs";
|
|
7
|
+
import "./chunk-DFKX4YT4.mjs";
|
|
8
|
+
import "./chunk-O6AXHL7Z.mjs";
|
|
9
9
|
import {
|
|
10
10
|
resolveProjectPackageImportSpecifier
|
|
11
11
|
} from "./chunk-R6BWRY3E.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@holo-js/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Holo-JS Framework - project creation, discovery, and operational CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
"test:integration": "HOLO_CLI_INCLUDE_INTEGRATION=1 vitest --run tests/cli.test.ts"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@holo-js/config": "^0.1.
|
|
31
|
-
"@holo-js/core": "^0.1.
|
|
32
|
-
"@holo-js/db": "^0.1.
|
|
30
|
+
"@holo-js/config": "^0.1.8",
|
|
31
|
+
"@holo-js/core": "^0.1.8",
|
|
32
|
+
"@holo-js/db": "^0.1.8",
|
|
33
33
|
"esbuild": "^0.27.4",
|
|
34
34
|
"inflection": "^3.0.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@holo-js/events": "^0.1.
|
|
38
|
-
"@holo-js/queue": "^0.1.
|
|
39
|
-
"@holo-js/queue-db": "^0.1.
|
|
37
|
+
"@holo-js/events": "^0.1.8",
|
|
38
|
+
"@holo-js/queue": "^0.1.8",
|
|
39
|
+
"@holo-js/queue-db": "^0.1.8",
|
|
40
40
|
"@types/node": "^22.10.2",
|
|
41
41
|
"tsup": "^8.3.5",
|
|
42
42
|
"typescript": "^5.7.2",
|