@expressots/cli 3.0.0-beta.2 → 3.0.0-beta.3

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/bin/new/form.js +5 -5
  2. package/package.json +1 -2
package/bin/new/form.js CHANGED
@@ -5,19 +5,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.projectForm = void 0;
7
7
  const chalk_1 = __importDefault(require("chalk"));
8
- const node_child_process_1 = require("node:child_process");
9
8
  const cli_progress_1 = require("cli-progress");
10
9
  const degit_1 = __importDefault(require("degit"));
11
10
  const inquirer_1 = __importDefault(require("inquirer"));
11
+ const node_child_process_1 = require("node:child_process");
12
12
  const node_fs_1 = __importDefault(require("node:fs"));
13
13
  const node_path_1 = __importDefault(require("node:path"));
14
+ const cli_1 = require("../cli");
14
15
  const center_text_1 = require("../utils/center-text");
15
- const cli_ui_1 = require("../utils/cli-ui");
16
16
  const change_package_info_1 = require("../utils/change-package-info");
17
- const cli_1 = require("../cli");
17
+ const cli_ui_1 = require("../utils/cli-ui");
18
18
  async function packageManagerInstall({ packageManager, directory, progressBar, }) {
19
19
  const command = process.platform === "win32" ? `${packageManager}.cmd` : packageManager;
20
- const args = ["install", "--prefer-offline", "--silent"];
20
+ const args = ["install", "--silent"];
21
21
  if (packageManager === "yarn") {
22
22
  args.push("--ignore-engines");
23
23
  args.splice(args.indexOf("--prefer-offline"), 1);
@@ -138,7 +138,7 @@ const projectForm = async (projectName, args) => {
138
138
  message: "Select a template",
139
139
  choices: [
140
140
  `Opinionated :: Automatically scaffolds resources into a preset project structure. (${chalk_1.default.yellow("Recommended")})`,
141
- "Non-Opinionated :: Allows users to choose where to scaffold resources, offering flexible project organization.",
141
+ "NonOpinionated :: Allows users to choose where to scaffold resources, offering flexible project organization.",
142
142
  "Micro :: A minimalistic template for building micro api's.",
143
143
  ],
144
144
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expressots/cli",
3
- "version": "3.0.0-beta.2",
3
+ "version": "3.0.0-beta.3",
4
4
  "description": "Expressots CLI - modern, fast, lightweight nodejs web framework (@cli)",
5
5
  "author": "Richard Zampieri",
6
6
  "license": "MIT",
@@ -40,7 +40,6 @@
40
40
  "cp:templates": "node scripts/cp.js ./src/generate/templates ./bin/generate/",
41
41
  "clean": "node scripts/rm.js bin",
42
42
  "prepublish": "npm run build && npm pack",
43
- "publish": "npm publish --tag latest",
44
43
  "format": "prettier --write \"./src/**/*.ts\" --cache",
45
44
  "lint": "eslint \"./src/**/*.ts\"",
46
45
  "lint:fix": "eslint \"./src/**/*.ts\" --fix",