File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import * as y from "yoctocolors"
4
4
import clipboard from "clipboardy"
5
- import { requireFramework } from "../lib/detect.js"
5
+ import { detectFramework } from "../lib/detect.js"
6
6
import { updateEnvFile } from "../lib/write-env.js"
7
7
8
8
/** Web compatible method to create a random string of a given length */
@@ -47,7 +47,10 @@ export async function action(options) {
47
47
}
48
48
49
49
try {
50
- await requireFramework ( options . path )
50
+ const framework = await detectFramework ( options . path )
51
+ if ( framework === "unknown" ) {
52
+ return console . log ( value )
53
+ }
51
54
await updateEnvFile ( { [ key ] : value } , options . path )
52
55
} catch ( error ) {
53
56
console . error ( y . red ( error ) )
Original file line number Diff line number Diff line change 2
2
3
3
// @ts -check
4
4
5
- import { Command , InvalidArgumentError } from "commander"
5
+ import { Command } from "commander"
6
6
import * as y from "yoctocolors"
7
7
import { ask , init , secret , add } from "./commands/index.js"
8
8
@@ -55,7 +55,7 @@ program
55
55
program
56
56
. command ( "add" )
57
57
. argument ( "[provider]" , "The authentication provider." )
58
- . description ( ' Register a new authentication provider' )
58
+ . description ( " Register a new authentication provider" )
59
59
. action ( add . action )
60
60
61
61
program . parse ( )
You can’t perform that action at this time.
0 commit comments