@vendure/cloud 0.0.0
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/README.md +60 -0
- package/dist/entrypoint.d.ts +3 -0
- package/dist/entrypoint.d.ts.map +1 -0
- package/dist/entrypoint.js +46 -0
- package/dist/entrypoint.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/local-runtime-guard.d.ts +2 -0
- package/dist/local-runtime-guard.d.ts.map +1 -0
- package/dist/local-runtime-guard.js +7 -0
- package/dist/local-runtime-guard.js.map +1 -0
- package/dist/local-runtime.d.ts +14 -0
- package/dist/local-runtime.d.ts.map +1 -0
- package/dist/local-runtime.js +56 -0
- package/dist/local-runtime.js.map +1 -0
- package/package.json +79 -0
package/README.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# @vendure/cloud
|
|
2
|
+
|
|
3
|
+
The package a Vendure Cloud application installs as a development dependency. It exports the Cloud
|
|
4
|
+
Config interface and a local runner; the managed image replaces its local substitutes with the
|
|
5
|
+
private Cloud Runtime implementation.
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
import { defineCloudConfig, defineVendureExtension } from "@vendure/cloud";
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
The Cloud Config surface is re-exported from `@vendure/cloud-config`. The four wrapped plugins ADR-0044
|
|
12
|
+
lists — `CloudAssetServerPlugin`, `CloudDashboardPlugin`, `CloudEmailPlugin` and
|
|
13
|
+
`CloudAdvancedSearchPlugin` — arrive with the wrappers they hold, in CLO-399, CLO-400,
|
|
14
|
+
CLO-401 and CLO-402, and each is added here as another exact-pinned dependency re-exported
|
|
15
|
+
from `src/index.ts`.
|
|
16
|
+
|
|
17
|
+
## Local development
|
|
18
|
+
|
|
19
|
+
Build the application, then point the included runner at the compiled Cloud Config:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
vendure-cloud server dist/vendure-config.js
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
The runner supplies a local SQLite database, database-backed cache and job queue, and the default
|
|
26
|
+
scheduler. It prints a startup warning naming those substitutes. Install `sql.js` as a development
|
|
27
|
+
dependency; it is intentionally absent from deployed images.
|
|
28
|
+
|
|
29
|
+
If `VC_ENVIRONMENT_ID` is present, the local runner refuses to boot. A managed process must use the
|
|
30
|
+
private platform entrypoint and cannot silently fall back to a local database.
|
|
31
|
+
|
|
32
|
+
## Why the pins are exact, and what it costs
|
|
33
|
+
|
|
34
|
+
A plugin package takes `@vendure/cloud-config` as a *peer* dependency and depends on it
|
|
35
|
+
directly nowhere. This package is the only one that depends on it directly, at an exact
|
|
36
|
+
version. Between them those two rules mean a customer's tree cannot end up holding two copies
|
|
37
|
+
of `@vendure/cloud-config` by accident, which matters because two copies break
|
|
38
|
+
`instanceof CloudConfigError` across the seam: a boot failure a caller catches becomes an
|
|
39
|
+
uncaught one, and the customer sees a stack trace instead of the message we wrote.
|
|
40
|
+
|
|
41
|
+
The cost is a lockstep release train. A patch to one plugin bumps every package and this
|
|
42
|
+
facade with it. ADR-0045 accepts that, and
|
|
43
|
+
[ADR-0046](../../internal/adr/0046-host-packages-are-dev-dependencies-and-the-runtime-supplies-production-copies.md)
|
|
44
|
+
makes it cheaper than it was: a customer declares these as development dependencies and the
|
|
45
|
+
Cloud Runtime supplies the production copies, so a patch no longer waits on every customer to
|
|
46
|
+
install it.
|
|
47
|
+
|
|
48
|
+
## Two standing constraints on anything added here
|
|
49
|
+
|
|
50
|
+
**No top-level await, anywhere in the module graph.**
|
|
51
|
+
[ADR-0049](../../internal/adr/0049-the-cloud-config-packages-are-consumable-from-commonjs.md)
|
|
52
|
+
requires this package to be loadable from a CommonJS application through `require(esm)`, which
|
|
53
|
+
refuses a graph containing one — at runtime, in the customer's container, with no compile-time
|
|
54
|
+
symptom. `packages/cloud-config/test/managed-build.test.ts` builds and runs its fixture under
|
|
55
|
+
both module systems, which is what would catch it.
|
|
56
|
+
|
|
57
|
+
**Nothing is bundled or minified.** A bundler inlines `@vendure/core` and a minifier rewrites
|
|
58
|
+
the class names the boot messages are read from, and both failures are silent.
|
|
59
|
+
`test/published-output.test.ts` builds this package and asserts the
|
|
60
|
+
output is neither.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entrypoint.d.ts","sourceRoot":"","sources":["../src/entrypoint.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { resolve } from "node:path";
|
|
3
|
+
import { pathToFileURL } from "node:url";
|
|
4
|
+
import { isCloudConfigHandle } from "@vendure/cloud-config";
|
|
5
|
+
import { bootstrapLocalServer, bootstrapLocalWorker, runLocalMigrations } from "./local-runtime.js";
|
|
6
|
+
import { assertLocalRuntimeAllowed } from "./local-runtime-guard.js";
|
|
7
|
+
const RUN_MODES = ["server", "worker", "migrate"];
|
|
8
|
+
async function main() {
|
|
9
|
+
assertLocalRuntimeAllowed(process.env);
|
|
10
|
+
const mode = parseRunMode(process.argv[2]);
|
|
11
|
+
const configPath = resolve(process.argv[3] ?? "dist/vendure-config.js");
|
|
12
|
+
const handle = await loadCloudConfig(configPath);
|
|
13
|
+
if (mode === "server") {
|
|
14
|
+
await bootstrapLocalServer(handle);
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
if (mode === "worker") {
|
|
18
|
+
const worker = await bootstrapLocalWorker(handle);
|
|
19
|
+
await worker.startJobQueue();
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
await runLocalMigrations(handle);
|
|
23
|
+
}
|
|
24
|
+
async function loadCloudConfig(configPath) {
|
|
25
|
+
const loaded = await import(pathToFileURL(configPath).href);
|
|
26
|
+
if (typeof loaded !== "object" || loaded === null) {
|
|
27
|
+
throw new Error(`Vendure Cloud: ${configPath} did not export a Cloud Config.`);
|
|
28
|
+
}
|
|
29
|
+
const exports = loaded;
|
|
30
|
+
const handle = exports.default ?? exports.config;
|
|
31
|
+
if (!isCloudConfigHandle(handle)) {
|
|
32
|
+
throw new Error(`Vendure Cloud: ${configPath} must export the result of defineCloudConfig() as default or config.`);
|
|
33
|
+
}
|
|
34
|
+
return handle;
|
|
35
|
+
}
|
|
36
|
+
function parseRunMode(value) {
|
|
37
|
+
const mode = value ?? "server";
|
|
38
|
+
if (RUN_MODES.includes(mode))
|
|
39
|
+
return mode;
|
|
40
|
+
throw new Error(`Vendure Cloud: unknown run mode ${JSON.stringify(mode)}; expected server, worker or migrate.`);
|
|
41
|
+
}
|
|
42
|
+
main().catch((error) => {
|
|
43
|
+
process.stderr.write(`${error instanceof Error ? error.message : String(error)}\n`);
|
|
44
|
+
process.exitCode = 1;
|
|
45
|
+
});
|
|
46
|
+
//# sourceMappingURL=entrypoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entrypoint.js","sourceRoot":"","sources":["../src/entrypoint.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAA0B,MAAM,uBAAuB,CAAC;AACpF,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACpG,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAErE,MAAM,SAAS,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAU,CAAC;AAG3D,KAAK,UAAU,IAAI;IACjB,yBAAyB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAEvC,MAAM,IAAI,GAAG,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3C,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI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AC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;IAC9B,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACpF,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;AACvB,CAAC,CAAC,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,cAAc,uBAAuB,CAAC;AACtC,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,KAAK,mBAAmB,GACzB,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// The one package a Vendure Cloud application installs (ADR-0045). It is a facade: it holds
|
|
2
|
+
// no behaviour of its own, and every name below is re-exported from a package it pins at an
|
|
3
|
+
// exact version. What it re-exports and what is still to join it is in ./README.md.
|
|
4
|
+
//
|
|
5
|
+
// `export *` rather than a written-out list, so a name added to the Cloud Config surface
|
|
6
|
+
// reaches a customer without a second edit here that nothing would catch if it were
|
|
7
|
+
// forgotten.
|
|
8
|
+
export * from "@vendure/cloud-config";
|
|
9
|
+
export { bootstrapLocalServer, bootstrapLocalWorker, composeLocalConfig, runLocalMigrations, } from "./local-runtime.js";
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,4FAA4F;AAC5F,oFAAoF;AACpF,EAAE;AACF,yFAAyF;AACzF,oFAAoF;AACpF,aAAa;AACb,cAAc,uBAAuB,CAAC;AACtC,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,GAEnB,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-runtime-guard.d.ts","sourceRoot":"","sources":["../src/local-runtime-guard.ts"],"names":[],"mappings":"AAEA,wBAAgB,yBAAyB,CAAC,WAAW,EAAE,MAAM,CAAC,UAAU,GAAG,IAAI,CAM9E"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const MANAGED_ENVIRONMENT_MARKER = "VC_ENVIRONMENT_ID";
|
|
2
|
+
export function assertLocalRuntimeAllowed(environment) {
|
|
3
|
+
if (environment[MANAGED_ENVIRONMENT_MARKER] === undefined)
|
|
4
|
+
return;
|
|
5
|
+
throw new Error("Vendure Cloud: managed configuration is present, but the platform runtime entrypoint is not running. Refusing to boot with local substitutes.");
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=local-runtime-guard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-runtime-guard.js","sourceRoot":"","sources":["../src/local-runtime-guard.ts"],"names":[],"mappings":"AAAA,MAAM,0BAA0B,GAAG,mBAAmB,CAAC;AAEvD,MAAM,UAAU,yBAAyB,CAAC,WAA8B;IACtE,IAAI,WAAW,CAAC,0BAA0B,CAAC,KAAK,SAAS;QAAE,OAAO;IAElE,MAAM,IAAI,KAAK,CACb,+IAA+I,CAChJ,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type CloudConfigHandle } from "@vendure/cloud-config";
|
|
2
|
+
import { type VendureConfig, bootstrap, bootstrapWorker } from "@vendure/core";
|
|
3
|
+
export interface LocalRuntimeOptions {
|
|
4
|
+
databasePath?: string;
|
|
5
|
+
port?: number;
|
|
6
|
+
superadminIdentifier?: string;
|
|
7
|
+
superadminPassword?: string;
|
|
8
|
+
announce?: (message: string) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function bootstrapLocalServer(handle: CloudConfigHandle, options?: LocalRuntimeOptions): ReturnType<typeof bootstrap>;
|
|
11
|
+
export declare function bootstrapLocalWorker(handle: CloudConfigHandle, options?: LocalRuntimeOptions): ReturnType<typeof bootstrapWorker>;
|
|
12
|
+
export declare function runLocalMigrations(handle: CloudConfigHandle, options?: LocalRuntimeOptions): Promise<void>;
|
|
13
|
+
export declare function composeLocalConfig(handle: CloudConfigHandle, options?: LocalRuntimeOptions): VendureConfig;
|
|
14
|
+
//# sourceMappingURL=local-runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-runtime.d.ts","sourceRoot":"","sources":["../src/local-runtime.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,iBAAiB,EAKvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAML,KAAK,aAAa,EAElB,SAAS,EACT,eAAe,EAEhB,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW,mBAAmB;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AAED,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,iBAAiB,EACzB,OAAO,GAAE,mBAAwB,GAChC,UAAU,CAAC,OAAO,SAAS,CAAC,CAE9B;AAED,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,iBAAiB,EACzB,OAAO,GAAE,mBAAwB,GAChC,UAAU,CAAC,OAAO,eAAe,CAAC,CAEpC;AAED,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,iBAAiB,EACzB,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,IAAI,CAAC,CAEf;AAED,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,iBAAiB,EACzB,OAAO,GAAE,mBAAwB,GAChC,aAAa,CAoCf"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { mkdirSync } from "node:fs";
|
|
2
|
+
import { createRequire } from "node:module";
|
|
3
|
+
import { dirname, resolve } from "node:path";
|
|
4
|
+
import { composeCloudConfig, platformDefaultFieldValues, } from "@vendure/cloud-config";
|
|
5
|
+
import { DefaultCachePlugin, DefaultJobQueuePlugin, DefaultLogger, DefaultSchedulerPlugin, DefaultSessionCacheStrategy, VendurePlugin, bootstrap, bootstrapWorker, runMigrations, } from "@vendure/core";
|
|
6
|
+
export async function bootstrapLocalServer(handle, options = {}) {
|
|
7
|
+
return bootstrap(composeLocalConfig(handle, options));
|
|
8
|
+
}
|
|
9
|
+
export async function bootstrapLocalWorker(handle, options = {}) {
|
|
10
|
+
return bootstrapWorker(composeLocalConfig(handle, options));
|
|
11
|
+
}
|
|
12
|
+
export async function runLocalMigrations(handle, options = {}) {
|
|
13
|
+
await runMigrations(composeLocalConfig(handle, options));
|
|
14
|
+
}
|
|
15
|
+
export function composeLocalConfig(handle, options = {}) {
|
|
16
|
+
assertLocalDatabaseDriverAvailable();
|
|
17
|
+
const databasePath = resolve(options.databasePath ?? ".vendure-cloud/local.sqlite");
|
|
18
|
+
mkdirSync(dirname(databasePath), { recursive: true });
|
|
19
|
+
const cloudPlugins = [
|
|
20
|
+
DefaultCachePlugin.init({}),
|
|
21
|
+
DefaultJobQueuePlugin.init({}),
|
|
22
|
+
DefaultSchedulerPlugin.init(),
|
|
23
|
+
];
|
|
24
|
+
const values = {
|
|
25
|
+
...platformDefaultFieldValues(new DefaultSessionCacheStrategy()),
|
|
26
|
+
dbConnectionOptions: {
|
|
27
|
+
type: "sqljs",
|
|
28
|
+
location: databasePath,
|
|
29
|
+
autoSave: true,
|
|
30
|
+
synchronize: true,
|
|
31
|
+
},
|
|
32
|
+
logger: new DefaultLogger(),
|
|
33
|
+
"apiOptions.port": options.port ?? Number(process.env.PORT ?? 3000),
|
|
34
|
+
"apiOptions.hostname": "127.0.0.1",
|
|
35
|
+
"authOptions.superadminCredentials": {
|
|
36
|
+
identifier: options.superadminIdentifier ?? process.env.SUPERADMIN_IDENTIFIER ?? "superadmin",
|
|
37
|
+
password: options.superadminPassword ?? process.env.SUPERADMIN_PASSWORD ?? "superadmin",
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
(options.announce ?? console.warn)(`Vendure Cloud local substitutes are active: SQLite at ${databasePath}; no cloud infrastructure is in use.`);
|
|
41
|
+
return composeCloudConfig(handle, {
|
|
42
|
+
values,
|
|
43
|
+
cloudPlugins,
|
|
44
|
+
guardPluginName: "LocalConfigurationGuardPlugin",
|
|
45
|
+
vendurePlugin: VendurePlugin,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function assertLocalDatabaseDriverAvailable() {
|
|
49
|
+
try {
|
|
50
|
+
createRequire(import.meta.url).resolve("sql.js");
|
|
51
|
+
}
|
|
52
|
+
catch (cause) {
|
|
53
|
+
throw new Error("Vendure Cloud: local development requires sql.js. Install it as a development dependency; deployed images do not use it.", { cause });
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=local-runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-runtime.js","sourceRoot":"","sources":["../src/local-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAIL,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,aAAa,EACb,sBAAsB,EACtB,2BAA2B,EAE3B,aAAa,EACb,SAAS,EACT,eAAe,EACf,aAAa,GACd,MAAM,eAAe,CAA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I,CAAC;QACnE,qBAAqB,EAAE,WAAW;QAClC,mCAAmC,EAAE;YACnC,UAAU,EAAE,OAAO,CAAC,oBAAoB,IAAI,OAAO,CAAC,GAAG,CAAC,qBAAqB,IAAI,YAAY;YAC7F,QAAQ,EAAE,OAAO,CAAC,kBAAkB,IAAI,OAAO,CAAC,GAAG,CAAC,mBAAmB,IAAI,YAAY;SACxF;KACF,CAAC;IACF,CAAC,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAChC,yDAAyD,YAAY,sCAAsC,CAC5G,CAAC;IAEF,OAAO,kBAAkB,CAAC,MAAM,EAAE;QAChC,MAAM;QACN,YAAY;QACZ,eAAe,EAAE,+BAA+B;QAChD,aAAa,EAAE,aAAa;KAC7B,CAAC,CAAC;AACL,CAAC;AAED,SAAS,kCAAkC;IACzC,IAAI,CAAC;QACH,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACnD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CACb,0HAA0H,EAC1H,EAAE,KAAK,EAAE,CACV,CAAC;IACJ,CAAC;AACH,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vendure/cloud",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "The package a Vendure Cloud application installs. Re-exports the Cloud Config interface and the platform-supplied plugins.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"homepage": "https://github.com/vendurehq/cloud/tree/main/packages/cloud#readme",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/vendurehq/cloud.git",
|
|
11
|
+
"directory": "packages/cloud"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/vendurehq/cloud/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"vendure",
|
|
18
|
+
"vendure-cloud",
|
|
19
|
+
"ecommerce",
|
|
20
|
+
"configuration"
|
|
21
|
+
],
|
|
22
|
+
"engines": {
|
|
23
|
+
"node": ">=20.19.0 <21 || >=22.12.0"
|
|
24
|
+
},
|
|
25
|
+
"main": "dist/index.js",
|
|
26
|
+
"types": "dist/index.d.ts",
|
|
27
|
+
"bin": {
|
|
28
|
+
"vendure-cloud": "dist/entrypoint.js"
|
|
29
|
+
},
|
|
30
|
+
"exports": {
|
|
31
|
+
".": {
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"import": "./dist/index.js",
|
|
34
|
+
"require": "./dist/index.js"
|
|
35
|
+
},
|
|
36
|
+
"./local": {
|
|
37
|
+
"types": "./dist/local-runtime.d.ts",
|
|
38
|
+
"import": "./dist/local-runtime.js",
|
|
39
|
+
"require": "./dist/local-runtime.js"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"files": [
|
|
43
|
+
"dist",
|
|
44
|
+
"README.md"
|
|
45
|
+
],
|
|
46
|
+
"publishConfig": {
|
|
47
|
+
"access": "public"
|
|
48
|
+
},
|
|
49
|
+
"scripts": {
|
|
50
|
+
"build": "tsc",
|
|
51
|
+
"typecheck": "tsc --noEmit -p tsconfig.test.json",
|
|
52
|
+
"lint": "biome lint ./src ./test",
|
|
53
|
+
"format": "biome format --write ./src ./test",
|
|
54
|
+
"check": "biome check ./src ./test",
|
|
55
|
+
"test": "vitest run",
|
|
56
|
+
"test:verdaccio-smoke": "bash test/verdaccio-smoke/run.sh",
|
|
57
|
+
"test:all": "vitest run"
|
|
58
|
+
},
|
|
59
|
+
"dependencies": {
|
|
60
|
+
"@vendure/cloud-config": "0.0.0"
|
|
61
|
+
},
|
|
62
|
+
"peerDependencies": {
|
|
63
|
+
"@vendure/core": "^3.7.0",
|
|
64
|
+
"sql.js": "^1.13.0"
|
|
65
|
+
},
|
|
66
|
+
"peerDependenciesMeta": {
|
|
67
|
+
"sql.js": {
|
|
68
|
+
"optional": true
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"devDependencies": {
|
|
72
|
+
"@types/node": "^22.20.0",
|
|
73
|
+
"@vendure-cloud/tsconfig": "workspace:*",
|
|
74
|
+
"@vendure/core": "3.7.2",
|
|
75
|
+
"sql.js": "1.13.0",
|
|
76
|
+
"typescript": "catalog:",
|
|
77
|
+
"vitest": "^3.2.6"
|
|
78
|
+
}
|
|
79
|
+
}
|