create-z3 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +36 -28
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2121,45 +2121,53 @@ Please check the URL and your internet connection, then try again.`
|
|
|
2121
2121
|
throw error;
|
|
2122
2122
|
}
|
|
2123
2123
|
}
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2124
|
+
const oauthUISpinner = ora("Configuring OAuth UI...").start();
|
|
2125
|
+
try {
|
|
2126
|
+
await this.updateOAuthUIConfig(options.oauthProviders);
|
|
2127
|
+
if (options.oauthProviders.length > 0) {
|
|
2128
2128
|
oauthUISpinner.succeed("OAuth UI configuration updated");
|
|
2129
|
-
}
|
|
2130
|
-
oauthUISpinner.
|
|
2131
|
-
throw error;
|
|
2129
|
+
} else {
|
|
2130
|
+
oauthUISpinner.succeed("OAuth UI placeholders cleaned up");
|
|
2132
2131
|
}
|
|
2132
|
+
} catch (error) {
|
|
2133
|
+
oauthUISpinner.fail("Failed to configure OAuth UI");
|
|
2134
|
+
throw error;
|
|
2133
2135
|
}
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2136
|
+
const envSpinner = ora("Updating .env.example...").start();
|
|
2137
|
+
try {
|
|
2138
|
+
await this.updateEnvExample(options.oauthProviders);
|
|
2139
|
+
if (options.oauthProviders.length > 0) {
|
|
2138
2140
|
envSpinner.succeed(".env.example updated");
|
|
2139
|
-
}
|
|
2140
|
-
envSpinner.
|
|
2141
|
-
throw error;
|
|
2141
|
+
} else {
|
|
2142
|
+
envSpinner.succeed(".env.example placeholders cleaned up");
|
|
2142
2143
|
}
|
|
2144
|
+
} catch (error) {
|
|
2145
|
+
envSpinner.fail("Failed to update .env.example");
|
|
2146
|
+
throw error;
|
|
2143
2147
|
}
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
+
const envTsSpinner = ora("Updating typed env configuration...").start();
|
|
2149
|
+
try {
|
|
2150
|
+
await this.updateEnvTs(options.oauthProviders);
|
|
2151
|
+
if (options.oauthProviders.length > 0) {
|
|
2148
2152
|
envTsSpinner.succeed("Typed env configuration updated");
|
|
2149
|
-
}
|
|
2150
|
-
envTsSpinner.
|
|
2151
|
-
throw error;
|
|
2153
|
+
} else {
|
|
2154
|
+
envTsSpinner.succeed("Typed env placeholders cleaned up");
|
|
2152
2155
|
}
|
|
2156
|
+
} catch (error) {
|
|
2157
|
+
envTsSpinner.fail("Failed to update typed env configuration");
|
|
2158
|
+
throw error;
|
|
2153
2159
|
}
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2160
|
+
const readmeSpinner = ora("Updating README...").start();
|
|
2161
|
+
try {
|
|
2162
|
+
await this.updateReadme(options.oauthProviders);
|
|
2163
|
+
if (options.oauthProviders.length > 0) {
|
|
2158
2164
|
readmeSpinner.succeed("README updated");
|
|
2159
|
-
}
|
|
2160
|
-
readmeSpinner.
|
|
2161
|
-
throw error;
|
|
2165
|
+
} else {
|
|
2166
|
+
readmeSpinner.succeed("README placeholders cleaned up");
|
|
2162
2167
|
}
|
|
2168
|
+
} catch (error) {
|
|
2169
|
+
readmeSpinner.fail("Failed to update README");
|
|
2170
|
+
throw error;
|
|
2163
2171
|
}
|
|
2164
2172
|
const themeSpinner = ora("Applying theme...").start();
|
|
2165
2173
|
try {
|