@wix/create-new 0.0.51 → 0.0.52
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/index.js +17 -13
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -95931,6 +95931,14 @@ function validateDirectoryExists(path4) {
|
|
|
95931
95931
|
}
|
|
95932
95932
|
|
|
95933
95933
|
// ../create-new-packages/headless-command/src/index.tsx
|
|
95934
|
+
function assertInteractiveTerminalIfNeeded(hasRequiredFlagsForNonInteractive) {
|
|
95935
|
+
if (!process22.stdin.isTTY && !hasRequiredFlagsForNonInteractive) {
|
|
95936
|
+
throw new CliError({
|
|
95937
|
+
code: CliErrorCode.NonInteractiveTerminal(),
|
|
95938
|
+
cause: null
|
|
95939
|
+
});
|
|
95940
|
+
}
|
|
95941
|
+
}
|
|
95934
95942
|
var getHeadlessCommand = ({
|
|
95935
95943
|
errorReporter: errorReporter2,
|
|
95936
95944
|
userInfo: userInfo2,
|
|
@@ -95956,12 +95964,9 @@ var getHeadlessCommand = ({
|
|
|
95956
95964
|
Arguments: command.args,
|
|
95957
95965
|
Options: command.opts()
|
|
95958
95966
|
});
|
|
95959
|
-
|
|
95960
|
-
|
|
95961
|
-
|
|
95962
|
-
cause: null
|
|
95963
|
-
});
|
|
95964
|
-
}
|
|
95967
|
+
assertInteractiveTerminalIfNeeded(
|
|
95968
|
+
Boolean(options.businessName && options.projectName)
|
|
95969
|
+
);
|
|
95965
95970
|
const { biLogger, reportCommandStartEvent: reportCommandStartEvent2 } = await createBiLogger3({
|
|
95966
95971
|
errorReporter: errorReporter2,
|
|
95967
95972
|
cliVersion,
|
|
@@ -96049,12 +96054,11 @@ var getHeadlessCommand = ({
|
|
|
96049
96054
|
Arguments: command.args,
|
|
96050
96055
|
Options: command.opts()
|
|
96051
96056
|
});
|
|
96052
|
-
|
|
96053
|
-
|
|
96054
|
-
|
|
96055
|
-
|
|
96056
|
-
|
|
96057
|
-
}
|
|
96057
|
+
assertInteractiveTerminalIfNeeded(
|
|
96058
|
+
Boolean(
|
|
96059
|
+
options.siteTemplate && options.businessName && options.projectName
|
|
96060
|
+
)
|
|
96061
|
+
);
|
|
96058
96062
|
const { biLogger, reportCommandStartEvent: reportCommandStartEvent2 } = await createBiLogger3({
|
|
96059
96063
|
errorReporter: errorReporter2,
|
|
96060
96064
|
cliVersion,
|
|
@@ -96093,7 +96097,7 @@ import { randomUUID as randomUUID3 } from "node:crypto";
|
|
|
96093
96097
|
var package_default = {
|
|
96094
96098
|
name: "@wix/create-new",
|
|
96095
96099
|
description: "General entry point for creating Wix projects",
|
|
96096
|
-
version: "0.0.
|
|
96100
|
+
version: "0.0.52",
|
|
96097
96101
|
bin: "bin/index.cjs",
|
|
96098
96102
|
devDependencies: {
|
|
96099
96103
|
"@commander-js/extra-typings": "^13.0.0",
|