Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-wdio

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-wdio - npm Package Compare versions

Comparing version 7.0.0 to 7.0.1

16

build/index.js

@@ -79,10 +79,12 @@ "use strict";

await (0, utils_1.runProgram)('npx', ['wdio', 'config', ...(useYarn ? ['--yarn'] : []), ...(opts.yes ? ['--yes'] : [])]);
console.log('Adding scripts to package.json');
const isUsingTypescript = await (0, utils_1.exists)('wdio.conf.ts');
const pkgJson = require(pkgJsonPath);
if (!pkgJson.scripts) {
pkgJson.scripts = {};
if (await (0, utils_1.exists)(pkgJsonPath)) {
console.log('Adding scripts to package.json');
const pkgJson = require(pkgJsonPath);
const isUsingTypescript = await (0, utils_1.exists)('wdio.conf.ts');
if (!pkgJson.scripts) {
pkgJson.scripts = {};
}
pkgJson.scripts['wdio'] = `wdio run wdio.conf.${isUsingTypescript ? 'ts' : 'js'}`;
await fs_1.default.promises.writeFile(pkgJsonPath, JSON.stringify(pkgJson, null, 4));
}
pkgJson.scripts['wdio'] = `wdio run wdio.conf.${isUsingTypescript ? 'ts' : 'js'}`;
await fs_1.default.promises.writeFile(pkgJsonPath, JSON.stringify(pkgJson, null, 4));
console.log(`\n🤖 Successfully setup project at ${root} 🎉`);

@@ -89,0 +91,0 @@ if (root != ewd) {

{
"name": "create-wdio",
"version": "7.0.0",
"version": "7.0.1",
"description": "Install WebdriverIO with all its dependencies in a single run",

@@ -5,0 +5,0 @@ "author": "Christian Bromann <christian@saucelabs.com>",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc