@todesktop/cli 1.6.2-1 → 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
@@ -883,6 +883,18 @@ Now you can run `npm run todesktop-build` to build the production app. Or you ca
883
883
 
884
884
  ## Changelog
885
885
 
886
+ ### v1.6.2
887
+
888
+ - Add support for specifying custom `nodeVersion` in config
889
+
890
+ ### v1.6.1
891
+
892
+ - Add support for specifying `windows.nsisInclude` in config
893
+
894
+ ### v1.6.0
895
+
896
+ - Codebase refactored and converted to typescript
897
+
886
898
  ### v1.5.1
887
899
 
888
900
  - Add support for `--exit` flag for `todesktop builds`.
package/dist/cli.js CHANGED
@@ -1034,7 +1034,6 @@ function resolveConfigPaths({
1034
1034
  var import_ajv3 = __toESM(require("ajv"));
1035
1035
  var import_ajv_formats2 = __toESM(require("ajv-formats"));
1036
1036
  var import_better_ajv_errors2 = __toESM(require("better-ajv-errors"));
1037
- var import_ajv_semver = __toESM(require("ajv-semver"));
1038
1037
 
1039
1038
  // src/utilities/projectConfig/addCustomKeywords.ts
1040
1039
  var import_ajv2 = require("ajv");
@@ -1141,6 +1140,7 @@ ${output}`);
1141
1140
  };
1142
1141
 
1143
1142
  // src/utilities/projectConfig/addCustomKeywords.ts
1143
+ var import_valid = __toESM(require("semver/ranges/valid"));
1144
1144
  var addCustomKeywords_default = (ajv, context) => {
1145
1145
  const addKeyword = (def) => {
1146
1146
  const validate = (schema, data) => {
@@ -1156,6 +1156,21 @@ var addCustomKeywords_default = (ajv, context) => {
1156
1156
  };
1157
1157
  ajv.addKeyword({ ...def, validate });
1158
1158
  };
1159
+ addKeyword({
1160
+ keyword: "validSemver",
1161
+ type: "string",
1162
+ validate: (schema, data) => {
1163
+ if (!(0, import_valid.default)(data)) {
1164
+ throw new import_ajv2.ValidationError([
1165
+ {
1166
+ keyword: "validSemver",
1167
+ message: `${data} must be a valid semantic version or version range`
1168
+ }
1169
+ ]);
1170
+ }
1171
+ return true;
1172
+ }
1173
+ });
1159
1174
  addKeyword({
1160
1175
  keyword: "excludedDependencies",
1161
1176
  validate: (schema, data) => {
@@ -1615,7 +1630,7 @@ var full_default = (context) => {
1615
1630
  },
1616
1631
  nodeVersion: {
1617
1632
  type: "string",
1618
- semver: { validRange: true },
1633
+ validSemver: {},
1619
1634
  minLength: 1
1620
1635
  },
1621
1636
  packageManager: {
@@ -1727,7 +1742,6 @@ function validateConfig({
1727
1742
  const context = { projectRoot };
1728
1743
  const schema = full_default(context);
1729
1744
  const ajv = new import_ajv3.default({ allErrors: true });
1730
- (0, import_ajv_semver.default)(ajv);
1731
1745
  (0, import_ajv_formats2.default)(ajv);
1732
1746
  addCustomKeywords_default(ajv, context);
1733
1747
  const validate = ajv.compile(schema);
@@ -4178,7 +4192,7 @@ var package_default = {
4178
4192
  access: "public"
4179
4193
  },
4180
4194
  name: "@todesktop/cli",
4181
- version: "1.6.2-0",
4195
+ version: "1.6.2-2",
4182
4196
  license: "MIT",
4183
4197
  author: "Dave Jeffery <dave@todesktop.com> (http://www.todesktop.com/)",
4184
4198
  homepage: "https://todesktop.com/cli",
@@ -4216,7 +4230,6 @@ var package_default = {
4216
4230
  "@sentry/node": "^5.27.2",
4217
4231
  ajv: "^8.11.2",
4218
4232
  "ajv-formats": "^2.1.1",
4219
- "ajv-semver": "^1.0.5",
4220
4233
  "analytics-node": "^4.0.1",
4221
4234
  archiver: "^5.2.0",
4222
4235
  axios: "^0.21.1",
@@ -4251,7 +4264,7 @@ var package_default = {
4251
4264
  "prop-types": "^15.7.2",
4252
4265
  react: "^17.0.2",
4253
4266
  "react-final-form": "^6.5.1",
4254
- semver: "^7.3.2",
4267
+ semver: "^7.3.8",
4255
4268
  "source-map-support": "^0.5.21",
4256
4269
  "stream-to-array": "^2.3.0",
4257
4270
  superagent: "^7.1.3",