create-wdio 9.18.2-alpha.1 → 9.18.2
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/config/cli.js +2 -2
- package/build/index.js +1 -1
- package/build/install/cli.js +2 -2
- package/build/utils/index.js +1 -1
- package/build/utils.d.ts.map +1 -1
- package/package.json +2 -2
package/build/config/cli.js
CHANGED
|
@@ -128,7 +128,7 @@ function getInstallCommand(pm, packages, dev) {
|
|
|
128
128
|
var NPM_COMMAND = /^win/.test(process.platform) ? "npm.cmd" : "npm";
|
|
129
129
|
var __dirname = path.dirname(url.fileURLToPath(import.meta.url));
|
|
130
130
|
process.on("SIGINT", () => printAndExit(void 0, "SIGINT"));
|
|
131
|
-
var TEMPLATE_ROOT_DIR = path.join(__dirname, "templates", "exampleFiles");
|
|
131
|
+
var TEMPLATE_ROOT_DIR = process.env.WDIO_UNIT_TESTS ? path.join(__dirname, "templates", "exampleFiles") : path.join(__dirname, "..", "templates", "exampleFiles");
|
|
132
132
|
function runProgram(command2, args, options) {
|
|
133
133
|
const child = spawn(command2, args, { stdio: "inherit", ...options });
|
|
134
134
|
return new Promise((resolve, rejects) => {
|
|
@@ -453,7 +453,7 @@ function addServiceDeps(names, packages, update = false) {
|
|
|
453
453
|
async function createWDIOConfig(parsedAnswers) {
|
|
454
454
|
try {
|
|
455
455
|
console.log("Creating a WebdriverIO config file...");
|
|
456
|
-
const tplPath = path.resolve(
|
|
456
|
+
const tplPath = path.resolve(__dirname, "..", "templates", "wdio.conf.tpl.ejs");
|
|
457
457
|
const renderedTpl = await renderFile(tplPath, {
|
|
458
458
|
answers: parsedAnswers,
|
|
459
459
|
_: new EjsHelpers({ useEsm: parsedAnswers.esmSupport, useTypeScript: parsedAnswers.isUsingTypeScript })
|
package/build/index.js
CHANGED
|
@@ -852,7 +852,7 @@ import { execa } from "execa";
|
|
|
852
852
|
var NPM_COMMAND = /^win/.test(process.platform) ? "npm.cmd" : "npm";
|
|
853
853
|
var __dirname = path2.dirname(url.fileURLToPath(import.meta.url));
|
|
854
854
|
process.on("SIGINT", () => printAndExit(void 0, "SIGINT"));
|
|
855
|
-
var TEMPLATE_ROOT_DIR = path2.join(__dirname, "templates", "exampleFiles");
|
|
855
|
+
var TEMPLATE_ROOT_DIR = process.env.WDIO_UNIT_TESTS ? path2.join(__dirname, "templates", "exampleFiles") : path2.join(__dirname, "..", "templates", "exampleFiles");
|
|
856
856
|
function runProgram(command, args, options) {
|
|
857
857
|
const child = spawn(command, args, { stdio: "inherit", ...options });
|
|
858
858
|
return new Promise((resolve2, rejects) => {
|
package/build/install/cli.js
CHANGED
|
@@ -926,7 +926,7 @@ function getInstallCommand(pm, packages, dev) {
|
|
|
926
926
|
var NPM_COMMAND = /^win/.test(process.platform) ? "npm.cmd" : "npm";
|
|
927
927
|
var __dirname = path2.dirname(url.fileURLToPath(import.meta.url));
|
|
928
928
|
process.on("SIGINT", () => printAndExit(void 0, "SIGINT"));
|
|
929
|
-
var TEMPLATE_ROOT_DIR = path2.join(__dirname, "templates", "exampleFiles");
|
|
929
|
+
var TEMPLATE_ROOT_DIR = process.env.WDIO_UNIT_TESTS ? path2.join(__dirname, "templates", "exampleFiles") : path2.join(__dirname, "..", "templates", "exampleFiles");
|
|
930
930
|
function runProgram(command2, args, options) {
|
|
931
931
|
const child = spawn(command2, args, { stdio: "inherit", ...options });
|
|
932
932
|
return new Promise((resolve, rejects) => {
|
|
@@ -1251,7 +1251,7 @@ function addServiceDeps(names, packages, update = false) {
|
|
|
1251
1251
|
async function createWDIOConfig(parsedAnswers) {
|
|
1252
1252
|
try {
|
|
1253
1253
|
console.log("Creating a WebdriverIO config file...");
|
|
1254
|
-
const tplPath = path2.resolve(
|
|
1254
|
+
const tplPath = path2.resolve(__dirname, "..", "templates", "wdio.conf.tpl.ejs");
|
|
1255
1255
|
const renderedTpl = await renderFile(tplPath, {
|
|
1256
1256
|
answers: parsedAnswers,
|
|
1257
1257
|
_: new EjsHelpers({ useEsm: parsedAnswers.esmSupport, useTypeScript: parsedAnswers.isUsingTypeScript })
|
package/build/utils/index.js
CHANGED
|
@@ -19,7 +19,7 @@ import { execa } from "execa";
|
|
|
19
19
|
var NPM_COMMAND = /^win/.test(process.platform) ? "npm.cmd" : "npm";
|
|
20
20
|
var __dirname = path.dirname(url.fileURLToPath(import.meta.url));
|
|
21
21
|
process.on("SIGINT", () => printAndExit(void 0, "SIGINT"));
|
|
22
|
-
var TEMPLATE_ROOT_DIR = path.join(__dirname, "templates", "exampleFiles");
|
|
22
|
+
var TEMPLATE_ROOT_DIR = process.env.WDIO_UNIT_TESTS ? path.join(__dirname, "templates", "exampleFiles") : path.join(__dirname, "..", "templates", "exampleFiles");
|
|
23
23
|
function printAndExit(error, signal) {
|
|
24
24
|
if (signal === "SIGINT") {
|
|
25
25
|
console.log("\n\nGoodbye \u{1F44B}");
|
package/build/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAKtD,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAKtD,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAkB7F,wBAAgB,UAAU,CAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,YAAY,iBAcjF;AAED,wBAAsB,iBAAiB,oBAStC;AAYD,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,IA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CAAC,OAAO,EAAE,YAAY,oBASzD;AAGD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,iBAAiB,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,YAelG;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,aAAa,iBAU7D;AA8DD,wBAAsB,8BAA8B,CAAC,OAAO,EAAE,aAAa,iBAiC1E;AAED;;;;GAIG;AACH,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,MAAM;;;GAMzD;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,2BASxD;AAoBD,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,sBAYvE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-wdio",
|
|
3
|
-
"version": "9.18.2
|
|
3
|
+
"version": "9.18.2",
|
|
4
4
|
"description": "Install and setup a WebdriverIO project with all its dependencies in a single run",
|
|
5
5
|
"author": "WebdriverIO Team <mail@webdriver.io>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/create-wdio",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"publishConfig": {
|
|
78
78
|
"access": "public"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "87f33dacfedde72c1dc972309f48d34cc1f9cd4e"
|
|
81
81
|
}
|