@drupal-canvas/create 1.9.0 → 1.9.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.js +14 -3
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -778,7 +778,7 @@ function detectPackageManager() {
|
|
|
778
778
|
// package.json
|
|
779
779
|
var package_default = {
|
|
780
780
|
name: "@drupal-canvas/create",
|
|
781
|
-
version: "1.9.
|
|
781
|
+
version: "1.9.2",
|
|
782
782
|
description: "CLI to scaffold a codebase for working with Drupal Canvas Code Components"};
|
|
783
783
|
|
|
784
784
|
// src/lib/meta-info.ts
|
|
@@ -954,10 +954,21 @@ var unsafe = {
|
|
|
954
954
|
allowUnsafeEditor: true,
|
|
955
955
|
allowUnsafePager: true
|
|
956
956
|
};
|
|
957
|
+
var REPOSITORY_LOCATION_ENV = /* @__PURE__ */ new Set([
|
|
958
|
+
"GIT_DIR",
|
|
959
|
+
"GIT_WORK_TREE",
|
|
960
|
+
"GIT_INDEX_FILE",
|
|
961
|
+
"GIT_OBJECT_DIRECTORY",
|
|
962
|
+
"GIT_COMMON_DIR"
|
|
963
|
+
]);
|
|
957
964
|
var use_git_default = (baseDir) => {
|
|
958
|
-
const
|
|
965
|
+
const env = { ...process.env, GIT_TERMINAL_PROMPT };
|
|
966
|
+
const allowEnvironment = Object.keys(env).filter(
|
|
967
|
+
(key) => !REPOSITORY_LOCATION_ENV.has(key.toUpperCase())
|
|
968
|
+
);
|
|
969
|
+
const options = { unsafe, allowEnvironment };
|
|
959
970
|
const git = baseDir === void 0 ? simpleGit(options) : simpleGit(baseDir, options);
|
|
960
|
-
return git.env(
|
|
971
|
+
return git.env(env);
|
|
961
972
|
};
|
|
962
973
|
|
|
963
974
|
// src/create.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drupal-canvas/create",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.2",
|
|
4
4
|
"description": "CLI to scaffold a codebase for working with Drupal Canvas Code Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@clack/prompts": "^0.11.0",
|
|
31
31
|
"@sindresorhus/slugify": "^3.0.0",
|
|
32
|
-
"chalk": "^
|
|
33
|
-
"commander": "^
|
|
32
|
+
"chalk": "^6.0.0",
|
|
33
|
+
"commander": "^15.0.0",
|
|
34
34
|
"cross-spawn": "^7.0.6",
|
|
35
35
|
"picocolors": "^1.1.1",
|
|
36
36
|
"rimraf": "^6.1.2",
|
|
37
|
-
"simple-git": "^
|
|
38
|
-
"string-width": "^
|
|
37
|
+
"simple-git": "^4.0.2",
|
|
38
|
+
"string-width": "^8.3.0",
|
|
39
39
|
"validate-npm-package-name": "^7.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|