@drupal-canvas/create 1.6.0 → 1.8.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.
package/dist/index.js CHANGED
@@ -64,6 +64,16 @@ var templates_default = [
64
64
  ref: "main",
65
65
  path: "tanstack-start"
66
66
  }
67
+ },
68
+ {
69
+ id: "angular",
70
+ label: "Angular",
71
+ experimental: true,
72
+ repository: {
73
+ url: "https://github.com/drupal-canvas/headless-templates.git",
74
+ ref: "main",
75
+ path: "angular"
76
+ }
67
77
  }
68
78
  ];
69
79
 
@@ -773,7 +783,7 @@ function detectPackageManager() {
773
783
  // package.json
774
784
  var package_default = {
775
785
  name: "@drupal-canvas/create",
776
- version: "1.6.0",
786
+ version: "1.8.0",
777
787
  description: "CLI to scaffold a codebase for working with Drupal Canvas Code Components"};
778
788
 
779
789
  // src/lib/meta-info.ts
@@ -915,17 +925,9 @@ function updateExistingEnv(content, siteUrl) {
915
925
  setAssignment(env, siteUrl, effectiveAssignment);
916
926
  return { content: joinEnv(env), result: "configured-existing" };
917
927
  }
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
928
  async function writeSiteUrlEnv(projectDir, siteUrl) {
926
929
  const validationError = validateSiteUrl(siteUrl);
927
930
  if (validationError) throw new Error(validationError);
928
- siteUrl = normalizeSiteUrl(siteUrl);
929
931
  const envPath = join(projectDir, ENV_FILENAME);
930
932
  const existingEnv = await readOptionalFile(envPath);
931
933
  if (existingEnv !== void 0) {
@@ -21,6 +21,7 @@ Select a template
21
21
  Astro
22
22
  Nuxt
23
23
  TanStack Start
24
+ Angular
24
25
  ```
25
26
 
26
27
  The available experimental template IDs are:
@@ -31,6 +32,7 @@ The available experimental template IDs are:
31
32
  | `astro` | Astro |
32
33
  | `nuxt` | Nuxt |
33
34
  | `tanstack-start` | TanStack Start |
35
+ | `angular` | Angular |
34
36
 
35
37
  The experimental flag is only needed for interactive discovery. An experimental
36
38
  template ID can be provided directly without it:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drupal-canvas/create",
3
- "version": "1.6.0",
3
+ "version": "1.8.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",
package/templates.json CHANGED
@@ -47,5 +47,15 @@
47
47
  "ref": "main",
48
48
  "path": "tanstack-start"
49
49
  }
50
+ },
51
+ {
52
+ "id": "angular",
53
+ "label": "Angular",
54
+ "experimental": true,
55
+ "repository": {
56
+ "url": "https://github.com/drupal-canvas/headless-templates.git",
57
+ "ref": "main",
58
+ "path": "angular"
59
+ }
50
60
  }
51
61
  ]