create-acmekit-app 2.13.3 → 2.13.5

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.
@@ -0,0 +1 @@
1
+
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.13.5
4
+
5
+ ### Patch Changes
6
+
7
+ - some changes
8
+
9
+ - Updated dependencies []:
10
+ - @acmekit/telemetry@2.13.5
11
+ - @acmekit/deps@2.13.5
12
+
13
+ ## 2.13.4
14
+
15
+ ### Patch Changes
16
+
17
+ - changes
18
+
19
+ - Updated dependencies []:
20
+ - @acmekit/telemetry@2.13.4
21
+ - @acmekit/deps@2.13.4
22
+
23
+ ## 2.13.4
24
+
25
+ ### Patch Changes
26
+
27
+ - changes
28
+
29
+ - Updated dependencies []:
30
+ - @acmekit/telemetry@2.13.4
31
+ - @acmekit/deps@2.13.4
32
+
3
33
  ## 2.13.3
4
34
 
5
35
  ### Patch Changes
@@ -157,15 +157,24 @@ async function prepareProject({ directory, projectName, dbName, dbConnectionStri
157
157
  // TODO for now we just seed the default data
158
158
  // we should add onboarding seeding again if it makes
159
159
  // since once we re-introduce the onboarding flow.
160
- factBoxOptions.interval = displayFactBox({
161
- ...factBoxOptions,
162
- title: "Seeding database...",
163
- });
164
- await packageManager.runCommand("seed", execOptions);
165
- displayFactBox({
166
- ...factBoxOptions,
167
- message: "Seeded database with demo data",
168
- });
160
+ const packageJsonForSeed = JSON.parse(fs.readFileSync(packageJsonPath, "utf-8"));
161
+ if (packageJsonForSeed.scripts?.seed) {
162
+ factBoxOptions.interval = displayFactBox({
163
+ ...factBoxOptions,
164
+ title: "Seeding database...",
165
+ });
166
+ await packageManager.runCommand("seed", execOptions);
167
+ displayFactBox({
168
+ ...factBoxOptions,
169
+ message: "Seeded database with demo data",
170
+ });
171
+ }
172
+ else {
173
+ displayFactBox({
174
+ ...factBoxOptions,
175
+ message: "Skipped seeding (starter has no seed script)",
176
+ });
177
+ }
169
178
  }
170
179
  // if installation includes Next.js, retrieve the publishable API key
171
180
  // from the backend and add it as an enviornment variable
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-acmekit-app",
3
- "version": "2.13.3",
3
+ "version": "2.13.5",
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.3",
18
- "@acmekit/telemetry": "2.13.3",
17
+ "@acmekit/deps": "2.13.5",
18
+ "@acmekit/telemetry": "2.13.5",
19
19
  "boxen": "^5.0.1",
20
20
  "chalk": "^4.1.2",
21
21
  "commander": "^11.0.0",
@@ -279,17 +279,27 @@ async function prepareProject({
279
279
  // TODO for now we just seed the default data
280
280
  // we should add onboarding seeding again if it makes
281
281
  // since once we re-introduce the onboarding flow.
282
- factBoxOptions.interval = displayFactBox({
283
- ...factBoxOptions,
284
- title: "Seeding database...",
285
- })
286
-
287
- await packageManager.runCommand("seed", execOptions)
288
-
289
- displayFactBox({
290
- ...factBoxOptions,
291
- message: "Seeded database with demo data",
292
- })
282
+ const packageJsonForSeed = JSON.parse(
283
+ fs.readFileSync(packageJsonPath, "utf-8")
284
+ )
285
+ if (packageJsonForSeed.scripts?.seed) {
286
+ factBoxOptions.interval = displayFactBox({
287
+ ...factBoxOptions,
288
+ title: "Seeding database...",
289
+ })
290
+
291
+ await packageManager.runCommand("seed", execOptions)
292
+
293
+ displayFactBox({
294
+ ...factBoxOptions,
295
+ message: "Seeded database with demo data",
296
+ })
297
+ } else {
298
+ displayFactBox({
299
+ ...factBoxOptions,
300
+ message: "Skipped seeding (starter has no seed script)",
301
+ })
302
+ }
293
303
  }
294
304
 
295
305
  // if installation includes Next.js, retrieve the publishable API key