Skip to content

Commit

Permalink
fix(ts): npm set script is deprecated
Browse files Browse the repository at this point in the history
use npm pkg set
  • Loading branch information
vobu committed Oct 14, 2022
1 parent e847007 commit f8863f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ async function initTS() {
)

console.log(gray("≡> adding wdi5 start command to package.json..."))
execSync(`npm set-script wdi5 "wdio run wdio.conf.ts"`, { stdio: "inherit" })
execSync(`npm pkg set scripts.wdi5="wdio run wdio.conf.js"`, { stdio: "inherit" })
console.log(greenBright("👍 done!"))
}

0 comments on commit f8863f9

Please sign in to comment.