@modern-js/create 2.2.0 → 2.3.0

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 +23 -2
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -34711,6 +34711,26 @@ var require_compiled = __commonJS({
34711
34711
  }
34712
34712
  });
34713
34713
 
34714
+ // ../utils/dist/commands.js
34715
+ var require_commands = __commonJS({
34716
+ "../utils/dist/commands.js"(exports) {
34717
+ "use strict";
34718
+ Object.defineProperty(exports, "__esModule", { value: true });
34719
+ exports.isDevCommand = exports.getCommand = void 0;
34720
+ var getCommand = () => {
34721
+ const args = process.argv.slice(2);
34722
+ const command = args[0];
34723
+ return command;
34724
+ };
34725
+ exports.getCommand = getCommand;
34726
+ var isDevCommand = () => {
34727
+ const command = (0, exports.getCommand)();
34728
+ return command === "dev" || command === "start";
34729
+ };
34730
+ exports.isDevCommand = isDevCommand;
34731
+ }
34732
+ });
34733
+
34714
34734
  // ../utils/dist/format.js
34715
34735
  var require_format = __commonJS({
34716
34736
  "../utils/dist/format.js"(exports) {
@@ -35285,7 +35305,7 @@ var require_constants = __commonJS({
35285
35305
  exports.SERVER_DIR = "server";
35286
35306
  exports.SHARED_DIR = "shared";
35287
35307
  exports.CONFIG_CACHE_DIR = "./node_modules/.cache/node-bundle-require";
35288
- exports.CONFIG_FILE_EXTENSIONS = [".js", ".ts", ".ejs", ".mjs"];
35308
+ exports.CONFIG_FILE_EXTENSIONS = [".js", ".ts", ".mjs"];
35289
35309
  exports.OUTPUT_CONFIG_FILE = "modern.config.json";
35290
35310
  exports.DEFAULT_SERVER_CONFIG = "modern.server-runtime.config";
35291
35311
  exports.ROUTE_MINIFEST_FILE = "routes-manifest.json";
@@ -36865,6 +36885,7 @@ var require_dist = __commonJS({
36865
36885
  };
36866
36886
  Object.defineProperty(exports, "__esModule", { value: true });
36867
36887
  __exportStar(require_compiled(), exports);
36888
+ __exportStar(require_commands(), exports);
36868
36889
  __exportStar(require_format(), exports);
36869
36890
  __exportStar(require_FileSizeReporter(), exports);
36870
36891
  __exportStar(require_printBuildError(), exports);
@@ -76779,7 +76800,7 @@ var import_path2 = __toESM(require("path"));
76779
76800
  var import_codesmith = __toESM(require_node());
76780
76801
 
76781
76802
  // package.json
76782
- var version = "2.2.0";
76803
+ var version = "2.3.0";
76783
76804
 
76784
76805
  // ../../cli/plugin-i18n/dist/js/modern/index.js
76785
76806
  var import_lodash2 = __toESM(require_lodash2());
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "2.2.0",
14
+ "version": "2.3.0",
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": "^27",
41
41
  "ts-node": "^10.1.0",
42
42
  "typescript": "^4",
43
- "@modern-js/plugin-i18n": "2.2.0",
44
- "@modern-js/generator-plugin-plugin": "3.0.4",
45
- "@modern-js/utils": "2.2.0",
46
- "@modern-js/repo-generator": "3.0.4",
47
- "@scripts/build": "2.2.0",
48
- "@scripts/jest-config": "2.2.0"
43
+ "@modern-js/plugin-i18n": "2.3.0",
44
+ "@modern-js/repo-generator": "3.0.5",
45
+ "@modern-js/utils": "2.3.0",
46
+ "@modern-js/generator-plugin-plugin": "3.0.5",
47
+ "@scripts/jest-config": "2.3.0",
48
+ "@scripts/build": "2.3.0"
49
49
  },
50
50
  "sideEffects": false,
51
51
  "publishConfig": {