create-nxpress-app 1.0.4 → 1.0.5

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 +3 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10,6 +10,8 @@ const commander_1 = require("commander");
10
10
  const fs_extra_1 = __importDefault(require("fs-extra"));
11
11
  const path_1 = __importDefault(require("path"));
12
12
  const child_process_1 = require("child_process");
13
+ const util_1 = require("util");
14
+ const execAsync = (0, util_1.promisify)(child_process_1.exec);
13
15
  const program = new commander_1.Command();
14
16
  program
15
17
  .name("create-nxpress-app")
@@ -164,7 +166,6 @@ program
164
166
  <meta charset="UTF-8">
165
167
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
166
168
  <title>{{title}}</title>
167
- <link rel="stylesheet" href="/app.css">
168
169
  </head>
169
170
  <body class="bg-slate-900 text-white min-h-screen">
170
171
  {{{body}}}
@@ -177,7 +178,6 @@ program
177
178
  <meta charset="UTF-8">
178
179
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
179
180
  <title><%= title %></title>
180
- <link rel="stylesheet" href="/app.css">
181
181
  </head>
182
182
  <body class="bg-slate-900 text-white min-h-screen">
183
183
  <%- body %>
@@ -189,7 +189,6 @@ program
189
189
  <meta charset="UTF-8">
190
190
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
191
191
  <title>Nxpress App</title>
192
- <link rel="stylesheet" href="/app.css">
193
192
  </head>
194
193
  <body class="bg-slate-900 text-white min-h-screen">
195
194
  <!-- Content -->
@@ -305,7 +304,7 @@ dist
305
304
  const instSpinner = (0, prompts_1.spinner)();
306
305
  instSpinner.start("Installing dependencies with pnpm...");
307
306
  try {
308
- (0, child_process_1.execSync)("pnpm install", { cwd: targetPath, stdio: "ignore" });
307
+ await execAsync("pnpm install", { cwd: targetPath });
309
308
  instSpinner.stop("Dependencies installed successfully.");
310
309
  }
311
310
  catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nxpress-app",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "CLI tool to create Nxpress applications",
5
5
  "main": "dist/index.js",
6
6
  "bin": {