diff options
Diffstat (limited to 'scripts/api/package.js')
-rw-r--r-- | scripts/api/package.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/api/package.js b/scripts/api/package.js index 9c3ede5..f66f8d4 100644 --- a/scripts/api/package.js +++ b/scripts/api/package.js | |||
@@ -93,9 +93,9 @@ For more information about the package.json file visit https://github.com/getfer | |||
93 | } | 93 | } |
94 | let configErrors = []; | 94 | let configErrors = []; |
95 | if (!config.id) { | 95 | if (!config.id) { |
96 | configErrors.push("Your package.json contains no 'id' field. This field should contain a unique ID made of lowercase letters (a-z) and hyphens (-)"); | 96 | configErrors.push("Your package.json contains no 'id' field. This field should contain a unique ID made of lowercase letters (a-z), numbers (0-9), hyphens (-), periods (.), and underscores (_)"); |
97 | } else if (!/^[a-z._\-]+$/.test(config.id)) { | 97 | } else if (!/^[a-z0-9._\-]+$/.test(config.id)) { |
98 | configErrors.push("Your package.json defines an invalid recipe ID. Please make sure the 'id' field only contains lowercase letters (a-z) and hyphens (-)"); | 98 | configErrors.push("Your package.json defines an invalid recipe ID. Please make sure the 'id' field only contains lowercase letters (a-z), numbers (0-9), hyphens (-), periods (.), and underscores (_)"); |
99 | } | 99 | } |
100 | if (!config.name) { | 100 | if (!config.name) { |
101 | configErrors.push("Your package.json contains no 'name' field. This field should contain the name of the service (e.g. 'Google Keep')"); | 101 | configErrors.push("Your package.json contains no 'name' field. This field should contain the name of the service (e.g. 'Google Keep')"); |
@@ -187,4 +187,4 @@ For more information about the webview.js file visit https://github.com/getferdi | |||
187 | }); | 187 | }); |
188 | 188 | ||
189 | console.log(`✅ Successfully packaged and added new recipe "${config.id}"`); | 189 | console.log(`✅ Successfully packaged and added new recipe "${config.id}"`); |
190 | }; \ No newline at end of file | 190 | }; |