@modern-js/repo-generator 0.0.0-next-20230202034424 → 0.0.0-next-20230206032306

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 +26 -24
  2. package/package.json +11 -11
package/dist/index.js CHANGED
@@ -35757,7 +35757,7 @@ var require_nodeEnv = __commonJS({
35757
35757
  });
35758
35758
  }
35759
35759
  exports.canUseNpm = canUseNpm3;
35760
- function canUseYarn3() {
35760
+ function canUseYarn2() {
35761
35761
  return __async(this, null, function* () {
35762
35762
  try {
35763
35763
  yield (0, compiled_1.execa)("yarn", ["--version"], { env: process.env });
@@ -35767,7 +35767,7 @@ var require_nodeEnv = __commonJS({
35767
35767
  }
35768
35768
  });
35769
35769
  }
35770
- exports.canUseYarn = canUseYarn3;
35770
+ exports.canUseYarn = canUseYarn2;
35771
35771
  function canUsePnpm3() {
35772
35772
  return __async(this, null, function* () {
35773
35773
  try {
@@ -44405,7 +44405,7 @@ var require_env = __commonJS({
44405
44405
  exports.canUseNpm = canUseNpm3;
44406
44406
  exports.canUseNvm = canUseNvm;
44407
44407
  exports.canUsePnpm = canUsePnpm3;
44408
- exports.canUseYarn = canUseYarn3;
44408
+ exports.canUseYarn = canUseYarn2;
44409
44409
  var _utils = require_dist();
44410
44410
  function canUseNvm() {
44411
44411
  return __async(this, null, function* () {
@@ -44432,7 +44432,7 @@ var require_env = __commonJS({
44432
44432
  }
44433
44433
  });
44434
44434
  }
44435
- function canUseYarn3() {
44435
+ function canUseYarn2() {
44436
44436
  return __async(this, null, function* () {
44437
44437
  try {
44438
44438
  yield (0, _utils.execa)("yarn", ["--version"], {
@@ -45468,14 +45468,14 @@ var require_packageManager = __commonJS({
45468
45468
  value: true
45469
45469
  });
45470
45470
  exports.canUsePnpm = canUsePnpm3;
45471
- exports.canUseYarn = canUseYarn3;
45471
+ exports.canUseYarn = canUseYarn2;
45472
45472
  exports.runInstall = runInstall;
45473
45473
  var _path = _interopRequireDefault(require("path"));
45474
45474
  var _utils = require_dist();
45475
45475
  function _interopRequireDefault(obj) {
45476
45476
  return obj && obj.__esModule ? obj : { default: obj };
45477
45477
  }
45478
- function canUseYarn3() {
45478
+ function canUseYarn2() {
45479
45479
  return __async(this, null, function* () {
45480
45480
  try {
45481
45481
  yield (0, _utils.execa)("yarn", ["--version"], {
@@ -45522,7 +45522,7 @@ var require_packageManager = __commonJS({
45522
45522
  params.push(`--registry=${registryUrl}`);
45523
45523
  }
45524
45524
  yield (0, _utils.execa)("pnpm", params, options);
45525
- } else if (yield canUseYarn3()) {
45525
+ } else if (yield canUseYarn2()) {
45526
45526
  const params = ["install", "--production", "--silent", "--ignore-scripts"];
45527
45527
  if (registryUrl) {
45528
45528
  params.push(`--registry=${registryUrl}`);
@@ -134212,12 +134212,14 @@ var require_node_env2 = __commonJS({
134212
134212
  "../../../toolkit/utils/dist/is/node-env.js"(exports) {
134213
134213
  "use strict";
134214
134214
  Object.defineProperty(exports, "__esModule", { value: true });
134215
- exports.isProdProfile = exports.isTest = exports.isProd = exports.isDev = void 0;
134216
- var isDev = () => process.env.NODE_ENV === "development";
134215
+ exports.isProdProfile = exports.isTest = exports.isProd = exports.isDev = exports.getNodeEnv = void 0;
134216
+ var getNodeEnv = () => process.env.NODE_ENV || "development";
134217
+ exports.getNodeEnv = getNodeEnv;
134218
+ var isDev = () => (0, exports.getNodeEnv)() === "development";
134217
134219
  exports.isDev = isDev;
134218
- var isProd = () => process.env.NODE_ENV === "production";
134220
+ var isProd = () => (0, exports.getNodeEnv)() === "production";
134219
134221
  exports.isProd = isProd;
134220
- var isTest = () => process.env.NODE_ENV === "test";
134222
+ var isTest = () => (0, exports.getNodeEnv)() === "test";
134221
134223
  exports.isTest = isTest;
134222
134224
  var isProdProfile = () => (0, exports.isProd)() && process.argv.includes("--profile");
134223
134225
  exports.isProdProfile = isProdProfile;
@@ -134360,10 +134362,10 @@ var require_is2 = __commonJS({
134360
134362
 
134361
134363
  // ../../../toolkit/utils/dist/compatRequire.js
134362
134364
  var require_compatRequire2 = __commonJS({
134363
- "../../../toolkit/utils/dist/compatRequire.js"(exports) {
134365
+ "../../../toolkit/utils/dist/compatRequire.js"(exports, module2) {
134364
134366
  "use strict";
134365
134367
  Object.defineProperty(exports, "__esModule", { value: true });
134366
- exports.cleanRequireCache = exports.requireExistModule = exports.dynamicImport = exports.compatRequire = void 0;
134368
+ exports.deleteRequireCache = exports.cleanRequireCache = exports.requireExistModule = exports.dynamicImport = exports.compatRequire = void 0;
134367
134369
  var findExists_1 = require_findExists2();
134368
134370
  var compatRequire = (filePath, interop = true) => {
134369
134371
  const mod = require(filePath);
@@ -134390,6 +134392,15 @@ var require_compatRequire2 = __commonJS({
134390
134392
  });
134391
134393
  };
134392
134394
  exports.cleanRequireCache = cleanRequireCache;
134395
+ function deleteRequireCache(path9) {
134396
+ if (require.cache[path9]) {
134397
+ delete require.cache[path9];
134398
+ }
134399
+ if (module2.children) {
134400
+ module2.children = module2.children.filter((item) => item.filename !== path9);
134401
+ }
134402
+ }
134403
+ exports.deleteRequireCache = deleteRequireCache;
134393
134404
  }
134394
134405
  });
134395
134406
 
@@ -134902,7 +134913,7 @@ var require_nodeEnv2 = __commonJS({
134902
134913
  });
134903
134914
  }
134904
134915
  exports.canUseNpm = canUseNpm3;
134905
- function canUseYarn3() {
134916
+ function canUseYarn2() {
134906
134917
  return __async(this, null, function* () {
134907
134918
  try {
134908
134919
  yield (0, compiled_1.execa)("yarn", ["--version"], { env: process.env });
@@ -134912,7 +134923,7 @@ var require_nodeEnv2 = __commonJS({
134912
134923
  }
134913
134924
  });
134914
134925
  }
134915
- exports.canUseYarn = canUseYarn3;
134926
+ exports.canUseYarn = canUseYarn2;
134916
134927
  function canUsePnpm3() {
134917
134928
  return __async(this, null, function* () {
134918
134929
  try {
@@ -138121,15 +138132,6 @@ function getPackageVersion(packageName, registry2) {
138121
138132
  spinner.stop();
138122
138133
  return stripAnsi2(result.stdout);
138123
138134
  }
138124
- if (yield (0, import_utils3.canUseYarn)()) {
138125
- const args = ["info", packageName, "version", "--silent"];
138126
- if (registry2) {
138127
- args.push(`--registry=${registry2}`);
138128
- }
138129
- const result = yield (0, import_utils3.execa)("yarn", args);
138130
- spinner.stop();
138131
- return stripAnsi2(result.stdout);
138132
- }
138133
138135
  if (yield (0, import_utils3.canUseNpm)()) {
138134
138136
  const args = ["view", packageName, "version"];
138135
138137
  if (registry2) {
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-next-20230202034424",
14
+ "version": "0.0.0-next-20230206032306",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/index.js",
17
17
  "files": [
@@ -26,16 +26,16 @@
26
26
  "@types/node": "^14",
27
27
  "jest": "^27",
28
28
  "typescript": "^4",
29
- "@modern-js/generator-utils": "0.0.0-next-20230202034424",
30
- "@modern-js/generator-plugin": "0.0.0-next-20230202034424",
31
- "@modern-js/module-generator": "0.0.0-next-20230202034424",
32
- "@modern-js/monorepo-generator": "0.0.0-next-20230202034424",
33
- "@modern-js/mwa-generator": "0.0.0-next-20230202034424",
34
- "@modern-js/utils": "0.0.0-next-20230202034424",
35
- "@modern-js/generator-common": "0.0.0-next-20230202034424",
36
- "@modern-js/base-generator": "0.0.0-next-20230202034424",
37
- "@scripts/build": "0.0.0-next-20230202034424",
38
- "@scripts/jest-config": "0.0.0-next-20230202034424"
29
+ "@modern-js/generator-common": "0.0.0-next-20230206032306",
30
+ "@modern-js/generator-utils": "0.0.0-next-20230206032306",
31
+ "@modern-js/module-generator": "0.0.0-next-20230206032306",
32
+ "@modern-js/monorepo-generator": "0.0.0-next-20230206032306",
33
+ "@modern-js/mwa-generator": "0.0.0-next-20230206032306",
34
+ "@modern-js/utils": "0.0.0-next-20230206032306",
35
+ "@modern-js/generator-plugin": "0.0.0-next-20230206032306",
36
+ "@modern-js/base-generator": "0.0.0-next-20230206032306",
37
+ "@scripts/build": "0.0.0-next-20230206032306",
38
+ "@scripts/jest-config": "0.0.0-next-20230206032306"
39
39
  },
40
40
  "sideEffects": false,
41
41
  "publishConfig": {