create-acmekit-app 2.13.41 → 2.13.44

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/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.13.44
4
+
5
+ ### Patch Changes
6
+
7
+ - changes
8
+
9
+ - Updated dependencies []:
10
+ - @acmekit/telemetry@2.13.44
11
+ - @acmekit/deps@2.13.44
12
+
13
+ ## 2.13.43
14
+
15
+ ### Patch Changes
16
+
17
+ - changes
18
+
19
+ - Updated dependencies []:
20
+ - @acmekit/telemetry@2.13.43
21
+ - @acmekit/deps@2.13.43
22
+
23
+ ## 2.13.42
24
+
25
+ ### Patch Changes
26
+
27
+ - changes
28
+
29
+ - Updated dependencies []:
30
+ - @acmekit/telemetry@2.13.42
31
+ - @acmekit/deps@2.13.42
32
+
3
33
  ## 2.13.41
4
34
 
5
35
  ### Patch Changes
@@ -42,6 +42,12 @@ async function preparePlugin({ directory, projectName, spinner, processManager,
42
42
  packageJson.packageManager = packageManagerString;
43
43
  }
44
44
  fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2));
45
+ // Create .env from .env.template if it exists
46
+ const envTemplatePath = path.join(directory, ".env.template");
47
+ const envPath = path.join(directory, ".env");
48
+ if (fs.existsSync(envTemplatePath) && !fs.existsSync(envPath)) {
49
+ fs.copyFileSync(envTemplatePath, envPath);
50
+ }
45
51
  factBoxOptions.interval = displayFactBox({
46
52
  ...factBoxOptions,
47
53
  spinner,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-acmekit-app",
3
- "version": "2.13.41",
3
+ "version": "2.13.44",
4
4
  "description": "Create a AcmeKit project using a single command.",
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",
@@ -14,8 +14,8 @@
14
14
  "test": "../../../node_modules/.bin/jest --passWithNoTests src"
15
15
  },
16
16
  "dependencies": {
17
- "@acmekit/deps": "2.13.41",
18
- "@acmekit/telemetry": "2.13.41",
17
+ "@acmekit/deps": "2.13.44",
18
+ "@acmekit/telemetry": "2.13.44",
19
19
  "boxen": "^5.0.1",
20
20
  "chalk": "^4.1.2",
21
21
  "commander": "^11.0.0",
@@ -101,6 +101,13 @@ async function preparePlugin({
101
101
 
102
102
  fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2))
103
103
 
104
+ // Create .env from .env.template if it exists
105
+ const envTemplatePath = path.join(directory, ".env.template")
106
+ const envPath = path.join(directory, ".env")
107
+ if (fs.existsSync(envTemplatePath) && !fs.existsSync(envPath)) {
108
+ fs.copyFileSync(envTemplatePath, envPath)
109
+ }
110
+
104
111
  factBoxOptions.interval = displayFactBox({
105
112
  ...factBoxOptions,
106
113
  spinner,