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.
Files changed (2) hide show
  1. package/dist/index.js +36 -28
  2. 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
- if (options.oauthProviders.length > 0) {
2125
- const oauthUISpinner = ora("Configuring OAuth UI...").start();
2126
- try {
2127
- await this.updateOAuthUIConfig(options.oauthProviders);
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
- } catch (error) {
2130
- oauthUISpinner.fail("Failed to configure OAuth UI");
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
- if (options.oauthProviders.length > 0) {
2135
- const envSpinner = ora("Updating .env.example...").start();
2136
- try {
2137
- await this.updateEnvExample(options.oauthProviders);
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
- } catch (error) {
2140
- envSpinner.fail("Failed to update .env.example");
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
- if (options.oauthProviders.length > 0) {
2145
- const envTsSpinner = ora("Updating typed env configuration...").start();
2146
- try {
2147
- await this.updateEnvTs(options.oauthProviders);
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
- } catch (error) {
2150
- envTsSpinner.fail("Failed to update typed env configuration");
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
- if (options.oauthProviders.length > 0) {
2155
- const readmeSpinner = ora("Updating README...").start();
2156
- try {
2157
- await this.updateReadme(options.oauthProviders);
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
- } catch (error) {
2160
- readmeSpinner.fail("Failed to update README");
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-z3",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "type": "module",
5
5
  "description": "CLI for scaffolding Z3 Stack applications (TanStack/Next.js + Convex + Better Auth)",
6
6
  "bin": {