create-vidra-app 0.1.0 → 0.1.2

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/cli.js CHANGED
@@ -723,7 +723,7 @@ var formatExecError2 = (error) => {
723
723
  };
724
724
 
725
725
  // src/cli.ts
726
- var VERSION3 = "0.1.0";
726
+ var VERSION3 = "0.1.2";
727
727
  var printHelp = () => {
728
728
  console.log(`
729
729
  ${chalk5.bold("vidra")} ${chalk5.dim(`v${VERSION3}`)}
package/dist/index.js CHANGED
@@ -177,7 +177,7 @@ var main = async () => {
177
177
  console.log();
178
178
  const isMonorepo = fs2.existsSync(path2.join(LOCAL_SDK_DIR, "package.json"));
179
179
  const localFeedExists = isMonorepo && fs2.existsSync(LOCAL_FEED_DIR);
180
- const localFeedPath = localFeedExists ? toTextPath(LOCAL_FEED_DIR) : "";
180
+ const localFeedSource = localFeedExists ? ` <add key="vidra-local" value="${toTextPath(LOCAL_FEED_DIR)}" />` : "";
181
181
  const cliRef = isMonorepo ? `file:${toTextPath(LOCAL_CLI_DIR)}` : `^${VIDRA_VERSION}`;
182
182
  const sdkRef = isMonorepo ? `file:${toTextPath(LOCAL_SDK_DIR)}` : `^${SDK_VERSION}`;
183
183
  const replacements = {
@@ -189,7 +189,7 @@ var main = async () => {
189
189
  "{{cliVersion}}": cliRef,
190
190
  "{{vidraVersion}}": VIDRA_VERSION,
191
191
  "{{sdkVersion}}": sdkRef,
192
- "{{localFeedPath}}": localFeedPath
192
+ "{{localFeedSource}}": localFeedSource
193
193
  };
194
194
  const templateDir = path2.join(TEMPLATES_DIR, "react-vite");
195
195
  await scaffoldDir(templateDir, root, replacements);
@@ -200,9 +200,11 @@ var main = async () => {
200
200
  `dotnet sln ${slnFile} add src/${projectName}.Host/${projectName}.Host.csproj`,
201
201
  root
202
202
  );
203
- const uiDir = path2.join(root, "ui");
204
203
  console.log(chalk2.dim(" Installing npm dependencies..."));
205
- const npmOk = tryExec("npm install", uiDir);
204
+ const uiDir = path2.join(root, "ui");
205
+ const rootNpmOk = tryExec("npm install", root);
206
+ const uiNpmOk = tryExec("npm install", uiDir);
207
+ const npmOk = rootNpmOk && uiNpmOk;
206
208
  console.log();
207
209
  console.log(chalk2.green(" Done! ") + "Your Vidra app is ready.\n");
208
210
  if (localFeedExists) {
@@ -225,7 +227,7 @@ var main = async () => {
225
227
  console.log();
226
228
  if (!npmOk) {
227
229
  console.log(
228
- chalk2.yellow(" Note: ") + "`npm install` had errors. Run " + chalk2.cyan("cd ui && npm install") + " to retry.\n"
230
+ chalk2.yellow(" Note: ") + "`npm install` had errors. Re-run " + chalk2.cyan("npm install") + " in the project root and in " + chalk2.cyan("ui/") + " to retry.\n"
229
231
  );
230
232
  }
231
233
  console.log(chalk2.bold(" Next steps:\n"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vidra-app",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Scaffold a new Vidra application (React + .NET MAUI)",
5
5
  "type": "module",
6
6
  "bin": {
@@ -3,6 +3,6 @@
3
3
  <packageSources>
4
4
  <clear />
5
5
  <add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
6
- <add key="vidra-local" value="{{localFeedPath}}" />
6
+ {{localFeedSource}}
7
7
  </packageSources>
8
8
  </configuration>