@create-node-app/core 0.5.0 → 0.5.2

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
@@ -2835,7 +2835,7 @@ var import_os = __toESM(require("os"), 1);
2835
2835
  var import_path = __toESM(require("path"), 1);
2836
2836
  var import_fs = __toESM(require("fs"), 1);
2837
2837
  var import_debug = __toESM(require("debug"), 1);
2838
- var import_simple_git = __toESM(require("simple-git"), 1);
2838
+ var import_simple_git = require("simple-git");
2839
2839
  var fse = __toESM(require_lib(), 1);
2840
2840
  var log = (0, import_debug.default)("cna:git");
2841
2841
  var filterGit = (src) => {
@@ -2877,7 +2877,7 @@ var downloadRepository = async ({
2877
2877
  return;
2878
2878
  }
2879
2879
  const gitOperationPromise = (async () => {
2880
- let git = (0, import_simple_git.default)();
2880
+ let git = (0, import_simple_git.simpleGit)();
2881
2881
  const cloneOptions = {
2882
2882
  "--depth": 1,
2883
2883
  "--branch": branch,
@@ -2890,7 +2890,7 @@ var downloadRepository = async ({
2890
2890
  log("Cloning repository...");
2891
2891
  await git.clone(gitUrl, cacheDir, cloneOptions);
2892
2892
  }
2893
- git = (0, import_simple_git.default)(cacheDir);
2893
+ git = (0, import_simple_git.simpleGit)(cacheDir);
2894
2894
  if (!offline) {
2895
2895
  log("Pulling repository...");
2896
2896
  await git.checkout(["-f", branch]);
@@ -2940,7 +2940,7 @@ var solveRepositoryPath = async ({
2940
2940
  try {
2941
2941
  await downloadRepository({
2942
2942
  url,
2943
- branch,
2943
+ branch: branch || "",
2944
2944
  target,
2945
2945
  targetId
2946
2946
  });
package/dist/index.js CHANGED
@@ -2828,7 +2828,7 @@ import os from "os";
2828
2828
  import path from "path";
2829
2829
  import fs from "fs";
2830
2830
  import debug from "debug";
2831
- import simpleGit from "simple-git";
2831
+ import { simpleGit } from "simple-git";
2832
2832
  var log = debug("cna:git");
2833
2833
  var filterGit = (src) => {
2834
2834
  return !/(\\|\/)\.git\b/.test(src);
@@ -2932,7 +2932,7 @@ var solveRepositoryPath = async ({
2932
2932
  try {
2933
2933
  await downloadRepository({
2934
2934
  url,
2935
- branch,
2935
+ branch: branch || "",
2936
2936
  target,
2937
2937
  targetId
2938
2938
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@create-node-app/core",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.ts",
@@ -44,7 +44,6 @@
44
44
  "eslint": "^9.35.0",
45
45
  "eslint-config-turbo": "^2.5.6",
46
46
  "eslint-plugin-turbo": "^2.5.6",
47
- "simple-git": "^3.28.0",
48
47
  "tsconfig": "*",
49
48
  "typescript": "^5.9.2"
50
49
  },
@@ -53,6 +52,7 @@
53
52
  "cross-spawn": "^7.0.6",
54
53
  "debug": "^4.4.3",
55
54
  "envinfo": "^7.14.0",
55
+ "simple-git": "^3.28.0",
56
56
  "lodash.merge": "^4.6.2",
57
57
  "readdirp": "^4.1.2",
58
58
  "semver": "^7.7.2",