@modern-js/new-action 1.3.3 → 1.3.4
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/js/modern/module.js +2 -3
- package/dist/js/node/module.js +1 -2
- package/jest.config.js +0 -1
- package/package.json +3 -2
package/dist/js/modern/module.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _merge from "lodash/merge";
|
|
2
2
|
import { CodeSmith, GeneratorCore, MaterialsManager } from '@modern-js/codesmith';
|
|
3
3
|
import { AppAPI, forEach } from '@modern-js/codesmith-api-app';
|
|
4
|
-
import { i18n, ModuleNewActionSchema, ModuleActionFunctions, ModuleActionFunctionsDependencies, ModuleActionFunctionsDevDependencies, ModuleActionFunctionsPeerDependencies,
|
|
4
|
+
import { i18n, ModuleNewActionSchema, ModuleActionFunctions, ModuleActionFunctionsDependencies, ModuleActionFunctionsDevDependencies, ModuleActionFunctionsPeerDependencies, ModuleNewActionGenerators } from '@modern-js/generator-common';
|
|
5
5
|
import { getPackageVersion, getPackageManager } from '@modern-js/generator-utils';
|
|
6
6
|
import { alreadyRepo, hasEnabledFunction } from "./utils";
|
|
7
7
|
// eslint-disable-next-line max-statements
|
|
@@ -95,8 +95,7 @@ export const ModuleNewAction = async options => {
|
|
|
95
95
|
} : {},
|
|
96
96
|
peerDependencies: peerDependency ? {
|
|
97
97
|
[peerDependency]: `^${await getPackageVersion(peerDependency)}`
|
|
98
|
-
} : {}
|
|
99
|
-
appendTypeContent: ModuleActionFunctionsAppendTypeContent[action]
|
|
98
|
+
} : {}
|
|
100
99
|
});
|
|
101
100
|
|
|
102
101
|
const task = [{
|
package/dist/js/node/module.js
CHANGED
|
@@ -110,8 +110,7 @@ const ModuleNewAction = async options => {
|
|
|
110
110
|
} : {},
|
|
111
111
|
peerDependencies: peerDependency ? {
|
|
112
112
|
[peerDependency]: `^${await (0, _generatorUtils.getPackageVersion)(peerDependency)}`
|
|
113
|
-
} : {}
|
|
114
|
-
appendTypeContent: _generatorCommon.ModuleActionFunctionsAppendTypeContent[action]
|
|
113
|
+
} : {}
|
|
115
114
|
});
|
|
116
115
|
const task = [{
|
|
117
116
|
name: generator,
|
package/jest.config.js
CHANGED
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.3.
|
|
14
|
+
"version": "1.3.4",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -53,7 +53,8 @@
|
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"registry": "https://registry.npmjs.org/",
|
|
56
|
-
"access": "public"
|
|
56
|
+
"access": "public",
|
|
57
|
+
"types": "./dist/types/index.d.ts"
|
|
57
58
|
},
|
|
58
59
|
"scripts": {
|
|
59
60
|
"new": "modern new",
|