Skip to content

Commit

Permalink
Add warning to pwa-kit-create-app that v2 is outdated. (#1497)
Browse files Browse the repository at this point in the history
* Add warning that v2 is outdated.

* lint fixes
  • Loading branch information
wjhsf authored Oct 24, 2023
1 parent 001f209 commit 5d7b1b4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/pwa-kit-create-app/scripts/create-mobify-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,16 @@ const checkOutputDir = (path) => {
}
}

const main = (opts) => {
const main = async (opts) => {
console.log('')
console.warn(
'Warning: pwa-kit-create-app has moved to \x1b[1m@salesforce/pwa-kit-create-app\x1b[0m.'
)
console.warn('Please use the new package to use the latest PWA Kit features.')
console.log('')
// Wait 1 second before continuing to draw attention to the warning
await new Promise((resolve) => setTimeout(resolve, 1000))

if (!isUsingCompatibleNode) {
console.log('')
console.warn(
Expand Down

0 comments on commit 5d7b1b4

Please sign in to comment.