@modern-js/ssg-generator 2.4.4 → 2.4.5

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.
Files changed (2) hide show
  1. package/dist/index.js +121 -58
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -18878,7 +18878,7 @@ var require_lodash = __commonJSMin((exports, module2) => {
18878
18878
  }
18879
18879
  function baseFunctions(object, props) {
18880
18880
  return arrayFilter(props, function(key) {
18881
- return isFunction(object[key]);
18881
+ return isFunction2(object[key]);
18882
18882
  });
18883
18883
  }
18884
18884
  function baseGet(object, path2) {
@@ -19041,7 +19041,7 @@ var require_lodash = __commonJSMin((exports, module2) => {
19041
19041
  if (!isObject5(value) || isMasked(value)) {
19042
19042
  return false;
19043
19043
  }
19044
- var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
19044
+ var pattern = isFunction2(value) ? reIsNative : reIsHostCtor;
19045
19045
  return pattern.test(toSource(value));
19046
19046
  }
19047
19047
  function baseIsRegExp(value) {
@@ -19163,7 +19163,7 @@ var require_lodash = __commonJSMin((exports, module2) => {
19163
19163
  newValue = objValue;
19164
19164
  if (isArguments(objValue)) {
19165
19165
  newValue = toPlainObject(objValue);
19166
- } else if (!isObject5(objValue) || isFunction(objValue)) {
19166
+ } else if (!isObject5(objValue) || isFunction2(objValue)) {
19167
19167
  newValue = initCloneObject(srcValue);
19168
19168
  }
19169
19169
  } else {
@@ -20465,7 +20465,7 @@ var require_lodash = __commonJSMin((exports, module2) => {
20465
20465
  function isMasked(func) {
20466
20466
  return !!maskSrcKey && maskSrcKey in func;
20467
20467
  }
20468
- var isMaskable = coreJsData ? isFunction : stubFalse;
20468
+ var isMaskable = coreJsData ? isFunction2 : stubFalse;
20469
20469
  function isPrototype(value) {
20470
20470
  var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
20471
20471
  return value === proto;
@@ -21578,7 +21578,7 @@ var require_lodash = __commonJSMin((exports, module2) => {
21578
21578
  var isArray4 = Array2.isArray;
21579
21579
  var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;
21580
21580
  function isArrayLike(value) {
21581
- return value != null && isLength(value.length) && !isFunction(value);
21581
+ return value != null && isLength(value.length) && !isFunction2(value);
21582
21582
  }
21583
21583
  function isArrayLikeObject(value) {
21584
21584
  return isObjectLike(value) && isArrayLike(value);
@@ -21630,7 +21630,7 @@ var require_lodash = __commonJSMin((exports, module2) => {
21630
21630
  function isFinite2(value) {
21631
21631
  return typeof value == "number" && nativeIsFinite(value);
21632
21632
  }
21633
- function isFunction(value) {
21633
+ function isFunction2(value) {
21634
21634
  if (!isObject5(value)) {
21635
21635
  return false;
21636
21636
  }
@@ -21953,7 +21953,7 @@ var require_lodash = __commonJSMin((exports, module2) => {
21953
21953
  index = length;
21954
21954
  value = defaultValue;
21955
21955
  }
21956
- object = isFunction(value) ? value.call(object) : value;
21956
+ object = isFunction2(value) ? value.call(object) : value;
21957
21957
  }
21958
21958
  return object;
21959
21959
  }
@@ -21974,7 +21974,7 @@ var require_lodash = __commonJSMin((exports, module2) => {
21974
21974
  if (isArrLike) {
21975
21975
  accumulator = isArr4 ? new Ctor() : [];
21976
21976
  } else if (isObject5(object)) {
21977
- accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
21977
+ accumulator = isFunction2(Ctor) ? baseCreate(getPrototype(object)) : {};
21978
21978
  } else {
21979
21979
  accumulator = {};
21980
21980
  }
@@ -22391,7 +22391,7 @@ var require_lodash = __commonJSMin((exports, module2) => {
22391
22391
  object = this;
22392
22392
  methodNames = baseFunctions(source, keys(source));
22393
22393
  }
22394
- var chain2 = !(isObject5(options2) && "chain" in options2) || !!options2.chain, isFunc = isFunction(object);
22394
+ var chain2 = !(isObject5(options2) && "chain" in options2) || !!options2.chain, isFunc = isFunction2(object);
22395
22395
  arrayEach(methodNames, function(methodName) {
22396
22396
  var func = source[methodName];
22397
22397
  object[methodName] = func;
@@ -22726,7 +22726,7 @@ var require_lodash = __commonJSMin((exports, module2) => {
22726
22726
  lodash.isEqualWith = isEqualWith;
22727
22727
  lodash.isError = isError;
22728
22728
  lodash.isFinite = isFinite2;
22729
- lodash.isFunction = isFunction;
22729
+ lodash.isFunction = isFunction2;
22730
22730
  lodash.isInteger = isInteger;
22731
22731
  lodash.isLength = isLength;
22732
22732
  lodash.isMap = isMap2;
@@ -34920,10 +34920,10 @@ var require_type = __commonJSMin((exports) => {
34920
34920
  return Array.isArray(obj);
34921
34921
  }
34922
34922
  exports.isArray = isArray4;
34923
- function isFunction(func) {
34923
+ function isFunction2(func) {
34924
34924
  return typeof func === "function";
34925
34925
  }
34926
- exports.isFunction = isFunction;
34926
+ exports.isFunction = isFunction2;
34927
34927
  function isObject5(obj) {
34928
34928
  return obj !== null && typeof obj === "object";
34929
34929
  }
@@ -42490,10 +42490,10 @@ var require_util = __commonJSMin((exports) => {
42490
42490
  return objectToString(e) === "[object Error]" || e instanceof Error;
42491
42491
  }
42492
42492
  exports.isError = isError;
42493
- function isFunction(arg) {
42493
+ function isFunction2(arg) {
42494
42494
  return typeof arg === "function";
42495
42495
  }
42496
- exports.isFunction = isFunction;
42496
+ exports.isFunction = isFunction2;
42497
42497
  function isPrimitive(arg) {
42498
42498
  return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" || typeof arg === "undefined";
42499
42499
  }
@@ -43771,7 +43771,7 @@ var require_stringify = __commonJSMin((exports, module2) => {
43771
43771
  var {
43772
43772
  isArray: isArray4,
43773
43773
  isObject: isObject5,
43774
- isFunction,
43774
+ isFunction: isFunction2,
43775
43775
  isNumber,
43776
43776
  isString: isString3
43777
43777
  } = require_util();
@@ -43898,10 +43898,10 @@ var require_stringify = __commonJSMin((exports, module2) => {
43898
43898
  };
43899
43899
  function stringify(key, holder, gap) {
43900
43900
  let value = holder[key];
43901
- if (isObject5(value) && isFunction(value.toJSON)) {
43901
+ if (isObject5(value) && isFunction2(value.toJSON)) {
43902
43902
  value = value.toJSON(key);
43903
43903
  }
43904
- if (isFunction(replacer)) {
43904
+ if (isFunction2(replacer)) {
43905
43905
  value = replacer.call(holder, key, value);
43906
43906
  }
43907
43907
  switch (typeof value) {
@@ -43936,7 +43936,7 @@ var require_stringify = __commonJSMin((exports, module2) => {
43936
43936
  if (!indent_) {
43937
43937
  return JSON.stringify(value, replacer_);
43938
43938
  }
43939
- if (!isFunction(replacer_) && !isArray4(replacer_)) {
43939
+ if (!isFunction2(replacer_) && !isArray4(replacer_)) {
43940
43940
  replacer_ = null;
43941
43941
  }
43942
43942
  replacer = replacer_;
@@ -44059,13 +44059,20 @@ var require_install = __commonJSMin((exports) => {
44059
44059
  }));
44060
44060
  return promise;
44061
44061
  }
44062
- async function npmInstall(cwd, registryUrl) {
44062
+ async function npmInstall({
44063
+ cwd,
44064
+ registryUrl,
44065
+ ignoreScripts
44066
+ }) {
44063
44067
  const canUse = await (0, _env.canUseNpm)();
44064
44068
  if (canUse) {
44065
44069
  const params = ["install"];
44066
44070
  if (registryUrl) {
44067
44071
  params.push(`--registry=${registryUrl}`);
44068
44072
  }
44073
+ if (ignoreScripts) {
44074
+ params.push("--ignore-scripts");
44075
+ }
44069
44076
  return execaWithStreamLog("npm", params, {
44070
44077
  cwd,
44071
44078
  env: process.env
@@ -44073,13 +44080,20 @@ var require_install = __commonJSMin((exports) => {
44073
44080
  }
44074
44081
  throw new Error("please install npm first");
44075
44082
  }
44076
- async function yarnInstall(cwd, registryUrl) {
44083
+ async function yarnInstall({
44084
+ cwd,
44085
+ registryUrl,
44086
+ ignoreScripts
44087
+ }) {
44077
44088
  const canUse = await (0, _env.canUseYarn)();
44078
44089
  if (canUse) {
44079
44090
  const params = ["install"];
44080
44091
  if (registryUrl) {
44081
44092
  params.push(`--registry=${registryUrl}`);
44082
44093
  }
44094
+ if (ignoreScripts) {
44095
+ params.push("--ignore-scripts");
44096
+ }
44083
44097
  return execaWithStreamLog("yarn", params, {
44084
44098
  cwd,
44085
44099
  env: process.env
@@ -44087,13 +44101,20 @@ var require_install = __commonJSMin((exports) => {
44087
44101
  }
44088
44102
  throw new Error("please install yarn first");
44089
44103
  }
44090
- async function pnpmInstall(cwd, registryUrl) {
44104
+ async function pnpmInstall({
44105
+ cwd,
44106
+ registryUrl,
44107
+ ignoreScripts
44108
+ }) {
44091
44109
  const canUse = await (0, _env.canUsePnpm)();
44092
44110
  if (canUse) {
44093
44111
  const params = ["install"];
44094
44112
  if (registryUrl) {
44095
44113
  params.push(`--registry=${registryUrl}`);
44096
44114
  }
44115
+ if (ignoreScripts) {
44116
+ params.push("--ignore-scripts");
44117
+ }
44097
44118
  return execaWithStreamLog("pnpm", params, {
44098
44119
  cwd,
44099
44120
  env: process.env
@@ -44189,14 +44210,38 @@ var require_node = __commonJSMin((exports) => {
44189
44210
  _defineProperty2(this, "generatorCore", void 0);
44190
44211
  this.generatorCore = generatorCore;
44191
44212
  }
44192
- npmInstall(cwd = this.generatorCore.outputPath) {
44193
- return (0, _utils.npmInstall)(cwd);
44213
+ npmInstall({
44214
+ cwd,
44215
+ registryUrl,
44216
+ ignoreScripts
44217
+ }) {
44218
+ return (0, _utils.npmInstall)({
44219
+ cwd: cwd || this.generatorCore.outputPath,
44220
+ registryUrl,
44221
+ ignoreScripts
44222
+ });
44194
44223
  }
44195
- yarnInstall(cwd = this.generatorCore.outputPath) {
44196
- return (0, _utils.yarnInstall)(cwd);
44224
+ yarnInstall({
44225
+ cwd,
44226
+ registryUrl,
44227
+ ignoreScripts
44228
+ }) {
44229
+ return (0, _utils.yarnInstall)({
44230
+ cwd: cwd || this.generatorCore.outputPath,
44231
+ registryUrl,
44232
+ ignoreScripts
44233
+ });
44197
44234
  }
44198
- pnpmInstall(cwd = this.generatorCore.outputPath) {
44199
- return (0, _utils.pnpmInstall)(cwd);
44235
+ pnpmInstall({
44236
+ cwd,
44237
+ registryUrl,
44238
+ ignoreScripts
44239
+ }) {
44240
+ return (0, _utils.pnpmInstall)({
44241
+ cwd: cwd || this.generatorCore.outputPath,
44242
+ registryUrl,
44243
+ ignoreScripts
44244
+ });
44200
44245
  }
44201
44246
  };
44202
44247
  exports.NpmAPI = NpmAPI;
@@ -44982,11 +45027,11 @@ var require_utils3 = __commonJSMin((exports, module2) => {
44982
45027
  function isBlob(val) {
44983
45028
  return toString5.call(val) === "[object Blob]";
44984
45029
  }
44985
- function isFunction(val) {
45030
+ function isFunction2(val) {
44986
45031
  return toString5.call(val) === "[object Function]";
44987
45032
  }
44988
45033
  function isStream(val) {
44989
- return isObject5(val) && isFunction(val.pipe);
45034
+ return isObject5(val) && isFunction2(val.pipe);
44990
45035
  }
44991
45036
  function isURLSearchParams(val) {
44992
45037
  return typeof URLSearchParams !== "undefined" && val instanceof URLSearchParams;
@@ -45067,7 +45112,7 @@ var require_utils3 = __commonJSMin((exports, module2) => {
45067
45112
  isDate,
45068
45113
  isFile,
45069
45114
  isBlob,
45070
- isFunction,
45115
+ isFunction: isFunction2,
45071
45116
  isStream,
45072
45117
  isURLSearchParams,
45073
45118
  isStandardBrowserEnv,
@@ -52783,15 +52828,15 @@ var require_utils5 = __commonJSMin((exports) => {
52783
52828
  }
52784
52829
  var toString5 = Object.prototype.toString;
52785
52830
  exports.toString = toString5;
52786
- var isFunction = function isFunction2(value) {
52831
+ var isFunction2 = function isFunction3(value) {
52787
52832
  return typeof value === "function";
52788
52833
  };
52789
- if (isFunction(/x/)) {
52790
- exports.isFunction = isFunction = function(value) {
52834
+ if (isFunction2(/x/)) {
52835
+ exports.isFunction = isFunction2 = function(value) {
52791
52836
  return typeof value === "function" && toString5.call(value) === "[object Function]";
52792
52837
  };
52793
52838
  }
52794
- exports.isFunction = isFunction;
52839
+ exports.isFunction = isFunction2;
52795
52840
  var isArray4 = Array.isArray || function(value) {
52796
52841
  return value && typeof value === "object" ? toString5.call(value) === "[object Array]" : false;
52797
52842
  };
@@ -60858,14 +60903,14 @@ var require_isFunction = __commonJSMin((exports, module2) => {
60858
60903
  var funcTag = "[object Function]";
60859
60904
  var genTag = "[object GeneratorFunction]";
60860
60905
  var proxyTag = "[object Proxy]";
60861
- function isFunction(value) {
60906
+ function isFunction2(value) {
60862
60907
  if (!isObject5(value)) {
60863
60908
  return false;
60864
60909
  }
60865
60910
  var tag = baseGetTag(value);
60866
60911
  return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
60867
60912
  }
60868
- module2.exports = isFunction;
60913
+ module2.exports = isFunction2;
60869
60914
  });
60870
60915
  var require_coreJsData = __commonJSMin((exports, module2) => {
60871
60916
  var root = require_root();
@@ -60902,7 +60947,7 @@ var require_toSource = __commonJSMin((exports, module2) => {
60902
60947
  module2.exports = toSource;
60903
60948
  });
60904
60949
  var require_baseIsNative = __commonJSMin((exports, module2) => {
60905
- var isFunction = require_isFunction();
60950
+ var isFunction2 = require_isFunction();
60906
60951
  var isMasked = require_isMasked();
60907
60952
  var isObject5 = require_isObject();
60908
60953
  var toSource = require_toSource();
@@ -60917,7 +60962,7 @@ var require_baseIsNative = __commonJSMin((exports, module2) => {
60917
60962
  if (!isObject5(value) || isMasked(value)) {
60918
60963
  return false;
60919
60964
  }
60920
- var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
60965
+ var pattern = isFunction2(value) ? reIsNative : reIsHostCtor;
60921
60966
  return pattern.test(toSource(value));
60922
60967
  }
60923
60968
  module2.exports = baseIsNative;
@@ -61116,10 +61161,10 @@ var require_isLength = __commonJSMin((exports, module2) => {
61116
61161
  module2.exports = isLength;
61117
61162
  });
61118
61163
  var require_isArrayLike = __commonJSMin((exports, module2) => {
61119
- var isFunction = require_isFunction();
61164
+ var isFunction2 = require_isFunction();
61120
61165
  var isLength = require_isLength();
61121
61166
  function isArrayLike(value) {
61122
- return value != null && isLength(value.length) && !isFunction(value);
61167
+ return value != null && isLength(value.length) && !isFunction2(value);
61123
61168
  }
61124
61169
  module2.exports = isArrayLike;
61125
61170
  });
@@ -63032,10 +63077,10 @@ var require_isFunction2 = __commonJSMin((exports) => {
63032
63077
  "use strict";
63033
63078
  Object.defineProperty(exports, "__esModule", { value: true });
63034
63079
  exports.isFunction = void 0;
63035
- function isFunction(value) {
63080
+ function isFunction2(value) {
63036
63081
  return typeof value === "function";
63037
63082
  }
63038
- exports.isFunction = isFunction;
63083
+ exports.isFunction = isFunction2;
63039
63084
  });
63040
63085
  var require_createErrorClass = __commonJSMin((exports) => {
63041
63086
  "use strict";
@@ -97264,7 +97309,7 @@ var require_baseMergeDeep = __commonJSMin((exports, module2) => {
97264
97309
  var isArray4 = require_isArray();
97265
97310
  var isArrayLikeObject = require_isArrayLikeObject();
97266
97311
  var isBuffer = require_isBuffer();
97267
- var isFunction = require_isFunction();
97312
+ var isFunction2 = require_isFunction();
97268
97313
  var isObject5 = require_isObject();
97269
97314
  var isPlainObject = require_isPlainObject();
97270
97315
  var isTypedArray = require_isTypedArray();
@@ -97299,7 +97344,7 @@ var require_baseMergeDeep = __commonJSMin((exports, module2) => {
97299
97344
  newValue = objValue;
97300
97345
  if (isArguments(objValue)) {
97301
97346
  newValue = toPlainObject(objValue);
97302
- } else if (!isObject5(objValue) || isFunction(objValue)) {
97347
+ } else if (!isObject5(objValue) || isFunction2(objValue)) {
97303
97348
  newValue = initCloneObject(srcValue);
97304
97349
  }
97305
97350
  } else {
@@ -111259,7 +111304,7 @@ function getQuestionFromSchema(schema) {
111259
111304
  }
111260
111305
  var questions = fields.map(function(field) {
111261
111306
  var _field = properties[field], type = _field.type, title = _field.title, defaultValue = _field["default"], items = _field["enum"], fieldValidate = _field["x-validate"], extra = _objectWithoutProperties(_field, _excluded2);
111262
- if (type === "void") {
111307
+ if (type === "void" || type === "object") {
111263
111308
  return getQuestionFromSchema(properties[field], configValue, validateMap, initValue);
111264
111309
  }
111265
111310
  if (type !== "string" && type !== "number") {
@@ -111277,7 +111322,9 @@ function getQuestionFromSchema(schema) {
111277
111322
  break;
111278
111323
  }
111279
111324
  _context.next = 3;
111280
- return validate(input, fieldValidate);
111325
+ return validate(input, (0, import_lodash.isFunction)(fieldValidate) ? {
111326
+ validator: fieldValidate
111327
+ } : fieldValidate);
111281
111328
  case 3:
111282
111329
  _result = _context.sent;
111283
111330
  if (!((_result$error = _result.error) !== null && _result$error !== void 0 && _result$error.length)) {
@@ -111700,10 +111747,12 @@ var init_inquirer = __esmMin(() => {
111700
111747
  });
111701
111748
  var treeshaking_exports2 = {};
111702
111749
  __export2(treeshaking_exports2, {
111703
- CLIReader: () => CLIReader
111750
+ CLIReader: () => CLIReader,
111751
+ validate: () => validate
111704
111752
  });
111705
111753
  var init_treeshaking2 = __esmMin(() => {
111706
111754
  init_inquirer();
111755
+ init_esm4();
111707
111756
  });
111708
111757
  function getObjKeyMap(obj) {
111709
111758
  var prefix = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
@@ -112387,7 +112436,7 @@ var require_node8 = __commonJSMin((exports) => {
112387
112436
  }
112388
112437
  return true;
112389
112438
  }
112390
- async runInstall(command) {
112439
+ async runInstall(command, options2) {
112391
112440
  const {
112392
112441
  config: {
112393
112442
  packageManager,
@@ -112401,11 +112450,11 @@ var require_node8 = __commonJSMin((exports) => {
112401
112450
  if (command) {
112402
112451
  intallPromise = (0, _utils.execa)(command);
112403
112452
  } else if (packageManager === "pnpm") {
112404
- intallPromise = this.npmApi.pnpmInstall();
112453
+ intallPromise = this.npmApi.pnpmInstall(options2 || {});
112405
112454
  } else if (packageManager === "yarn") {
112406
- intallPromise = this.npmApi.yarnInstall();
112455
+ intallPromise = this.npmApi.yarnInstall(options2 || {});
112407
112456
  } else {
112408
- intallPromise = this.npmApi.npmInstall();
112457
+ intallPromise = this.npmApi.npmInstall(options2 || {});
112409
112458
  }
112410
112459
  try {
112411
112460
  await intallPromise;
@@ -112498,6 +112547,21 @@ var require_node8 = __commonJSMin((exports) => {
112498
112547
  throw new Error("run sub generator failed");
112499
112548
  }
112500
112549
  }
112550
+ mergeAnswers(answers, configValue) {
112551
+ const inputData = (0, _lodash.merge)(answers, configValue);
112552
+ this.generatorContext.config = (0, _lodash.merge)(this.generatorContext.config, inputData);
112553
+ return inputData;
112554
+ }
112555
+ async getInputBySchemaFunc(schemaFunc, configValue = {}, validateMap = {}, initValue = {}) {
112556
+ const reader = new _codesmithFormily.CLIReader({
112557
+ schema: schemaFunc(configValue),
112558
+ validateMap,
112559
+ initValue
112560
+ });
112561
+ reader.setAnswers(configValue);
112562
+ const answers = await reader.start();
112563
+ return this.mergeAnswers(answers, configValue);
112564
+ }
112501
112565
  async getInputBySchema(schema, configValue = {}, validateMap = {}, initValue = {}, type = "easy-form") {
112502
112566
  if (type === "easy-form") {
112503
112567
  const reader = new _easyFormCli.CliReader({
@@ -112508,9 +112572,7 @@ var require_node8 = __commonJSMin((exports) => {
112508
112572
  return new Promise((resolve, reject) => {
112509
112573
  reader.startQuestion({
112510
112574
  onComplete: (answers) => {
112511
- const inputData = (0, _lodash.merge)(answers, configValue);
112512
- this.generatorContext.config = (0, _lodash.merge)(this.generatorContext.config, inputData);
112513
- resolve(inputData);
112575
+ resolve(this.mergeAnswers(answers, configValue));
112514
112576
  },
112515
112577
  onError: (error) => {
112516
112578
  reject(error);
@@ -112524,10 +112586,11 @@ var require_node8 = __commonJSMin((exports) => {
112524
112586
  initValue
112525
112587
  });
112526
112588
  reader.setAnswers(configValue);
112527
- return reader.start();
112589
+ const answers = await reader.start();
112590
+ return this.mergeAnswers(answers, configValue);
112528
112591
  } else {
112529
- const result = await _inquirer.default.prompt((0, _transform.transformInquirerSchema)(schema, configValue, validateMap, initValue));
112530
- return _objectSpread(_objectSpread({}, configValue), result);
112592
+ const answers = await _inquirer.default.prompt((0, _transform.transformInquirerSchema)(schema, configValue, validateMap, initValue));
112593
+ return this.mergeAnswers(answers, configValue);
112531
112594
  }
112532
112595
  }
112533
112596
  };
@@ -113855,7 +113918,7 @@ var src_default = async (context, generator) => {
113855
113918
  generator.logger.debug(`context=${JSON.stringify(context)}`);
113856
113919
  generator.logger.debug(`context.data=${JSON.stringify(context.data)}`);
113857
113920
  await handleTemplateFile(context, generator, appApi);
113858
- await appApi.runInstall();
113921
+ await appApi.runInstall(void 0, { ignoreScripts: true });
113859
113922
  appApi.showSuccessInfo();
113860
113923
  generator.logger.debug(`forge @modern-js/ssg-generator succeed `);
113861
113924
  };
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "2.4.4",
14
+ "version": "2.4.5",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/index.js",
17
17
  "files": [
@@ -20,14 +20,14 @@
20
20
  ],
21
21
  "devDependencies": {
22
22
  "@babel/runtime": "^7.18.0",
23
- "@modern-js/codesmith": "1.6.1",
24
- "@modern-js/codesmith-api-app": "1.6.1",
25
- "@modern-js/codesmith-api-json": "1.6.1",
26
- "@modern-js/dependence-generator": "2.4.4",
27
- "@modern-js/generator-common": "2.4.4",
28
- "@modern-js/generator-utils": "2.4.4",
29
- "@scripts/build": "1.20.1",
30
- "@scripts/jest-config": "1.20.1",
23
+ "@modern-js/codesmith": "1.6.3",
24
+ "@modern-js/codesmith-api-app": "1.6.3",
25
+ "@modern-js/codesmith-api-json": "1.6.3",
26
+ "@modern-js/dependence-generator": "2.4.5",
27
+ "@modern-js/generator-common": "2.4.5",
28
+ "@modern-js/generator-utils": "2.4.5",
29
+ "@scripts/build": "1.21.0",
30
+ "@scripts/jest-config": "1.21.0",
31
31
  "@types/jest": "^27",
32
32
  "@types/node": "^14",
33
33
  "jest": "^27",