@webiny/cli-standalone 6.6.0-alpha.4 → 6.6.0-alpha.6
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/bin.js +8 -4
- package/bin.js.map +1 -1
- package/package.json +6 -5
package/bin.js
CHANGED
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
import "tsx/esm";
|
|
3
3
|
import "@webiny/cli-core/utils/suppressPunycodeWarnings.js";
|
|
4
4
|
import { Cli } from "@webiny/cli-core";
|
|
5
|
-
import { ensureSameWebinyPackageVersions } from "@webiny/cli-core/utils/ensureSameWebinyPackageVersions.js";
|
|
5
|
+
import { ensureSameWebinyPackageVersions } from "@webiny/cli-core/utils/ensureSameWebinyPackageVersions/index.js";
|
|
6
6
|
import { registerStandaloneFeatures } from "./registerStandaloneFeatures.js";
|
|
7
|
+
import { ensureSystemRequirements } from "@webiny/system-requirements";
|
|
8
|
+
import { startTrace, trace, traceAsync } from "@webiny/project/utils/trace/index.js";
|
|
9
|
+
startTrace("Webiny CLI (standalone)");
|
|
7
10
|
process.env.WEBINY_HOSTING_TYPE = "standalone";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
await
|
|
11
|
+
trace("check system requirements", ()=>ensureSystemRequirements());
|
|
12
|
+
trace("check @webiny package versions", ()=>ensureSameWebinyPackageVersions());
|
|
13
|
+
const cli = await traceAsync("initialize CLI", ()=>Cli.init({}, registerStandaloneFeatures));
|
|
14
|
+
await traceAsync("run command", ()=>cli.run());
|
|
11
15
|
|
|
12
16
|
//# sourceMappingURL=bin.js.map
|
package/bin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bin.js","sources":["../src/bin.ts"],"sourcesContent":["#!/usr/bin/env node\nimport \"tsx/esm\";\n\n// Suppress punycode warnings. This is a known issue we can't fix.\nimport \"@webiny/cli-core/utils/suppressPunycodeWarnings.js\";\n\nimport { Cli } from \"@webiny/cli-core\";\nimport { ensureSameWebinyPackageVersions } from \"@webiny/cli-core/utils/ensureSameWebinyPackageVersions.js\";\nimport { registerStandaloneFeatures } from \"./registerStandaloneFeatures.js\";\n\n// Hosting-type marker — lets webiny.config.tsx branch on which CLI is running (e.g. SelfHostedAuth +\n// Admin.ApiUrl for server, Cognito for AWS). Read at build/watch time when the config is evaluated.\nprocess.env.WEBINY_HOSTING_TYPE = \"standalone\";\n\n// Ensure all @webiny/* packages use the same version.\
|
|
1
|
+
{"version":3,"file":"bin.js","sources":["../src/bin.ts"],"sourcesContent":["#!/usr/bin/env node\nimport \"tsx/esm\";\n\n// Suppress punycode warnings. This is a known issue we can't fix.\nimport \"@webiny/cli-core/utils/suppressPunycodeWarnings.js\";\n\nimport { Cli } from \"@webiny/cli-core\";\nimport { ensureSameWebinyPackageVersions } from \"@webiny/cli-core/utils/ensureSameWebinyPackageVersions/index.js\";\nimport { registerStandaloneFeatures } from \"./registerStandaloneFeatures.js\";\nimport { ensureSystemRequirements } from \"@webiny/system-requirements\";\nimport { startTrace } from \"@webiny/project/utils/trace/index.js\";\nimport { trace } from \"@webiny/project/utils/trace/index.js\";\nimport { traceAsync } from \"@webiny/project/utils/trace/index.js\";\n\n// Time the run when `--trace` or `WEBINY_CLI_TRACE=1` is used. Must be the first statement, so that\n// the time spent loading the imports above is attributed.\nstartTrace(\"Webiny CLI (standalone)\");\n\n// Hosting-type marker — lets webiny.config.tsx branch on which CLI is running (e.g. SelfHostedAuth +\n// Admin.ApiUrl for server, Cognito for AWS). Read at build/watch time when the config is evaluated.\nprocess.env.WEBINY_HOSTING_TYPE = \"standalone\";\n\n// Ensure system requirements are met.\ntrace(\"check system requirements\", () => ensureSystemRequirements());\n\n// Ensure all @webiny/* packages use the same version.\ntrace(\"check @webiny package versions\", () => ensureSameWebinyPackageVersions());\n\nconst cli = await traceAsync(\"initialize CLI\", () => Cli.init({}, registerStandaloneFeatures));\n\nawait traceAsync(\"run command\", () => cli.run());\n"],"names":["startTrace","process","trace","ensureSystemRequirements","ensureSameWebinyPackageVersions","cli","traceAsync","Cli","registerStandaloneFeatures"],"mappings":";;;;;;;;AAgBAA,WAAW;AAIXC,QAAQ,GAAG,CAAC,mBAAmB,GAAG;AAGlCC,MAAM,6BAA6B,IAAMC;AAGzCD,MAAM,kCAAkC,IAAME;AAE9C,MAAMC,MAAM,MAAMC,WAAW,kBAAkB,IAAMC,IAAI,IAAI,CAAC,CAAC,GAAGC;AAElE,MAAMF,WAAW,eAAe,IAAMD,IAAI,GAAG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/cli-standalone",
|
|
3
|
-
"version": "6.6.0-alpha.
|
|
3
|
+
"version": "6.6.0-alpha.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.js",
|
|
@@ -16,15 +16,16 @@
|
|
|
16
16
|
"webiny": "./bin.js"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@webiny/cli-core": "6.6.0-alpha.
|
|
19
|
+
"@webiny/cli-core": "6.6.0-alpha.6",
|
|
20
20
|
"@webiny/di": "1.1.0",
|
|
21
|
-
"@webiny/project": "6.6.0-alpha.
|
|
22
|
-
"@webiny/project-standalone": "6.6.0-alpha.
|
|
21
|
+
"@webiny/project": "6.6.0-alpha.6",
|
|
22
|
+
"@webiny/project-standalone": "6.6.0-alpha.6",
|
|
23
|
+
"@webiny/system-requirements": "6.6.0-alpha.6",
|
|
23
24
|
"chalk": "6.0.0",
|
|
24
25
|
"tsx": "4.23.12"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
27
|
-
"@webiny/build-tools": "6.6.0-alpha.
|
|
28
|
+
"@webiny/build-tools": "6.6.0-alpha.6",
|
|
28
29
|
"typescript": "7.0.2",
|
|
29
30
|
"vitest": "4.1.11"
|
|
30
31
|
},
|