instant-cli
Advanced tools
Comparing version 0.14.12 to 0.14.13
20
index.js
@@ -279,2 +279,22 @@ // @ts-check | ||
const hasEnvFile = await pathExists(join(pkgDir, ".env")); | ||
if (!hasEnvFile) { | ||
const ok = await promptOk( | ||
"No .env file detected, would you like to create one so you can push updates to schema and perms?", | ||
); | ||
if (ok) { | ||
await writeFile( | ||
join(pkgDir, ".env"), | ||
`INSTANT_APP_ID=${appId}`, | ||
"utf-8", | ||
); | ||
console.log( | ||
`Created .env file with INSTANT_APP_ID=${appId} in ${pkgDir}`, | ||
); | ||
} else { | ||
console.log("No .env file created. If you plan to push updates, please create one."); | ||
} | ||
} | ||
if ( | ||
@@ -281,0 +301,0 @@ !countEntities(pullRes.data.schema.refs) && |
{ | ||
"name": "instant-cli", | ||
"type": "module", | ||
"version": "v0.14.12", | ||
"version": "v0.14.13", | ||
"description": "Instant's CLI", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -32,3 +32,3 @@ <p align="center"> | ||
Start by peaking at the [instant-cli docs](https://www.instantdb.com/docs/cli). | ||
Start by peeking at the [instant-cli docs](https://www.instantdb.com/docs/cli). | ||
@@ -35,0 +35,0 @@ # Questions? |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
25296
831