lucid-package 0.0.89 → 0.0.90

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-package",
3
- "version": "0.0.89",
3
+ "version": "0.0.90",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
package/src/package.js CHANGED
@@ -60,9 +60,11 @@ async function writePackage(quiet = false, manifestOverrideEnv) {
60
60
  if (manifest['id'] !== undefined && (!(0, lucid_extension_sdk_1.isString)(manifest['id']) || !uuidRegex.test(manifest['id']))) {
61
61
  throw new Error('manifest.json: If "id" is specified, must be a UUID matching the package ID from the Lucid developer portal');
62
62
  }
63
- const parts = manifest['version'].split('.');
64
- parts[parts.length - 1] = String(parseInt(parts[parts.length - 1], 10) + 1);
65
- manifest['version'] = parts.join('.');
63
+ if (manifest['version']) {
64
+ const parts = manifest['version'].split('.');
65
+ parts[parts.length - 1] = String(parseInt(parts[parts.length - 1], 10) + 1);
66
+ manifest['version'] = parts.join('.');
67
+ }
66
68
  //For each extension, compile it and add it to the archive
67
69
  for (const extension of manifest['extensions'] || []) {
68
70
  //Check that the scopes are valid
@@ -5,7 +5,7 @@ export declare enum SettingType {
5
5
  }
6
6
  export type PackageManifest = {
7
7
  'id'?: string;
8
- 'version': string;
8
+ 'version'?: string;
9
9
  'extensions'?: {
10
10
  'name': string;
11
11
  'title': string;
@@ -15,7 +15,7 @@ function validateManifestOrThrow(manifest) {
15
15
  if (!(0, lucid_extension_sdk_1.isObject)(manifest)) {
16
16
  throw new Error('manifest.json must be a valid JSON object');
17
17
  }
18
- if (!(0, lucid_extension_sdk_1.isString)(manifest['version']) || !versionRegex.test(manifest['version'])) {
18
+ if ((0, lucid_extension_sdk_1.isDef)(manifest['version']) && (!(0, lucid_extension_sdk_1.isString)(manifest['version']) || !versionRegex.test(manifest['version']))) {
19
19
  throw new Error('manifest.json: "version" must be a string in the format <major>.<minor>.<patch>');
20
20
  }
21
21
  function validateUniqueNames(kindOfThings, things) {