@drupal-canvas/create 1.6.0 → 1.7.0

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/dist/index.js +1 -9
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -773,7 +773,7 @@ function detectPackageManager() {
773
773
  // package.json
774
774
  var package_default = {
775
775
  name: "@drupal-canvas/create",
776
- version: "1.6.0",
776
+ version: "1.7.0",
777
777
  description: "CLI to scaffold a codebase for working with Drupal Canvas Code Components"};
778
778
 
779
779
  // src/lib/meta-info.ts
@@ -915,17 +915,9 @@ function updateExistingEnv(content, siteUrl) {
915
915
  setAssignment(env, siteUrl, effectiveAssignment);
916
916
  return { content: joinEnv(env), result: "configured-existing" };
917
917
  }
918
- function normalizeSiteUrl(siteUrl) {
919
- const { protocol, hostname } = new URL(siteUrl);
920
- if (protocol === "https:" && (hostname === "ddev.site" || hostname.endsWith(".ddev.site"))) {
921
- return siteUrl.replace(/^https:\/\//i, "http://");
922
- }
923
- return siteUrl;
924
- }
925
918
  async function writeSiteUrlEnv(projectDir, siteUrl) {
926
919
  const validationError = validateSiteUrl(siteUrl);
927
920
  if (validationError) throw new Error(validationError);
928
- siteUrl = normalizeSiteUrl(siteUrl);
929
921
  const envPath = join(projectDir, ENV_FILENAME);
930
922
  const existingEnv = await readOptionalFile(envPath);
931
923
  if (existingEnv !== void 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drupal-canvas/create",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "CLI to scaffold a codebase for working with Drupal Canvas Code Components",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -24,7 +24,7 @@
24
24
  "create"
25
25
  ],
26
26
  "engines": {
27
- "node": ">=20.0.0"
27
+ "node": ">=22.19.0 <23 || >=24.5.0"
28
28
  },
29
29
  "dependencies": {
30
30
  "@clack/prompts": "^0.11.0",