@holo-js/cli 0.3.1 → 0.3.3
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 +24 -24
- package/dist/{broadcast-PJLFVZH4.mjs → broadcast-6HKLFYUH.mjs} +8 -8
- package/dist/{cache-KR4ACOYD.mjs → cache-2RLSWZJ3.mjs} +7 -7
- package/dist/{cache-migrations-J34RE4WH.mjs → cache-migrations-UPKUSIPR.mjs} +10 -10
- package/dist/{chunk-AZ6NVJAP.mjs → chunk-35ZABJEB.mjs} +1 -1
- package/dist/{chunk-3ICVWL2M.mjs → chunk-7UXRXXPO.mjs} +2 -2
- package/dist/{chunk-CT23GSEC.mjs → chunk-ADP4UQA5.mjs} +1 -1
- package/dist/{chunk-FFTJKBQF.mjs → chunk-AQRX4FQG.mjs} +14 -6
- package/dist/{chunk-PVVGQSUP.mjs → chunk-ARDZVOST.mjs} +47 -47
- package/dist/{chunk-L3YATEQY.mjs → chunk-ASD767Q7.mjs} +116 -7
- package/dist/{chunk-7KZVFDSI.mjs → chunk-C4WPPQPR.mjs} +3 -3
- package/dist/{chunk-I3RRWDLV.mjs → chunk-MYTKB6GV.mjs} +6 -6
- package/dist/{chunk-L6FF22IV.mjs → chunk-R5BXEPH5.mjs} +7 -7
- package/dist/{chunk-4VYR2ARA.mjs → chunk-TEAV2C2A.mjs} +2 -2
- package/dist/{chunk-2XXJ76YC.mjs → chunk-YLW4NUNM.mjs} +1 -1
- package/dist/{config-XVPV6DJW.mjs → config-WTB6JPBN.mjs} +3 -3
- package/dist/{dev-NTQTEY5B.mjs → dev-USYW3LBP.mjs} +9 -9
- package/dist/{discovery-TMPUQQHI.mjs → discovery-BFUWENC6.mjs} +4 -4
- package/dist/{generators-3FDCCJDC.mjs → generators-BDJ3PDAR.mjs} +10 -10
- package/dist/index.mjs +24 -24
- package/dist/{media-migrations-UJ6BMUSZ.mjs → media-migrations-ASB5L3F2.mjs} +9 -9
- package/dist/{plugins-USHY6SPF.mjs → plugins-NEM2VBHH.mjs} +3 -3
- package/dist/{queue-6U7JU4T6.mjs → queue-56UOSMIN.mjs} +12 -12
- package/dist/{queue-VJEFD6SE.mjs → queue-BLFNHZQQ.mjs} +12 -12
- package/dist/{queue-migrations-6YUUOKMH.mjs → queue-migrations-CZ5TQ4M2.mjs} +10 -10
- package/dist/{runtime-P5R7H3B4.mjs → runtime-BHLRLGFL.mjs} +1 -1
- package/dist/{runtime-FVRB4O2M.mjs → runtime-EAV54JSZ.mjs} +8 -8
- package/dist/runtime-worker.mjs +18 -1
- package/dist/{scaffold-F3AZDNPG.mjs → scaffold-JIVZOC6J.mjs} +7 -7
- package/dist/{security-X4274RHX.mjs → security-A5LPMCIA.mjs} +7 -7
- package/package.json +19 -19
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
initializeProjectRuntime
|
|
3
|
-
} from "./chunk-I3RRWDLV.mjs";
|
|
4
1
|
import {
|
|
5
2
|
loadProjectDatabaseDrivers
|
|
6
3
|
} from "./chunk-XBOVM6LO.mjs";
|
|
4
|
+
import {
|
|
5
|
+
initializeProjectRuntime
|
|
6
|
+
} from "./chunk-MYTKB6GV.mjs";
|
|
7
7
|
import {
|
|
8
8
|
isIgnorableWatchError,
|
|
9
9
|
isRecursiveWatchUnsupported,
|
|
10
10
|
normalizeWatchedFilePath,
|
|
11
11
|
runProjectPrepare,
|
|
12
12
|
toPosixSlashes
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-R5BXEPH5.mjs";
|
|
14
|
+
import "./chunk-ADP4UQA5.mjs";
|
|
15
15
|
import {
|
|
16
16
|
writeLine
|
|
17
17
|
} from "./chunk-Y355VYRN.mjs";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-AQRX4FQG.mjs";
|
|
19
19
|
import {
|
|
20
20
|
ensureProjectConfig,
|
|
21
21
|
loadProjectConfig
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-TEAV2C2A.mjs";
|
|
23
23
|
import {
|
|
24
24
|
prepareProjectDiscovery
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-C4WPPQPR.mjs";
|
|
26
26
|
import {
|
|
27
27
|
loadGeneratedProjectRegistry
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-ASD767Q7.mjs";
|
|
29
|
+
import "./chunk-7UXRXXPO.mjs";
|
|
30
|
+
import "./chunk-35ZABJEB.mjs";
|
|
31
31
|
import {
|
|
32
32
|
HOLO_RUNTIME_ROOT,
|
|
33
33
|
bundleProjectModule,
|
|
34
34
|
resolveProjectPackageImportSpecifier
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-ARDZVOST.mjs";
|
|
36
36
|
|
|
37
37
|
// src/queue.ts
|
|
38
38
|
import { spawn } from "child_process";
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
+
import {
|
|
2
|
+
initializeProjectRuntime
|
|
3
|
+
} from "./chunk-MYTKB6GV.mjs";
|
|
1
4
|
import {
|
|
2
5
|
loadProjectDatabaseDrivers
|
|
3
6
|
} from "./chunk-XBOVM6LO.mjs";
|
|
4
|
-
import {
|
|
5
|
-
initializeProjectRuntime
|
|
6
|
-
} from "./chunk-I3RRWDLV.mjs";
|
|
7
7
|
import {
|
|
8
8
|
isIgnorableWatchError,
|
|
9
9
|
isRecursiveWatchUnsupported,
|
|
10
10
|
normalizeWatchedFilePath,
|
|
11
11
|
runProjectPrepare,
|
|
12
12
|
toPosixSlashes
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-R5BXEPH5.mjs";
|
|
14
|
+
import "./chunk-ADP4UQA5.mjs";
|
|
15
15
|
import {
|
|
16
16
|
writeLine
|
|
17
17
|
} from "./chunk-Y355VYRN.mjs";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-AQRX4FQG.mjs";
|
|
19
19
|
import {
|
|
20
20
|
ensureProjectConfig,
|
|
21
21
|
loadProjectConfig
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-TEAV2C2A.mjs";
|
|
23
23
|
import {
|
|
24
24
|
prepareProjectDiscovery
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-C4WPPQPR.mjs";
|
|
26
26
|
import {
|
|
27
27
|
loadGeneratedProjectRegistry
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-ASD767Q7.mjs";
|
|
29
|
+
import "./chunk-7UXRXXPO.mjs";
|
|
30
|
+
import "./chunk-35ZABJEB.mjs";
|
|
31
31
|
import {
|
|
32
32
|
HOLO_RUNTIME_ROOT,
|
|
33
33
|
bundleProjectModule,
|
|
34
34
|
resolveProjectPackageImportSpecifier
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-ARDZVOST.mjs";
|
|
36
36
|
|
|
37
37
|
// src/queue.ts
|
|
38
38
|
import { spawn } from "child_process";
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runProjectPrepare
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-R5BXEPH5.mjs";
|
|
4
|
+
import "./chunk-ADP4UQA5.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getRegistryMigrationSlug,
|
|
7
7
|
hasRegisteredCreateTableMigration,
|
|
8
8
|
hasRegisteredMigrationSlug,
|
|
9
9
|
nextMigrationTemplate
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YLW4NUNM.mjs";
|
|
11
11
|
import {
|
|
12
12
|
writeLine
|
|
13
13
|
} from "./chunk-Y355VYRN.mjs";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-AQRX4FQG.mjs";
|
|
15
15
|
import {
|
|
16
16
|
ensureProjectConfig
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TEAV2C2A.mjs";
|
|
18
18
|
import {
|
|
19
19
|
prepareProjectDiscovery
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-C4WPPQPR.mjs";
|
|
21
21
|
import {
|
|
22
22
|
loadGeneratedProjectRegistry
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-ASD767Q7.mjs";
|
|
24
|
+
import "./chunk-7UXRXXPO.mjs";
|
|
25
|
+
import "./chunk-35ZABJEB.mjs";
|
|
26
26
|
import {
|
|
27
27
|
makeProjectRelativePath,
|
|
28
28
|
resolveDefaultArtifactPath,
|
|
29
29
|
writeTextFile
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-ARDZVOST.mjs";
|
|
31
31
|
|
|
32
32
|
// src/queue-migrations.ts
|
|
33
33
|
import { resolve } from "path";
|
|
@@ -22,14 +22,14 @@ import {
|
|
|
22
22
|
resolveRuntimeWorkerPath,
|
|
23
23
|
runRuntimeInvocation,
|
|
24
24
|
withRuntimeEnvironment
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-MYTKB6GV.mjs";
|
|
26
|
+
import "./chunk-AQRX4FQG.mjs";
|
|
27
|
+
import "./chunk-TEAV2C2A.mjs";
|
|
28
|
+
import "./chunk-C4WPPQPR.mjs";
|
|
29
|
+
import "./chunk-ASD767Q7.mjs";
|
|
30
|
+
import "./chunk-7UXRXXPO.mjs";
|
|
31
|
+
import "./chunk-35ZABJEB.mjs";
|
|
32
|
+
import "./chunk-ARDZVOST.mjs";
|
|
33
33
|
export {
|
|
34
34
|
RUNTIME_MIGRATION_NAME_PATTERN,
|
|
35
35
|
cacheProjectConfig,
|
package/dist/runtime-worker.mjs
CHANGED
|
@@ -8,6 +8,7 @@ import { dirname } from "path";
|
|
|
8
8
|
import {
|
|
9
9
|
configureDB,
|
|
10
10
|
createMigrationService,
|
|
11
|
+
createSchemaRegistry,
|
|
11
12
|
createSchemaService,
|
|
12
13
|
createSeederService,
|
|
13
14
|
registerGeneratedTables,
|
|
@@ -140,11 +141,24 @@ async function hydrateGeneratedSchemaFromRanMigrations(manager2, migrations) {
|
|
|
140
141
|
return;
|
|
141
142
|
}
|
|
142
143
|
const realConnection = manager2.connection();
|
|
144
|
+
const hydratedRegistry = createSchemaRegistry();
|
|
145
|
+
for (const table of realConnection.getSchemaRegistry().list()) {
|
|
146
|
+
hydratedRegistry.replace(table);
|
|
147
|
+
}
|
|
148
|
+
const replayRegistry = {
|
|
149
|
+
register: (table) => hydratedRegistry.replace(table),
|
|
150
|
+
has: () => false,
|
|
151
|
+
replace: (table) => hydratedRegistry.replace(table),
|
|
152
|
+
delete: (name) => hydratedRegistry.delete(name),
|
|
153
|
+
get: (name) => hydratedRegistry.get(name),
|
|
154
|
+
list: () => hydratedRegistry.list(),
|
|
155
|
+
clear: () => hydratedRegistry.clear()
|
|
156
|
+
};
|
|
143
157
|
const dryRunConnection = {
|
|
144
158
|
getDialect: () => realConnection.getDialect(),
|
|
145
159
|
getCapabilities: () => realConnection.getCapabilities(),
|
|
146
160
|
getSchemaName: () => realConnection.getSchemaName(),
|
|
147
|
-
getSchemaRegistry: () =>
|
|
161
|
+
getSchemaRegistry: () => replayRegistry,
|
|
148
162
|
executeCompiled: async () => void 0,
|
|
149
163
|
introspectCompiled: async () => ({ rows: [], rowCount: 0 }),
|
|
150
164
|
transaction: async (callback) => callback(dryRunConnection)
|
|
@@ -155,6 +169,9 @@ async function hydrateGeneratedSchemaFromRanMigrations(manager2, migrations) {
|
|
|
155
169
|
await migration.up({ db: dryRunConnection, schema });
|
|
156
170
|
}
|
|
157
171
|
}
|
|
172
|
+
for (const table of hydratedRegistry.list()) {
|
|
173
|
+
realConnection.getSchemaRegistry().replace(table);
|
|
174
|
+
}
|
|
158
175
|
}
|
|
159
176
|
async function loadRuntimeItems(entries, matcher, label) {
|
|
160
177
|
const items = [];
|
|
@@ -56,24 +56,24 @@ import {
|
|
|
56
56
|
upsertMediaPackageDependency,
|
|
57
57
|
upsertNotificationsPackageDependency,
|
|
58
58
|
upsertSecurityPackageDependency
|
|
59
|
-
} from "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
59
|
+
} from "./chunk-AQRX4FQG.mjs";
|
|
60
|
+
import "./chunk-TEAV2C2A.mjs";
|
|
61
|
+
import "./chunk-C4WPPQPR.mjs";
|
|
62
62
|
import {
|
|
63
63
|
renderAuthProviderRouteFiles,
|
|
64
64
|
renderFrameworkFiles,
|
|
65
65
|
renderFrameworkRunner,
|
|
66
66
|
renderFrameworkRunnerForDescriptor,
|
|
67
67
|
renderNextBroadcastConfigRoute
|
|
68
|
-
} from "./chunk-
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
68
|
+
} from "./chunk-ASD767Q7.mjs";
|
|
69
|
+
import "./chunk-7UXRXXPO.mjs";
|
|
70
|
+
import "./chunk-35ZABJEB.mjs";
|
|
71
71
|
import {
|
|
72
72
|
isSupportedCacheInstallerDriver,
|
|
73
73
|
isSupportedQueueInstallerDriver,
|
|
74
74
|
normalizeScaffoldOptionalPackages,
|
|
75
75
|
sanitizePackageName
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-ARDZVOST.mjs";
|
|
77
77
|
export {
|
|
78
78
|
authFeaturesRequireConfigUpdate,
|
|
79
79
|
detectAuthInstallFeaturesFromConfig,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeLine
|
|
3
3
|
} from "./chunk-Y355VYRN.mjs";
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
4
|
+
import "./chunk-AQRX4FQG.mjs";
|
|
5
|
+
import "./chunk-TEAV2C2A.mjs";
|
|
6
|
+
import "./chunk-C4WPPQPR.mjs";
|
|
7
|
+
import "./chunk-ASD767Q7.mjs";
|
|
8
|
+
import "./chunk-7UXRXXPO.mjs";
|
|
9
|
+
import "./chunk-35ZABJEB.mjs";
|
|
10
10
|
import {
|
|
11
11
|
resolveProjectPackageImportSpecifier
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ARDZVOST.mjs";
|
|
13
13
|
|
|
14
14
|
// src/security.ts
|
|
15
15
|
import { loadConfigDirectory } from "@holo-js/config";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@holo-js/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Holo-JS Framework - project creation, discovery, and operational CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,22 +28,22 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@clack/prompts": "^1.5.1",
|
|
31
|
-
"@holo-js/auth": "^0.3.
|
|
32
|
-
"@holo-js/cache-db": "^0.3.
|
|
33
|
-
"@holo-js/config": "^0.3.
|
|
34
|
-
"@holo-js/core": "^0.3.
|
|
35
|
-
"@holo-js/db": "^0.3.
|
|
36
|
-
"@holo-js/kernel": "^0.3.
|
|
37
|
-
"@holo-js/security": "^0.3.
|
|
38
|
-
"@holo-js/storage": "^0.3.
|
|
31
|
+
"@holo-js/auth": "^0.3.3",
|
|
32
|
+
"@holo-js/cache-db": "^0.3.3",
|
|
33
|
+
"@holo-js/config": "^0.3.3",
|
|
34
|
+
"@holo-js/core": "^0.3.3",
|
|
35
|
+
"@holo-js/db": "^0.3.3",
|
|
36
|
+
"@holo-js/kernel": "^0.3.3",
|
|
37
|
+
"@holo-js/security": "^0.3.3",
|
|
38
|
+
"@holo-js/storage": "^0.3.3",
|
|
39
39
|
"esbuild": "^0.27.4",
|
|
40
40
|
"inflection": "^3.0.2"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@holo-js/broadcast": "^0.3.
|
|
44
|
-
"@holo-js/mail": "^0.3.
|
|
45
|
-
"@holo-js/session": "^0.3.
|
|
46
|
-
"@holo-js/queue": "^0.3.
|
|
43
|
+
"@holo-js/broadcast": "^0.3.3",
|
|
44
|
+
"@holo-js/mail": "^0.3.3",
|
|
45
|
+
"@holo-js/session": "^0.3.3",
|
|
46
|
+
"@holo-js/queue": "^0.3.3"
|
|
47
47
|
},
|
|
48
48
|
"peerDependenciesMeta": {
|
|
49
49
|
"@holo-js/broadcast": {
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@holo-js/broadcast": "^0.3.
|
|
64
|
-
"@holo-js/events": "^0.3.
|
|
65
|
-
"@holo-js/mail": "^0.3.
|
|
66
|
-
"@holo-js/queue": "^0.3.
|
|
67
|
-
"@holo-js/queue-db": "^0.3.
|
|
68
|
-
"@holo-js/session": "^0.3.
|
|
63
|
+
"@holo-js/broadcast": "^0.3.3",
|
|
64
|
+
"@holo-js/events": "^0.3.3",
|
|
65
|
+
"@holo-js/mail": "^0.3.3",
|
|
66
|
+
"@holo-js/queue": "^0.3.3",
|
|
67
|
+
"@holo-js/queue-db": "^0.3.3",
|
|
68
|
+
"@holo-js/session": "^0.3.3",
|
|
69
69
|
"@types/node": "^22.10.2",
|
|
70
70
|
"tsup": "^8.3.5",
|
|
71
71
|
"typescript": "^5.7.2",
|