@modern-js/packages-generator 0.0.0-next-1680093705168 → 0.0.0-next-1680098769946

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 +3 -9
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -137746,17 +137746,12 @@ var require_commands = __commonJS({
137746
137746
  var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
137747
137747
  var commands_exports = {};
137748
137748
  __export2(commands_exports, {
137749
- getArgv: () => getArgv,
137750
137749
  getCommand: () => getCommand,
137751
137750
  isDevCommand: () => isDevCommand
137752
137751
  });
137753
137752
  module2.exports = __toCommonJS2(commands_exports);
137754
- var getArgv = () => {
137755
- var _a2;
137756
- return (((_a2 = process.env.MODERN_ARGV) == null ? void 0 : _a2.split(" ")) || process.argv).slice(2);
137757
- };
137758
137753
  var getCommand = () => {
137759
- const args = getArgv();
137754
+ const args = process.argv.slice(2);
137760
137755
  const command = args[0];
137761
137756
  return command;
137762
137757
  };
@@ -140453,16 +140448,15 @@ var require_analyzeProject2 = __commonJS({
140453
140448
  });
140454
140449
  module2.exports = __toCommonJS2(analyzeProject_exports);
140455
140450
  var path3 = __toESM2(require("path"));
140456
- var import_commands = require_commands();
140457
140451
  var import_compiled = require_compiled2();
140458
140452
  var isApiOnly = (appDirectory, entryDir) => __async2(void 0, null, function* () {
140459
140453
  const srcDir = path3.join(appDirectory, entryDir != null ? entryDir : "src");
140460
140454
  const existSrc = yield import_compiled.fs.pathExists(srcDir);
140461
- const options = (0, import_compiled.minimist)((0, import_commands.getArgv)());
140455
+ const options = (0, import_compiled.minimist)(process.argv.slice(2));
140462
140456
  return !existSrc || Boolean(options["api-only"]);
140463
140457
  });
140464
140458
  var isWebOnly = () => __async2(void 0, null, function* () {
140465
- const options = (0, import_compiled.minimist)((0, import_commands.getArgv)());
140459
+ const options = (0, import_compiled.minimist)(process.argv.slice(2));
140466
140460
  return Boolean(options["web-only"]);
140467
140461
  });
140468
140462
  }
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-next-1680093705168",
14
+ "version": "0.0.0-next-1680098769946",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/index.js",
17
17
  "files": [
@@ -27,10 +27,10 @@
27
27
  "@types/node": "^14",
28
28
  "jest": "^29",
29
29
  "typescript": "^4",
30
- "@modern-js/generator-common": "0.0.0-next-1680093705168",
31
- "@modern-js/generator-utils": "0.0.0-next-1680093705168",
32
- "@scripts/jest-config": "0.0.0-next-1680093705168",
33
- "@scripts/build": "0.0.0-next-1680093705168"
30
+ "@modern-js/generator-common": "0.0.0-next-1680098769946",
31
+ "@modern-js/generator-utils": "0.0.0-next-1680098769946",
32
+ "@scripts/jest-config": "0.0.0-next-1680098769946",
33
+ "@scripts/build": "0.0.0-next-1680098769946"
34
34
  },
35
35
  "sideEffects": false,
36
36
  "publishConfig": {