create-zephyr-apps 0.0.4 → 0.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.
package/dist/index.cjs CHANGED
@@ -207,38 +207,35 @@ async function main() {
207
207
  }
208
208
  }
209
209
  });
210
- if ('react-native' === project.type) {
211
- s.start(external_chalk_default().cyan("Cloning repository https://github.com/ZephyrCloudIO/zephyr-repack-example.git"));
212
- (0, external_node_child_process_namespaceObject.exec)(command_react_native, async (err, stdout, stderr)=>{
213
- if (err) {
214
- s.stop(external_chalk_default().bgRed(external_chalk_default().black(`Error cloning to ${project_path}...`)));
215
- console.error(err);
210
+ if ('react-native' === project.type) (0, external_node_child_process_namespaceObject.exec)(command_react_native, async (err, stdout, stderr)=>{
211
+ if (err) {
212
+ s.stop(external_chalk_default().bgRed(external_chalk_default().black(`Error cloning to ${project_path}...`)));
213
+ console.error(err);
214
+ process.exit(2);
215
+ }
216
+ if (!err) {
217
+ const outputPath = external_path_default().join(process.cwd(), project.path);
218
+ try {
219
+ await external_node_fs_namespaceObject.promises.cp(temp_dir, outputPath, {
220
+ recursive: true,
221
+ force: true
222
+ });
223
+ s.stop(external_chalk_default().green(`Project successfully created at ${external_chalk_default().underline(project_path)}`));
224
+ } catch (error) {
225
+ s.stop(external_chalk_default().bgRed(external_chalk_default().black(`Error clonin to ${project_path}`)));
226
+ console.error(error);
216
227
  process.exit(2);
228
+ } finally{
229
+ await external_node_fs_namespaceObject.promises.rm(temp_dir, {
230
+ recursive: true,
231
+ force: true
232
+ });
233
+ end_note({
234
+ project
235
+ });
217
236
  }
218
- if (!err) {
219
- const outputPath = external_path_default().join(process.cwd(), project.path);
220
- try {
221
- await external_node_fs_namespaceObject.promises.cp(temp_dir, outputPath, {
222
- recursive: true,
223
- force: true
224
- });
225
- s.stop(external_chalk_default().green(`Project successfully created at ${external_chalk_default().underline(project_path)}`));
226
- } catch (error) {
227
- s.stop(external_chalk_default().bgRed(external_chalk_default().black(`Error clonin to ${project_path}`)));
228
- console.error(error);
229
- process.exit(2);
230
- } finally{
231
- await external_node_fs_namespaceObject.promises.rm(temp_dir, {
232
- recursive: true,
233
- force: true
234
- });
235
- end_note({
236
- project
237
- });
238
- }
239
- }
240
- });
241
- }
237
+ }
238
+ });
242
239
  }
243
240
  main().catch(console.error);
244
241
  var __webpack_export_target__ = exports;
package/dist/index.mjs CHANGED
@@ -176,37 +176,34 @@ async function main() {
176
176
  }
177
177
  }
178
178
  });
179
- if ('react-native' === project.type) {
180
- s.start(__WEBPACK_EXTERNAL_MODULE_chalk__["default"].cyan("Cloning repository https://github.com/ZephyrCloudIO/zephyr-repack-example.git"));
181
- (0, __WEBPACK_EXTERNAL_MODULE_node_child_process_27f17141__.exec)(command_react_native, async (err, stdout, stderr)=>{
182
- if (err) {
183
- s.stop(__WEBPACK_EXTERNAL_MODULE_chalk__["default"].bgRed(__WEBPACK_EXTERNAL_MODULE_chalk__["default"].black(`Error cloning to ${project_path}...`)));
184
- console.error(err);
179
+ if ('react-native' === project.type) (0, __WEBPACK_EXTERNAL_MODULE_node_child_process_27f17141__.exec)(command_react_native, async (err, stdout, stderr)=>{
180
+ if (err) {
181
+ s.stop(__WEBPACK_EXTERNAL_MODULE_chalk__["default"].bgRed(__WEBPACK_EXTERNAL_MODULE_chalk__["default"].black(`Error cloning to ${project_path}...`)));
182
+ console.error(err);
183
+ process.exit(2);
184
+ }
185
+ if (!err) {
186
+ const outputPath = __WEBPACK_EXTERNAL_MODULE_path__["default"].join(process.cwd(), project.path);
187
+ try {
188
+ await __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__.promises.cp(temp_dir, outputPath, {
189
+ recursive: true,
190
+ force: true
191
+ });
192
+ s.stop(__WEBPACK_EXTERNAL_MODULE_chalk__["default"].green(`Project successfully created at ${__WEBPACK_EXTERNAL_MODULE_chalk__["default"].underline(project_path)}`));
193
+ } catch (error) {
194
+ s.stop(__WEBPACK_EXTERNAL_MODULE_chalk__["default"].bgRed(__WEBPACK_EXTERNAL_MODULE_chalk__["default"].black(`Error clonin to ${project_path}`)));
195
+ console.error(error);
185
196
  process.exit(2);
197
+ } finally{
198
+ await __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__.promises.rm(temp_dir, {
199
+ recursive: true,
200
+ force: true
201
+ });
202
+ end_note({
203
+ project
204
+ });
186
205
  }
187
- if (!err) {
188
- const outputPath = __WEBPACK_EXTERNAL_MODULE_path__["default"].join(process.cwd(), project.path);
189
- try {
190
- await __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__.promises.cp(temp_dir, outputPath, {
191
- recursive: true,
192
- force: true
193
- });
194
- s.stop(__WEBPACK_EXTERNAL_MODULE_chalk__["default"].green(`Project successfully created at ${__WEBPACK_EXTERNAL_MODULE_chalk__["default"].underline(project_path)}`));
195
- } catch (error) {
196
- s.stop(__WEBPACK_EXTERNAL_MODULE_chalk__["default"].bgRed(__WEBPACK_EXTERNAL_MODULE_chalk__["default"].black(`Error clonin to ${project_path}`)));
197
- console.error(error);
198
- process.exit(2);
199
- } finally{
200
- await __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__.promises.rm(temp_dir, {
201
- recursive: true,
202
- force: true
203
- });
204
- end_note({
205
- project
206
- });
207
- }
208
- }
209
- });
210
- }
206
+ }
207
+ });
211
208
  }
212
209
  main().catch(console.error);
package/package/index.ts CHANGED
@@ -153,7 +153,6 @@ async function main() {
153
153
 
154
154
  if (project.type === 'react-native') {
155
155
 
156
- s.start(c.cyan(`Cloning repository https://github.com/ZephyrCloudIO/zephyr-repack-example.git`))
157
156
 
158
157
  exec(command_react_native, async (err, stdout, stderr) => {
159
158
  if (err) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-zephyr-apps",
3
3
  "module": "./src/index.ts",
4
- "version": "0.0.4",
4
+ "version": "0.0.5",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "rslib build",