@@ -15,12 +15,6 @@ export default async (
15
15
projectPath : string
16
16
) => {
17
17
18
- const isSupabaseRoot = confirmSupabaseRoot ( projectPath ) ;
19
- if ( ! isSupabaseRoot ) {
20
- logError ( "This command must be pointed at the root of a Basejump project." ) ;
21
- process . exit ( 1 ) ;
22
- }
23
-
24
18
// ask user for project defaults using prompts library
25
19
const { teamAccounts, teamAccountBilling, personalAccountBilling, starterApp, enableTesting } = await prompts ( [
26
20
{
@@ -32,19 +26,19 @@ export default async (
32
26
{
33
27
type : "confirm" ,
34
28
name : "teamAccountBilling" ,
35
- message : "Would you like to enable subscription billing for TEAM accounts? You can change this at any time" ,
29
+ message : "Enable billing for TEAM accounts? You can change this at any time" ,
36
30
initial : true
37
31
} ,
38
32
{
39
33
type : "confirm" ,
40
34
name : "personalAccountBilling" ,
41
- message : "Would you like to enable subscription billing for PERSONAL accounts? You can change this at any time" ,
35
+ message : "Enable billing for PERSONAL accounts? You can change this at any time" ,
42
36
initial : false
43
37
} ,
44
38
{
45
39
type : "confirm" ,
46
40
name : "enableTesting" ,
47
- message : "Do you want to enable testing for your project by installing supabase_test_helpers ?" ,
41
+ message : "Enable pgTap and supabase_test_helpers for testing ?" ,
48
42
initial : true
49
43
} ,
50
44
{
@@ -75,8 +69,6 @@ export default async (
75
69
process . exit ( 1 )
76
70
}
77
71
78
- console . log ( basejumpRepoInfo ) ;
79
-
80
72
const found = await hasRepo ( basejumpRepoInfo )
81
73
82
74
if ( ! found ) {
@@ -90,6 +82,12 @@ export default async (
90
82
91
83
await downloadAndExtractRepo ( root , basejumpRepoInfo ) ;
92
84
85
+ const isSupabaseRoot = confirmSupabaseRoot ( projectPath ) ;
86
+ if ( ! isSupabaseRoot ) {
87
+ logError ( "This command must be pointed at the root of a Basejump project." ) ;
88
+ process . exit ( 1 ) ;
89
+ }
90
+
93
91
94
92
/**
95
93
* Generate the supabase migration files
@@ -132,7 +130,7 @@ export default async (
132
130
dynamicReplacers : [
133
131
{
134
132
slot : '{{timestamp}}' ,
135
- slotValue : generateTimestamp ( ) ,
133
+ slotValue : generateTimestamp ( 1 ) ,
136
134
} ,
137
135
] ,
138
136
entry : {
0 commit comments