@wix/create-new 0.0.84 → 0.0.86
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/build/{chunk-SFOWMTOT.js → chunk-MIJSJMJJ.js} +19 -10
- package/build/{chunk-SFOWMTOT.js.map → chunk-MIJSJMJJ.js.map} +1 -1
- package/build/{generator-MC3RF2NR.js → generator-EOZ57MUW.js} +2 -2
- package/build/index.js +60 -13
- package/build/index.js.map +1 -1
- package/package.json +2 -2
- /package/build/{generator-MC3RF2NR.js.map → generator-EOZ57MUW.js.map} +0 -0
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
require_lib,
|
|
14
14
|
temporaryDirectory,
|
|
15
15
|
updateEnvFile
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MIJSJMJJ.js";
|
|
17
17
|
import {
|
|
18
18
|
__toESM,
|
|
19
19
|
init_esm_shims
|
|
@@ -115,4 +115,4 @@ async function generateApp({
|
|
|
115
115
|
export {
|
|
116
116
|
generateApp
|
|
117
117
|
};
|
|
118
|
-
//# sourceMappingURL=generator-
|
|
118
|
+
//# sourceMappingURL=generator-EOZ57MUW.js.map
|
package/build/index.js
CHANGED
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
writeJson,
|
|
119
119
|
writePackageJson,
|
|
120
120
|
zod_default
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-MIJSJMJJ.js";
|
|
122
122
|
import {
|
|
123
123
|
__commonJS,
|
|
124
124
|
__dirname,
|
|
@@ -66016,6 +66016,48 @@ ${errorMessage2}`
|
|
|
66016
66016
|
hint: reason
|
|
66017
66017
|
}
|
|
66018
66018
|
);
|
|
66019
|
+
},
|
|
66020
|
+
PluginUnknownHook: ({ hook, supportedHooks, pluginName }) => {
|
|
66021
|
+
return () => /* @__PURE__ */ import_react84.default.createElement(
|
|
66022
|
+
ErrorMessage,
|
|
66023
|
+
{
|
|
66024
|
+
cause,
|
|
66025
|
+
message: `Unknown Wix CLI hook "${hook}" in plugin "${pluginName}".`,
|
|
66026
|
+
hint: `Supported hooks: ${supportedHooks.map((supportedHook) => `"${supportedHook}"`).join(", ")}`
|
|
66027
|
+
}
|
|
66028
|
+
);
|
|
66029
|
+
},
|
|
66030
|
+
PluginInvalidHookHandler: ({ hook, pluginName }) => {
|
|
66031
|
+
return () => /* @__PURE__ */ import_react84.default.createElement(
|
|
66032
|
+
ErrorMessage,
|
|
66033
|
+
{
|
|
66034
|
+
cause,
|
|
66035
|
+
message: `Invalid handler for Wix CLI hook "${hook}" in plugin "${pluginName}".`,
|
|
66036
|
+
hint: "Hook handlers must be functions."
|
|
66037
|
+
}
|
|
66038
|
+
);
|
|
66039
|
+
},
|
|
66040
|
+
PluginDuplicateName: ({ name, firstIndex, duplicateIndex }) => {
|
|
66041
|
+
return () => /* @__PURE__ */ import_react84.default.createElement(
|
|
66042
|
+
ErrorMessage,
|
|
66043
|
+
{
|
|
66044
|
+
cause,
|
|
66045
|
+
message: `Duplicate plugin name "${name}".`,
|
|
66046
|
+
hint: `"plugins[${duplicateIndex}].name" conflicts with "plugins[${firstIndex}].name". Plugin names must be unique.`
|
|
66047
|
+
}
|
|
66048
|
+
);
|
|
66049
|
+
},
|
|
66050
|
+
PluginHandlerFailed: ({
|
|
66051
|
+
handlerName,
|
|
66052
|
+
pluginName
|
|
66053
|
+
}) => {
|
|
66054
|
+
return () => /* @__PURE__ */ import_react84.default.createElement(
|
|
66055
|
+
ErrorMessage,
|
|
66056
|
+
{
|
|
66057
|
+
cause,
|
|
66058
|
+
message: `Plugin "${pluginName}" failed while handling "${handlerName}".`
|
|
66059
|
+
}
|
|
66060
|
+
);
|
|
66019
66061
|
}
|
|
66020
66062
|
});
|
|
66021
66063
|
}
|
|
@@ -81218,13 +81260,14 @@ var BackendAsAServiceClient = class {
|
|
|
81218
81260
|
});
|
|
81219
81261
|
}
|
|
81220
81262
|
};
|
|
81221
|
-
createAppDeployment = async (appId, staticFilesMetadata, generateAppDeploymentGroupId) => {
|
|
81263
|
+
createAppDeployment = async (appId, files, staticFilesMetadata, generateAppDeploymentGroupId) => {
|
|
81222
81264
|
try {
|
|
81223
81265
|
const { data } = await pRetry(
|
|
81224
81266
|
() => this.httpClient.request(
|
|
81225
81267
|
createAppDeployment({
|
|
81226
81268
|
appDeployment: {
|
|
81227
81269
|
appProjectId: appId,
|
|
81270
|
+
files,
|
|
81228
81271
|
staticFilesMetadata,
|
|
81229
81272
|
appDeploymentGroupId: generateAppDeploymentGroupId ? randomUUID2() : void 0
|
|
81230
81273
|
}
|
|
@@ -81982,7 +82025,7 @@ function getTasks({
|
|
|
81982
82025
|
cause: e2
|
|
81983
82026
|
});
|
|
81984
82027
|
}
|
|
81985
|
-
const { generateApp } = await import("./generator-
|
|
82028
|
+
const { generateApp } = await import("./generator-EOZ57MUW.js");
|
|
81986
82029
|
await generateApp({
|
|
81987
82030
|
packageName,
|
|
81988
82031
|
packageFolder,
|
|
@@ -94018,11 +94061,12 @@ var createBiLogger3 = async ({
|
|
|
94018
94061
|
cliVersion,
|
|
94019
94062
|
cliSessionId: cliSessionId2,
|
|
94020
94063
|
userId,
|
|
94021
|
-
aiAgentName: aiAgentName2
|
|
94064
|
+
aiAgentName: aiAgentName2,
|
|
94065
|
+
command
|
|
94022
94066
|
}) => {
|
|
94023
94067
|
const biLogger = await createBiLogger({
|
|
94024
94068
|
aiAgentName: aiAgentName2,
|
|
94025
|
-
command
|
|
94069
|
+
command,
|
|
94026
94070
|
cliSessionId: cliSessionId2,
|
|
94027
94071
|
cliVersion,
|
|
94028
94072
|
userId
|
|
@@ -94036,11 +94080,11 @@ var createBiLogger3 = async ({
|
|
|
94036
94080
|
})
|
|
94037
94081
|
);
|
|
94038
94082
|
});
|
|
94039
|
-
function reportCommandStartEvent2(
|
|
94083
|
+
function reportCommandStartEvent2(commandToReport) {
|
|
94040
94084
|
const commandFields = {
|
|
94041
|
-
name: () =>
|
|
94042
|
-
args:
|
|
94043
|
-
opts: () =>
|
|
94085
|
+
name: () => command,
|
|
94086
|
+
args: commandToReport.args,
|
|
94087
|
+
opts: () => commandToReport.opts()
|
|
94044
94088
|
};
|
|
94045
94089
|
return reportCommandStartEvent({
|
|
94046
94090
|
biLogger,
|
|
@@ -94194,7 +94238,8 @@ var getHeadlessInitCommand = ({
|
|
|
94194
94238
|
cliVersion,
|
|
94195
94239
|
cliSessionId: cliSessionId2,
|
|
94196
94240
|
userId: userInfo2?.userId,
|
|
94197
|
-
aiAgentName: aiAgentName2
|
|
94241
|
+
aiAgentName: aiAgentName2,
|
|
94242
|
+
command: "init-headless-site"
|
|
94198
94243
|
});
|
|
94199
94244
|
const commandStatus = reportCommandStartEvent2(command);
|
|
94200
94245
|
const transaction = createCommandTransaction(panorama2, command);
|
|
@@ -94253,7 +94298,8 @@ var getHeadlessCommand = ({
|
|
|
94253
94298
|
cliVersion,
|
|
94254
94299
|
cliSessionId: cliSessionId2,
|
|
94255
94300
|
userId: userInfo2?.userId,
|
|
94256
|
-
aiAgentName: aiAgentName2
|
|
94301
|
+
aiAgentName: aiAgentName2,
|
|
94302
|
+
command: "link-headless-site"
|
|
94257
94303
|
});
|
|
94258
94304
|
const commandStatus = reportCommandStartEvent2(command);
|
|
94259
94305
|
const transaction = createCommandTransaction(panorama2, command);
|
|
@@ -94339,7 +94385,8 @@ var getHeadlessCommand = ({
|
|
|
94339
94385
|
cliVersion,
|
|
94340
94386
|
cliSessionId: cliSessionId2,
|
|
94341
94387
|
userId: userInfo2?.userId,
|
|
94342
|
-
aiAgentName: aiAgentName2
|
|
94388
|
+
aiAgentName: aiAgentName2,
|
|
94389
|
+
command: "create-headless-site"
|
|
94343
94390
|
});
|
|
94344
94391
|
const commandStatus = reportCommandStartEvent2(command);
|
|
94345
94392
|
const transaction = createCommandTransaction(panorama2, command);
|
|
@@ -94372,7 +94419,7 @@ import { randomUUID as randomUUID3 } from "node:crypto";
|
|
|
94372
94419
|
var package_default = {
|
|
94373
94420
|
name: "@wix/create-new",
|
|
94374
94421
|
description: "General entry point for creating Wix projects",
|
|
94375
|
-
version: "0.0.
|
|
94422
|
+
version: "0.0.86",
|
|
94376
94423
|
bin: "bin/index.cjs",
|
|
94377
94424
|
devDependencies: {
|
|
94378
94425
|
"@commander-js/extra-typings": "^13.0.0",
|