create-routify 1.5.8 → 1.6.2

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Create Routify
2
2
 
3
- Welcome to the new Routiy CLI! This CLI currently supports both version 2 & 3 (beta) of Routify.
3
+ Welcome to the new Routiy CLI! This CLI currently supports both version 2 & 3 of Routify.
4
4
 
5
5
  # Get Started
6
6
 
@@ -30,4 +30,5 @@ npm init routify [directory-name]
30
30
  ```
31
31
 
32
32
  ### Contributors
33
- See [CONTRIBUTORS.md](CONTRIBUTORS.md)
33
+
34
+ See [CONTRIBUTORS.md](CONTRIBUTORS.md)
package/config.js CHANGED
@@ -28,7 +28,7 @@ export default {
28
28
  defaultTemplate: 'basic-starter',
29
29
  templatesRepos: [
30
30
  {
31
- url: 'roxiness/routify#next',
31
+ url: 'roxiness/routify#main',
32
32
  // url: 'local:../routify',
33
33
  path: 'examples',
34
34
  templateType: 'directory',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-routify",
3
- "version": "v1.5.8",
3
+ "version": "v1.6.2",
4
4
  "description": "A powerful cli for super-powering your routify development experience",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -44,4 +44,4 @@
44
44
  "devDependencies": {
45
45
  "@types/update-notifier": "^6.0.1"
46
46
  }
47
- }
47
+ }
package/src/index.js CHANGED
@@ -33,7 +33,7 @@ const prompts = {
33
33
  {
34
34
  label: `Routify 3`,
35
35
  value: 3,
36
- hint: 'This is a beta version',
36
+ // hint: 'This is a beta version',
37
37
  },
38
38
  ],
39
39
  initialValue: 3,
@@ -116,6 +116,13 @@ const check = {
116
116
  };
117
117
 
118
118
  const getAvailableFeatures = (template) => {
119
+ if (!template || !template.manifest) {
120
+ console.error(
121
+ 'ERROR: Template or manifest is undefined. This likely means the selected starter template was not found.',
122
+ );
123
+ return [];
124
+ }
125
+
119
126
  const features = template.manifest.features || [];
120
127
  if (template.manifest.test)
121
128
  features.push({