@modern-js/monorepo-tools 2.52.0 → 2.53.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.
@@ -21,17 +21,9 @@ __export(new_exports, {
21
21
  newCli: () => newCli
22
22
  });
23
23
  module.exports = __toCommonJS(new_exports);
24
- var import_utils = require("@modern-js/utils");
25
- var import_locale = require("../locale");
26
- const newCli = (program, locale) => {
27
- program.command("new").usage("[options]").description(import_locale.i18n.t(import_locale.localeKeys.command.new.describe)).option("--config-file <configFile>", import_locale.i18n.t(import_locale.localeKeys.command.shared.config)).option("--lang <lang>", import_locale.i18n.t(import_locale.localeKeys.command.new.lang)).option("-c, --config <config>", import_locale.i18n.t(import_locale.localeKeys.command.new.config)).option("-p, --plugin <plugin>", import_locale.i18n.t(import_locale.localeKeys.command.new.plugin), (val, memo) => {
28
- memo.push(val);
29
- return memo;
30
- }, []).option("-d, --debug", import_locale.i18n.t(import_locale.localeKeys.command.new.debug), false).option("--dist-tag <tag>", import_locale.i18n.t(import_locale.localeKeys.command.new.distTag)).option("--registry", import_locale.i18n.t(import_locale.localeKeys.command.new.registry)).option("--no-need-install", import_locale.i18n.t(import_locale.localeKeys.command.shared.noNeedInstall)).action(async (options) => {
31
- await (0, import_utils.newAction)({
32
- ...options,
33
- locale: options.lang || locale
34
- }, "monorepo");
24
+ const newCli = (program) => {
25
+ program.command("new").action(async () => {
26
+ console.warn("Monorepo tools not support new command. Please use npx @modern-js/create@latest to create project.");
35
27
  });
36
28
  };
37
29
  // Annotate the CommonJS export names for ESM import in node:
package/dist/cjs/index.js CHANGED
@@ -51,7 +51,7 @@ const monorepoTools = () => ({
51
51
  commands({ program }) {
52
52
  (0, import_cli.clearCli)(program, api);
53
53
  (0, import_cli.deployCli)(program, api);
54
- (0, import_cli.newCli)(program, locale);
54
+ (0, import_cli.newCli)(program);
55
55
  (0, import_cli.upgradeCli)(program);
56
56
  }
57
57
  };
@@ -1,14 +1,6 @@
1
- import { newAction } from "@modern-js/utils";
2
- import { i18n, localeKeys } from "../locale";
3
- const newCli = (program, locale) => {
4
- program.command("new").usage("[options]").description(i18n.t(localeKeys.command.new.describe)).option("--config-file <configFile>", i18n.t(localeKeys.command.shared.config)).option("--lang <lang>", i18n.t(localeKeys.command.new.lang)).option("-c, --config <config>", i18n.t(localeKeys.command.new.config)).option("-p, --plugin <plugin>", i18n.t(localeKeys.command.new.plugin), (val, memo) => {
5
- memo.push(val);
6
- return memo;
7
- }, []).option("-d, --debug", i18n.t(localeKeys.command.new.debug), false).option("--dist-tag <tag>", i18n.t(localeKeys.command.new.distTag)).option("--registry", i18n.t(localeKeys.command.new.registry)).option("--no-need-install", i18n.t(localeKeys.command.shared.noNeedInstall)).action(async (options) => {
8
- await newAction({
9
- ...options,
10
- locale: options.lang || locale
11
- }, "monorepo");
1
+ const newCli = (program) => {
2
+ program.command("new").action(async () => {
3
+ console.warn("Monorepo tools not support new command. Please use npx @modern-js/create@latest to create project.");
12
4
  });
13
5
  };
14
6
  export {
package/dist/esm/index.js CHANGED
@@ -26,7 +26,7 @@ const monorepoTools = () => ({
26
26
  commands({ program }) {
27
27
  clearCli(program, api);
28
28
  deployCli(program, api);
29
- newCli(program, locale);
29
+ newCli(program);
30
30
  upgradeCli(program);
31
31
  }
32
32
  };
@@ -1,2 +1,2 @@
1
1
  import type { Command } from '@modern-js/utils';
2
- export declare const newCli: (program: Command, locale?: string) => void;
2
+ export declare const newCli: (program: Command) => void;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.52.0",
18
+ "version": "2.53.0",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -43,12 +43,12 @@
43
43
  "md5": "^2.3.0",
44
44
  "p-map": "4.0.0",
45
45
  "@swc/helpers": "0.5.3",
46
- "@modern-js/core": "2.52.0",
47
- "@modern-js/plugin": "2.52.0",
48
- "@modern-js/plugin-changeset": "2.52.0",
49
- "@modern-js/plugin-i18n": "2.52.0",
50
- "@modern-js/plugin-lint": "2.52.0",
51
- "@modern-js/utils": "2.52.0"
46
+ "@modern-js/core": "2.53.0",
47
+ "@modern-js/plugin": "2.53.0",
48
+ "@modern-js/plugin-lint": "2.53.0",
49
+ "@modern-js/plugin-changeset": "2.53.0",
50
+ "@modern-js/utils": "2.53.0",
51
+ "@modern-js/plugin-i18n": "2.53.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/jest": "^29",
@@ -56,8 +56,8 @@
56
56
  "@types/node": "^14",
57
57
  "jest": "^29",
58
58
  "typescript": "^5",
59
- "@scripts/build": "2.52.0",
60
- "@scripts/jest-config": "2.52.0"
59
+ "@scripts/build": "2.53.0",
60
+ "@scripts/jest-config": "2.53.0"
61
61
  },
62
62
  "sideEffects": false,
63
63
  "publishConfig": {