@shopify/create-app 1.0.0 → 1.0.1

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,11 @@
1
1
  # @shopify/create-app
2
2
 
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Some fixes
8
+
3
9
  ## 1.0.0
4
10
 
5
11
  ### Patch Changes
@@ -24548,6 +24548,14 @@ async function isDirectory(path) {
24548
24548
  async function move(src, dest, options = {}) {
24549
24549
  await lib$2.move(src, dest, options);
24550
24550
  }
24551
+ async function exists$1(path) {
24552
+ try {
24553
+ await lib$2.promises.access(path);
24554
+ return true;
24555
+ } catch {
24556
+ return false;
24557
+ }
24558
+ }
24551
24559
 
24552
24560
  /*
24553
24561
  * liquidjs@9.35.1, https://github.com/harttle/liquidjs
@@ -45129,7 +45137,7 @@ const username = async (platform = platform$1) => {
45129
45137
  };
45130
45138
 
45131
45139
  var name = "@shopify/cli-kit";
45132
- var version$2 = "1.0.0";
45140
+ var version$2 = "1.0.1";
45133
45141
  var description$1 = "A set of utilities, interfaces, and models that are common across all the platform features";
45134
45142
  var keywords = [
45135
45143
  "shopify",
@@ -45229,9 +45237,9 @@ var cliKitPackageJson = {
45229
45237
  devDependencies: devDependencies
45230
45238
  };
45231
45239
 
45232
- var version$1 = "1.0.0";
45240
+ var version$1 = "1.0.1";
45233
45241
 
45234
- var version = "1.0.0";
45242
+ var version = "1.0.1";
45235
45243
 
45236
45244
  const constants = {
45237
45245
  environmentVariables: {
@@ -151982,22 +151990,13 @@ const homeTemplateSchema = external.object({
151982
151990
  });
151983
151991
 
151984
151992
  async function askPrompts(directory) {
151985
- const homeConfigs = await getHomeConfigs(directory);
151986
- const allPrompts = homeConfigs.flatMap((config) => config.prompts);
151987
- return allPrompts.length ? prompt(allPrompts) : {};
151988
- }
151989
- async function getHomeConfigs(directory) {
151990
- const globPath = join$3(directory, "**", configurationFileNames.homeTemplate);
151991
- const configFilePaths = await out(globPath);
151992
- const results = [];
151993
- for (const configFilePath of configFilePaths) {
151994
- results.push(parseConfiguration(configFilePath));
151995
- }
151996
- return Promise.all(results);
151997
- }
151998
- async function parseConfiguration(tomlPath) {
151999
- const rawToml = await read(tomlPath);
152000
- return homeTemplateSchema.parse(await decode(rawToml));
151993
+ const templatePath = join$3(directory, configurationFileNames.homeTemplate);
151994
+ if (await exists$1(templatePath)) {
151995
+ const rawToml = await read(templatePath);
151996
+ return homeTemplateSchema.parse(await decode(rawToml));
151997
+ } else {
151998
+ return [];
151999
+ }
152001
152000
  }
152002
152001
 
152003
152002
  async function downloadTemplate({ templateUrl, into }) {