@modern-js/server-generator 3.5.0 → 3.6.1

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/dist/index.js CHANGED
@@ -52688,12 +52688,12 @@ __export(src_exports, {
52688
52688
  module.exports = __toCommonJS(src_exports);
52689
52689
  var import_path7 = __toESM(require("path"));
52690
52690
 
52691
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
52691
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.2/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
52692
52692
  var import_path = __toESM(require("path"));
52693
52693
  var import_utils = require("@modern-js/utils");
52694
52694
  var FS_RESOURCE = "_codesmith_core_fs_resource";
52695
52695
 
52696
- // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
52696
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith@2.4.2/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
52697
52697
  var import_utils2 = require("@modern-js/utils");
52698
52698
  async function fsExists(path7) {
52699
52699
  try {
@@ -52704,13 +52704,13 @@ async function fsExists(path7) {
52704
52704
  }
52705
52705
  }
52706
52706
 
52707
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.4.1_@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
52707
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.4.2_@modern-js+codesmith@2.4.2/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
52708
52708
  var import_ejs = __toESM(require_ejs());
52709
52709
  function renderString(template, fullData) {
52710
52710
  return import_ejs.default.render(template, fullData) || "";
52711
52711
  }
52712
52712
 
52713
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.4.1_@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
52713
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.4.2_@modern-js+codesmith@2.4.2/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
52714
52714
  var EjsAPI = class {
52715
52715
  async renderTemplate(templateResource, target, parameters = {}) {
52716
52716
  if (templateResource._type !== FS_RESOURCE) {
@@ -52742,7 +52742,7 @@ var EjsAPI = class {
52742
52742
  }
52743
52743
  };
52744
52744
 
52745
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.4.1_@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
52745
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.4.2_@modern-js+codesmith@2.4.2/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
52746
52746
  var import_path2 = __toESM(require("path"));
52747
52747
  var import_utils4 = require("@modern-js/utils");
52748
52748
  var FsAPI = class {
@@ -52769,7 +52769,7 @@ var FsAPI = class {
52769
52769
  }
52770
52770
  };
52771
52771
 
52772
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.4.1_@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
52772
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.4.2_@modern-js+codesmith@2.4.2/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
52773
52773
  var import_utils5 = require("@modern-js/utils");
52774
52774
  async function canUseGit() {
52775
52775
  try {
@@ -52844,7 +52844,7 @@ async function gitCommit(cwd, commitMessage) {
52844
52844
  });
52845
52845
  }
52846
52846
 
52847
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.4.1_@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
52847
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.4.2_@modern-js+codesmith@2.4.2/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
52848
52848
  var GitAPI = class {
52849
52849
  async isInGitRepo(cwd = this.generatorCore.outputPath) {
52850
52850
  const canUse = await canUseGit();
@@ -52894,7 +52894,7 @@ var GitAPI = class {
52894
52894
  }
52895
52895
  };
52896
52896
 
52897
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.4.1_@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
52897
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.4.2_@modern-js+codesmith@2.4.2/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
52898
52898
  var import_handlebars = __toESM(require_lib());
52899
52899
  function renderString2(template, fullData, registers) {
52900
52900
  const helpers = {
@@ -52908,7 +52908,7 @@ function renderString2(template, fullData, registers) {
52908
52908
  return import_handlebars.default.compile(template)(fullData) || "";
52909
52909
  }
52910
52910
 
52911
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.4.1_@modern-js+codesmith@2.4.1/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
52911
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.4.2_@modern-js+codesmith@2.4.2/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
52912
52912
  var HandlebarsAPI = class {
52913
52913
  async registerHelp(helpers) {
52914
52914
  this.registers.helpers = {
@@ -52956,7 +52956,7 @@ var HandlebarsAPI = class {
52956
52956
  }
52957
52957
  };
52958
52958
 
52959
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.4.1/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/env.js
52959
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.4.2/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/env.js
52960
52960
  var import_utils8 = require("@modern-js/utils");
52961
52961
  async function canUseNvm() {
52962
52962
  try {
@@ -53006,7 +53006,7 @@ async function canUsePnpm() {
53006
53006
  }
53007
53007
  }
53008
53008
 
53009
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.4.1/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
53009
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.4.2/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
53010
53010
  var import_utils9 = require("@modern-js/utils");
53011
53011
  function execaWithStreamLog(command, args, options) {
53012
53012
  const promise = (0, import_utils9.execa)(command, args, {
@@ -53102,7 +53102,7 @@ async function pnpmInstall({ cwd, registryUrl, ignoreScripts, useNvm }) {
53102
53102
  throw new Error("please install pnpm first");
53103
53103
  }
53104
53104
 
53105
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.4.1/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
53105
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.4.2/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
53106
53106
  var NpmAPI = class {
53107
53107
  npmInstall({ cwd, registryUrl, ignoreScripts }) {
53108
53108
  return npmInstall({
@@ -62686,10 +62686,10 @@ var Schema = (
62686
62686
  }()
62687
62687
  );
62688
62688
 
62689
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.4.1_@modern-js+codesmith@2.4.1_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
62689
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.4.2_@modern-js+codesmith@2.4.2_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
62690
62690
  var import_inquirer = __toESM(require_inquirer());
62691
62691
 
62692
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.4.1_@modern-js+codesmith@2.4.1_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
62692
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.4.2_@modern-js+codesmith@2.4.2_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
62693
62693
  var import_lodash = require("@modern-js/utils/lodash");
62694
62694
  function validateSchema(schema) {
62695
62695
  const { type, properties } = schema;
@@ -62781,7 +62781,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
62781
62781
  return getQuestionFromSchema(schema, configValue, validateMap, initValue);
62782
62782
  }
62783
62783
 
62784
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.4.1_@modern-js+codesmith@2.4.1_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
62784
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.4.2_@modern-js+codesmith@2.4.2_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
62785
62785
  var compileRule = (rule, scope) => {
62786
62786
  const state = Schema.compile(rule, {
62787
62787
  $self: {},
@@ -62885,7 +62885,7 @@ async function prompt(schema, configValue = {}, validateMap, initValue) {
62885
62885
  return answers;
62886
62886
  }
62887
62887
 
62888
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.4.1_@modern-js+codesmith@2.4.1_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
62888
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.4.2_@modern-js+codesmith@2.4.2_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
62889
62889
  var CLIReader = class {
62890
62890
  getAnswers() {
62891
62891
  return this.answers;
@@ -62914,7 +62914,7 @@ var CLIReader = class {
62914
62914
  }
62915
62915
  };
62916
62916
 
62917
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.1_@modern-js+codesmith@2.4.1_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
62917
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.2_@modern-js+codesmith@2.4.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
62918
62918
  var import_utils13 = require("@modern-js/utils");
62919
62919
  var import_lodash5 = require("@modern-js/utils/lodash");
62920
62920
  var import_comment_json = __toESM(require_src2());
@@ -62983,7 +62983,7 @@ var I18n = class {
62983
62983
  }
62984
62984
  };
62985
62985
 
62986
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.1_@modern-js+codesmith@2.4.1_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
62986
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.2_@modern-js+codesmith@2.4.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
62987
62987
  var EN_LOCALE = {
62988
62988
  environment: {
62989
62989
  node_version: "please upgrade node to lts version",
@@ -63010,7 +63010,7 @@ var EN_LOCALE = {
63010
63010
  }
63011
63011
  };
63012
63012
 
63013
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.1_@modern-js+codesmith@2.4.1_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
63013
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.2_@modern-js+codesmith@2.4.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
63014
63014
  var ZH_LOCALE = {
63015
63015
  environment: {
63016
63016
  node_version: "请升级 Node 版本至 LIS",
@@ -63037,14 +63037,14 @@ var ZH_LOCALE = {
63037
63037
  }
63038
63038
  };
63039
63039
 
63040
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.1_@modern-js+codesmith@2.4.1_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
63040
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.2_@modern-js+codesmith@2.4.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
63041
63041
  var i18n = new I18n();
63042
63042
  var localeKeys = i18n.init("zh", {
63043
63043
  zh: ZH_LOCALE,
63044
63044
  en: EN_LOCALE
63045
63045
  });
63046
63046
 
63047
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.1_@modern-js+codesmith@2.4.1_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
63047
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.2_@modern-js+codesmith@2.4.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
63048
63048
  var import_path4 = __toESM(require("path"));
63049
63049
  var import_utils12 = require("@modern-js/utils");
63050
63050
  var NODE_MAJOR_VERSION_MAP = {
@@ -63092,7 +63092,7 @@ async function checkUseNvm(cwd, logger2) {
63092
63092
  }
63093
63093
  }
63094
63094
 
63095
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.1_@modern-js+codesmith@2.4.1_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
63095
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.2_@modern-js+codesmith@2.4.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
63096
63096
  var import_lodash4 = require("@modern-js/utils/lodash");
63097
63097
  function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
63098
63098
  for (const question of questions) {
@@ -63120,7 +63120,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
63120
63120
  return questions;
63121
63121
  }
63122
63122
 
63123
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.1_@modern-js+codesmith@2.4.1_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
63123
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.4.2_@modern-js+codesmith@2.4.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
63124
63124
  var AppAPI = class {
63125
63125
  async checkEnvironment(nodeVersion) {
63126
63126
  if (import_utils13.semver.lt(process.versions.node, nodeVersion || "12.22.12")) {
@@ -63352,11 +63352,11 @@ var AppAPI = class {
63352
63352
  }
63353
63353
  };
63354
63354
 
63355
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.4.1/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
63355
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.4.2/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
63356
63356
  var import_comment_json2 = __toESM(require_src2());
63357
63357
  var declarationUpdate = __toESM(require_dist());
63358
63358
 
63359
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.4.1/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
63359
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.4.2/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
63360
63360
  async function editJson(generatorCore, resource, getNewJsonValue) {
63361
63361
  const originJsonValue = await resource.value();
63362
63362
  const newJsonString = await getNewJsonValue(originJsonValue.content);
@@ -63369,7 +63369,7 @@ async function editJson(generatorCore, resource, getNewJsonValue) {
63369
63369
  return newJsonString;
63370
63370
  }
63371
63371
 
63372
- // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.4.1/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
63372
+ // ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.4.2/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
63373
63373
  var JsonAPI = class {
63374
63374
  async get(resource) {
63375
63375
  const originJsonValue = await resource.value();
@@ -63381,27 +63381,27 @@ var JsonAPI = class {
63381
63381
  throw new Error("resource content is not a legal json");
63382
63382
  }
63383
63383
  }
63384
- async extend(resource, obj) {
63384
+ async extend(resource, obj, endWithNewLine = false) {
63385
63385
  await editJson(this.generatorCore, resource, async () => {
63386
63386
  const originJsonValue = await resource.value();
63387
63387
  try {
63388
63388
  const origin = import_comment_json2.default.parse(originJsonValue.content);
63389
63389
  const newObj = import_comment_json2.default.assign(origin, obj);
63390
63390
  const jsonIntent = 2;
63391
- return import_comment_json2.default.stringify(newObj, void 0, jsonIntent);
63391
+ return import_comment_json2.default.stringify(newObj, void 0, jsonIntent) + (endWithNewLine ? "\n" : "");
63392
63392
  } catch (e) {
63393
63393
  this.generatorCore.logger.debug("[JSON API] parse json error:", e);
63394
63394
  throw new Error("resource content is not a legal json");
63395
63395
  }
63396
63396
  });
63397
63397
  }
63398
- async update(resource, operation) {
63398
+ async update(resource, operation, endWithNewLine = false) {
63399
63399
  await editJson(this.generatorCore, resource, (text) => {
63400
63400
  try {
63401
63401
  const jsonContent = import_comment_json2.default.parse(text);
63402
63402
  declarationUpdate.query(jsonContent, operation.query, operation.update);
63403
63403
  const jsonIntent = 2;
63404
- return Promise.resolve(import_comment_json2.default.stringify(jsonContent, void 0, jsonIntent));
63404
+ return Promise.resolve(import_comment_json2.default.stringify(jsonContent, void 0, jsonIntent) + (endWithNewLine ? "\n" : ""));
63405
63405
  } catch (e) {
63406
63406
  this.generatorCore.logger.debug("[JSON API] parse json error:", e);
63407
63407
  throw new Error("resource content is not a legal json");
@@ -63830,7 +63830,7 @@ async function getModernPluginVersion(solution, packageName, options = {
63830
63830
  const version = await getPackageVersion(`${packageName}@${tag || distTag || "latest"}`, registry2);
63831
63831
  return version;
63832
63832
  };
63833
- if (!packageName.startsWith("@modern-js") || packageName.includes("electron") || packageName.includes("codesmith") || packageName.includes("easy-form") || packageName.startsWith("@modern-js-reduck")) {
63833
+ if (!packageName.startsWith("@modern-js") || packageName.includes("electron") || packageName.includes("codesmith") || packageName.includes("easy-form") || packageName.startsWith("@modern-js-reduck") || packageName.includes("eslint-config")) {
63834
63834
  return getLatetPluginVersion("latest");
63835
63835
  }
63836
63836
  let pkgPath = import_path6.default.join(require.resolve(SolutionToolsMap[solution], {
@@ -63928,7 +63928,8 @@ var handleTemplateFile = async (context, generator, appApi) => {
63928
63928
  include: [...tsconfigJSON.include || [], "server"]
63929
63929
  }
63930
63930
  }
63931
- }
63931
+ },
63932
+ true
63932
63933
  );
63933
63934
  }
63934
63935
  }
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.5.0",
18
+ "version": "3.6.1",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./src/index.ts",
21
21
  "main": "./dist/index.js",
@@ -24,21 +24,21 @@
24
24
  "/dist/index.js"
25
25
  ],
26
26
  "dependencies": {
27
- "@modern-js/utils": "2.59.0"
27
+ "@modern-js/utils": "2.60.1"
28
28
  },
29
29
  "devDependencies": {
30
- "@modern-js/codesmith": "2.4.1",
31
- "@modern-js/codesmith-api-app": "2.4.1",
32
- "@modern-js/codesmith-api-json": "2.4.1",
30
+ "@modern-js/codesmith": "2.4.2",
31
+ "@modern-js/codesmith-api-app": "2.4.2",
32
+ "@modern-js/codesmith-api-json": "2.4.2",
33
33
  "@types/jest": "^29",
34
34
  "@types/node": "^14",
35
35
  "jest": "^29",
36
36
  "typescript": "^5",
37
- "@modern-js/generator-common": "3.5.0",
38
- "@modern-js/generator-utils": "3.5.0",
39
- "@modern-js/dependence-generator": "3.5.0",
40
- "@scripts/build": "2.59.0",
41
- "@scripts/jest-config": "2.59.0"
37
+ "@modern-js/dependence-generator": "3.6.1",
38
+ "@modern-js/generator-utils": "3.6.1",
39
+ "@scripts/build": "2.60.1",
40
+ "@modern-js/generator-common": "3.6.1",
41
+ "@scripts/jest-config": "2.60.1"
42
42
  },
43
43
  "sideEffects": false,
44
44
  "publishConfig": {
package/src/index.ts CHANGED
@@ -95,6 +95,7 @@ const handleTemplateFile = async (
95
95
  },
96
96
  },
97
97
  },
98
+ true,
98
99
  );
99
100
  }
100
101
  }
@@ -1,4 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- extends: ['@modern-js'],
4
- };
@@ -1,8 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- extends: ['@modern-js'],
4
- parserOptions: {
5
- tsconfigRootDir: __dirname,
6
- project: require.resolve('../tsconfig.json'),
7
- },
8
- };