@modern-js/create 0.0.0-next-1680100535430 → 0.0.0-next-1680114730914

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 +9 -3
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -34981,12 +34981,17 @@ var require_commands = __commonJS({
34981
34981
  var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
34982
34982
  var commands_exports = {};
34983
34983
  __export2(commands_exports, {
34984
+ getArgv: () => getArgv,
34984
34985
  getCommand: () => getCommand,
34985
34986
  isDevCommand: () => isDevCommand
34986
34987
  });
34987
34988
  module2.exports = __toCommonJS2(commands_exports);
34989
+ var getArgv = () => {
34990
+ var _a;
34991
+ return (((_a = process.env.MODERN_ARGV) == null ? void 0 : _a.split(" ")) || process.argv).slice(2);
34992
+ };
34988
34993
  var getCommand = () => {
34989
- const args = process.argv.slice(2);
34994
+ const args = getArgv();
34990
34995
  const command = args[0];
34991
34996
  return command;
34992
34997
  };
@@ -37683,15 +37688,16 @@ var require_analyzeProject = __commonJS({
37683
37688
  });
37684
37689
  module2.exports = __toCommonJS2(analyzeProject_exports);
37685
37690
  var path4 = __toESM2(require("path"));
37691
+ var import_commands = require_commands();
37686
37692
  var import_compiled = require_compiled();
37687
37693
  var isApiOnly = (appDirectory, entryDir) => __async2(void 0, null, function* () {
37688
37694
  const srcDir = path4.join(appDirectory, entryDir != null ? entryDir : "src");
37689
37695
  const existSrc = yield import_compiled.fs.pathExists(srcDir);
37690
- const options = (0, import_compiled.minimist)(process.argv.slice(2));
37696
+ const options = (0, import_compiled.minimist)((0, import_commands.getArgv)());
37691
37697
  return !existSrc || Boolean(options["api-only"]);
37692
37698
  });
37693
37699
  var isWebOnly = () => __async2(void 0, null, function* () {
37694
- const options = (0, import_compiled.minimist)(process.argv.slice(2));
37700
+ const options = (0, import_compiled.minimist)((0, import_commands.getArgv)());
37695
37701
  return Boolean(options["web-only"]);
37696
37702
  });
37697
37703
  }
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-next-1680100535430",
14
+ "version": "0.0.0-next-1680114730914",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/index.js",
@@ -40,12 +40,12 @@
40
40
  "jest": "^29",
41
41
  "ts-node": "^10.1.0",
42
42
  "typescript": "^4",
43
- "@modern-js/generator-plugin-plugin": "0.0.0-next-1680100535430",
44
- "@modern-js/plugin-i18n": "0.0.0-next-1680100535430",
45
- "@modern-js/repo-generator": "0.0.0-next-1680100535430",
46
- "@modern-js/utils": "0.0.0-next-1680100535430",
47
- "@scripts/build": "0.0.0-next-1680100535430",
48
- "@scripts/jest-config": "0.0.0-next-1680100535430"
43
+ "@modern-js/generator-plugin-plugin": "0.0.0-next-1680114730914",
44
+ "@modern-js/plugin-i18n": "0.0.0-next-1680114730914",
45
+ "@modern-js/repo-generator": "0.0.0-next-1680114730914",
46
+ "@modern-js/utils": "0.0.0-next-1680114730914",
47
+ "@scripts/build": "0.0.0-next-1680114730914",
48
+ "@scripts/jest-config": "0.0.0-next-1680114730914"
49
49
  },
50
50
  "sideEffects": false,
51
51
  "publishConfig": {