opticore-cli 1.0.0 → 1.0.1

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
@@ -75,10 +75,11 @@ var main = () => {
75
75
  process.exit(1);
76
76
  }
77
77
  console.log(`Project creation ${projectName}...`);
78
- const result = (0, import_child_process2.spawnSync)("npx", ["opticore-new-project", projectName], {
79
- stdio: "inherit",
80
- shell: true
81
- });
78
+ const result = (0, import_child_process2.spawnSync)(
79
+ "npx",
80
+ ["--yes", "--package=opticore-installer", "opticore-new-project", projectName],
81
+ { stdio: "inherit" }
82
+ );
82
83
  if (result.error) {
83
84
  console.error("\u274C Error during installation :", result.error.message);
84
85
  }
package/dist/index.js CHANGED
@@ -52,10 +52,11 @@ var main = () => {
52
52
  process.exit(1);
53
53
  }
54
54
  console.log(`Project creation ${projectName}...`);
55
- const result = spawnSync2("npx", ["opticore-new-project", projectName], {
56
- stdio: "inherit",
57
- shell: true
58
- });
55
+ const result = spawnSync2(
56
+ "npx",
57
+ ["--yes", "--package=opticore-installer", "opticore-new-project", projectName],
58
+ { stdio: "inherit" }
59
+ );
59
60
  if (result.error) {
60
61
  console.error("\u274C Error during installation :", result.error.message);
61
62
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opticore-cli",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",