complete-cli 1.2.0 → 1.2.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.
@@ -8,8 +8,8 @@ export class UpdateCommand extends Command {
8
8
  async execute() {
9
9
  const hasNewDependencies = await updatePackageJSONDependencies();
10
10
  const msg = hasNewDependencies
11
- ? "Successfully installed new Node.js dependencies."
12
- : "There were no new dependency updates from npm.";
11
+ ? "Successfully installed new dependencies."
12
+ : "There were no new dependency updates.";
13
13
  console.log(msg);
14
14
  }
15
15
  }
package/dist/constants.js CHANGED
@@ -1,15 +1,14 @@
1
- import { findPackageRoot, getPackageJSONFieldsMandatory, PackageManager, } from "complete-node";
1
+ import { getPackageJSONFieldsMandatory, getPackageRoot, PackageManager, } from "complete-node";
2
2
  import os from "node:os";
3
3
  import path from "node:path";
4
4
  export const CWD = process.cwd();
5
5
  export const CURRENT_DIRECTORY_NAME = path.basename(CWD);
6
6
  export const HOME_DIR = os.homedir();
7
- const packageRoot = findPackageRoot();
7
+ const packageRoot = await getPackageRoot();
8
8
  const { name, version } = await getPackageJSONFieldsMandatory(packageRoot, "name", "version");
9
9
  export const PROJECT_NAME = name;
10
10
  export const PROJECT_VERSION = version;
11
11
  export const DEFAULT_PACKAGE_MANAGER = PackageManager.npm;
12
- // ---------
13
12
  const TEMPLATES_DIR = path.join(packageRoot, "file-templates");
14
13
  export const TEMPLATES_STATIC_DIR = path.join(TEMPLATES_DIR, "static");
15
14
  export const TEMPLATES_DYNAMIC_DIR = path.join(TEMPLATES_DIR, "dynamic");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "complete-cli",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "A command line tool for bootstrapping TypeScript projects.",
5
5
  "keywords": [
6
6
  "typescript"
@@ -37,20 +37,20 @@
37
37
  "@zamiell/clack-prompts": "0.10.2",
38
38
  "chalk": "5.4.1",
39
39
  "clipanion": "4.0.0-rc.4",
40
- "complete-common": "2.1.0",
41
- "complete-node": "5.1.2",
40
+ "complete-common": "2.3.0",
41
+ "complete-node": "7.0.2",
42
42
  "klaw-sync": "7.0.0",
43
- "yaml": "2.7.1"
43
+ "yaml": "2.8.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/klaw-sync": "6.0.5",
47
- "@types/node": "22.14.1",
48
- "glob": "11.0.1",
47
+ "@types/node": "24.0.3",
48
+ "glob": "11.0.3",
49
49
  "ts-loader": "9.5.2",
50
50
  "tsconfig-paths-webpack-plugin": "4.2.0",
51
51
  "typescript": "5.8.3",
52
- "typescript-eslint": "8.30.1",
53
- "webpack": "5.99.6",
52
+ "typescript-eslint": "8.34.1",
53
+ "webpack": "5.99.9",
54
54
  "webpack-cli": "6.0.1",
55
55
  "webpack-shebang-plugin": "1.1.8"
56
56
  },
@@ -12,8 +12,8 @@ export class UpdateCommand extends Command {
12
12
  async execute(): Promise<void> {
13
13
  const hasNewDependencies = await updatePackageJSONDependencies();
14
14
  const msg = hasNewDependencies
15
- ? "Successfully installed new Node.js dependencies."
16
- : "There were no new dependency updates from npm.";
15
+ ? "Successfully installed new dependencies."
16
+ : "There were no new dependency updates.";
17
17
  console.log(msg);
18
18
  }
19
19
  }
@@ -106,7 +106,7 @@ async function promptVSCode(
106
106
  VSCodeCommand: string,
107
107
  vscode: boolean,
108
108
  yes: boolean,
109
- ): Promise<void> {
109
+ ) {
110
110
  if (vscode) {
111
111
  // They supplied the "--vscode" command-line flag, so there is no need to prompt the user.
112
112
  await openVSCode(projectPath, VSCodeCommand);
package/src/constants.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
- findPackageRoot,
3
2
  getPackageJSONFieldsMandatory,
3
+ getPackageRoot,
4
4
  PackageManager,
5
5
  } from "complete-node";
6
6
  import os from "node:os";
@@ -11,7 +11,7 @@ export const CURRENT_DIRECTORY_NAME = path.basename(CWD);
11
11
 
12
12
  export const HOME_DIR = os.homedir();
13
13
 
14
- const packageRoot = findPackageRoot();
14
+ const packageRoot = await getPackageRoot();
15
15
  const { name, version } = await getPackageJSONFieldsMandatory(
16
16
  packageRoot,
17
17
  "name",
@@ -23,8 +23,6 @@ export const PROJECT_VERSION = version;
23
23
 
24
24
  export const DEFAULT_PACKAGE_MANAGER = PackageManager.npm;
25
25
 
26
- // ---------
27
-
28
26
  const TEMPLATES_DIR = path.join(packageRoot, "file-templates");
29
27
  export const TEMPLATES_STATIC_DIR = path.join(TEMPLATES_DIR, "static");
30
28
  export const TEMPLATES_DYNAMIC_DIR = path.join(TEMPLATES_DIR, "dynamic");
package/src/main.ts CHANGED
@@ -10,7 +10,7 @@ import { PROJECT_NAME, PROJECT_VERSION } from "./constants.js";
10
10
 
11
11
  await main();
12
12
 
13
- async function main(): Promise<void> {
13
+ async function main() {
14
14
  const [_node, _app, ...args] = process.argv;
15
15
 
16
16
  const cli = new Cli({