@modern-js/new-action 2.58.2 → 2.59.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.
- package/dist/cjs/module.js +2 -2
- package/dist/cjs/mwa.js +2 -2
- package/dist/cjs/run.js +1 -1
- package/dist/cjs/utils/index.js +1 -1
- package/dist/esm/module.js +4 -4
- package/dist/esm/mwa.js +3 -3
- package/dist/esm/run.js +1 -1
- package/dist/esm/utils/index.js +1 -1
- package/package.json +6 -6
package/dist/cjs/module.js
CHANGED
|
@@ -21,13 +21,13 @@ __export(module_exports, {
|
|
|
21
21
|
ModuleNewAction: () => ModuleNewAction
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(module_exports);
|
|
24
|
-
var import_lodash = require("@modern-js/utils/lodash");
|
|
25
24
|
var import_codesmith = require("@modern-js/codesmith");
|
|
26
25
|
var import_codesmith_formily = require("@modern-js/codesmith-formily");
|
|
27
26
|
var import_generator_common = require("@modern-js/generator-common");
|
|
28
27
|
var import_generator_utils = require("@modern-js/generator-utils");
|
|
29
|
-
var
|
|
28
|
+
var import_lodash = require("@modern-js/utils/lodash");
|
|
30
29
|
var import_constants = require("./constants");
|
|
30
|
+
var import_utils = require("./utils");
|
|
31
31
|
const ModuleNewAction = async (options) => {
|
|
32
32
|
const { locale = "zh", distTag = "", debug = false, registry = "", config = "{}", cwd = process.cwd(), needInstall = true } = options;
|
|
33
33
|
let UserConfig = {};
|
package/dist/cjs/mwa.js
CHANGED
|
@@ -21,13 +21,13 @@ __export(mwa_exports, {
|
|
|
21
21
|
MWANewAction: () => MWANewAction
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(mwa_exports);
|
|
24
|
-
var import_lodash = require("@modern-js/utils/lodash");
|
|
25
24
|
var import_codesmith = require("@modern-js/codesmith");
|
|
26
25
|
var import_codesmith_formily = require("@modern-js/codesmith-formily");
|
|
27
26
|
var import_generator_common = require("@modern-js/generator-common");
|
|
28
27
|
var import_generator_utils = require("@modern-js/generator-utils");
|
|
29
|
-
var
|
|
28
|
+
var import_lodash = require("@modern-js/utils/lodash");
|
|
30
29
|
var import_constants = require("./constants");
|
|
30
|
+
var import_utils = require("./utils");
|
|
31
31
|
const MWANewAction = async (options) => {
|
|
32
32
|
const { locale = "zh", distTag = "", debug = false, registry = "", config = "{}", cwd = process.cwd(), needInstall = true } = options;
|
|
33
33
|
let UserConfig = {};
|
package/dist/cjs/run.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
3
|
var import_commander = require("@modern-js/utils/commander");
|
|
4
|
-
var import_mwa = require("./mwa");
|
|
5
4
|
var import_module = require("./module");
|
|
5
|
+
var import_mwa = require("./mwa");
|
|
6
6
|
var import_utils = require("./utils");
|
|
7
7
|
const main = async () => {
|
|
8
8
|
const program = new import_commander.Command();
|
package/dist/cjs/utils/index.js
CHANGED
|
@@ -37,9 +37,9 @@ __export(utils_exports, {
|
|
|
37
37
|
});
|
|
38
38
|
module.exports = __toCommonJS(utils_exports);
|
|
39
39
|
var import_path = __toESM(require("path"));
|
|
40
|
-
var import_utils = require("@modern-js/utils");
|
|
41
40
|
var import_generator_common = require("@modern-js/generator-common");
|
|
42
41
|
var import_generator_utils = require("@modern-js/generator-utils");
|
|
42
|
+
var import_utils = require("@modern-js/utils");
|
|
43
43
|
const swap = (obj) => {
|
|
44
44
|
return Object.keys(obj).reduce((acc, key) => {
|
|
45
45
|
acc[obj[key]] = key;
|
package/dist/esm/module.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { merge } from "@modern-js/utils/lodash";
|
|
2
1
|
import { CodeSmith } from "@modern-js/codesmith";
|
|
3
2
|
import { FormilyAPI } from "@modern-js/codesmith-formily";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { ActionType, ModuleActionFunctions, ModuleActionFunctionsDependencies, ModuleActionFunctionsDevDependencies, ModuleActionFunctionsPeerDependencies, ModuleNewActionGenerators, ModuleNewActionPluginDependence, ModuleNewActionPluginName, Solution, getModuleNewActionSchema, i18n } from "@modern-js/generator-common";
|
|
4
|
+
import { getModernPluginVersion, getPackageManager } from "@modern-js/generator-utils";
|
|
5
|
+
import { merge } from "@modern-js/utils/lodash";
|
|
7
6
|
import { enableAlreadyText } from "./constants";
|
|
7
|
+
import { alreadyRepo, getGeneratorPath, hasEnabledFunction, usePluginNameExport } from "./utils";
|
|
8
8
|
const ModuleNewAction = async (options) => {
|
|
9
9
|
const { locale = "zh", distTag = "", debug = false, registry = "", config = "{}", cwd = process.cwd(), needInstall = true } = options;
|
|
10
10
|
let UserConfig = {};
|
package/dist/esm/mwa.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { merge } from "@modern-js/utils/lodash";
|
|
2
1
|
import { CodeSmith } from "@modern-js/codesmith";
|
|
3
2
|
import { FormilyAPI } from "@modern-js/codesmith-formily";
|
|
4
|
-
import {
|
|
3
|
+
import { ActionType, MWAActionFunctions, MWAActionFunctionsAppendTypeContent, MWAActionFunctionsDependencies, MWAActionFunctionsDevDependencies, MWAActionReactorAppendTypeContent, MWAActionReactors, MWAActionRefactorDependencies, MWANewActionGenerators, MWANewActionPluginDependence, MWANewActionPluginName, Solution, getMWANewActionSchema, i18n } from "@modern-js/generator-common";
|
|
5
4
|
import { getModernPluginVersion, getPackageManager } from "@modern-js/generator-utils";
|
|
6
|
-
import {
|
|
5
|
+
import { merge } from "@modern-js/utils/lodash";
|
|
7
6
|
import { enableAlreadyText } from "./constants";
|
|
7
|
+
import { alreadyRepo, getGeneratorPath, hasEnabledFunction, usePluginNameExport } from "./utils";
|
|
8
8
|
const MWANewAction = async (options) => {
|
|
9
9
|
const { locale = "zh", distTag = "", debug = false, registry = "", config = "{}", cwd = process.cwd(), needInstall = true } = options;
|
|
10
10
|
let UserConfig = {};
|
package/dist/esm/run.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { Command } from "@modern-js/utils/commander";
|
|
3
|
-
import { MWANewAction } from "./mwa";
|
|
4
3
|
import { ModuleNewAction } from "./module";
|
|
4
|
+
import { MWANewAction } from "./mwa";
|
|
5
5
|
import { getSolutionByDependance } from "./utils";
|
|
6
6
|
const main = async () => {
|
|
7
7
|
const program = new Command();
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import path from "path";
|
|
2
|
-
import { json5, semver } from "@modern-js/utils";
|
|
3
2
|
import { Solution, SolutionToolsMap } from "@modern-js/generator-common";
|
|
4
3
|
import { fs, getModernPluginVersion } from "@modern-js/generator-utils";
|
|
4
|
+
import { json5, semver } from "@modern-js/utils";
|
|
5
5
|
const swap = (obj) => {
|
|
6
6
|
return Object.keys(obj).reduce((acc, key) => {
|
|
7
7
|
acc[obj[key]] = key;
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.59.0",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"@modern-js/codesmith": "2.4.1",
|
|
37
37
|
"@modern-js/codesmith-formily": "2.4.1",
|
|
38
38
|
"@swc/helpers": "0.5.3",
|
|
39
|
-
"@modern-js/generator-common": "3.
|
|
40
|
-
"@modern-js/generator-utils": "3.
|
|
41
|
-
"@modern-js/utils": "2.
|
|
39
|
+
"@modern-js/generator-common": "3.5.0",
|
|
40
|
+
"@modern-js/generator-utils": "3.5.0",
|
|
41
|
+
"@modern-js/utils": "2.59.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/jest": "^29",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"jest": "^29",
|
|
47
47
|
"ts-node": "^10.9.1",
|
|
48
48
|
"typescript": "^5",
|
|
49
|
-
"@scripts/build": "2.
|
|
50
|
-
"@scripts/jest-config": "2.
|
|
49
|
+
"@scripts/build": "2.59.0",
|
|
50
|
+
"@scripts/jest-config": "2.59.0"
|
|
51
51
|
},
|
|
52
52
|
"sideEffects": false,
|
|
53
53
|
"publishConfig": {
|