@modern-js/new-action 1.21.2 → 2.0.0-beta.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/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @modern-js/new-action
2
2
 
3
+ ## 2.0.0-beta.0
4
+
5
+ ### Major Changes
6
+
7
+ - dda38c9: chore: v2
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [edd1cfb1a]
12
+ - Updated dependencies [cc971eabf]
13
+ - Updated dependencies [5b9049f]
14
+ - Updated dependencies [b8bbe036c]
15
+ - Updated dependencies [d5a31df78]
16
+ - Updated dependencies [dda38c9]
17
+ - Updated dependencies [3bbea92b2]
18
+ - Updated dependencies [abf3421]
19
+ - Updated dependencies [543be95]
20
+ - Updated dependencies [14b712d]
21
+ - @modern-js/utils@2.0.0-beta.0
22
+ - @modern-js/generator-common@3.0.0-beta.0
23
+ - @modern-js/generator-utils@3.0.0-beta.0
24
+
3
25
  ## 1.21.2
4
26
 
5
27
  ### Patch Changes
@@ -1,7 +1,13 @@
1
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2
+
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
+
5
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+
1
7
  import { merge } from '@modern-js/utils/lodash';
2
- import { CodeSmith, GeneratorCore, MaterialsManager } from '@modern-js/codesmith';
3
- import { AppAPI, forEach } from '@modern-js/codesmith-api-app';
4
- import { i18n, ModuleNewActionSchema, ModuleActionFunctions, ModuleActionFunctionsDependencies, ModuleActionFunctionsDevDependencies, ModuleActionFunctionsPeerDependencies, ModuleNewActionGenerators, Solution } from '@modern-js/generator-common';
8
+ import { CodeSmith } from '@modern-js/codesmith';
9
+ import { FormilyAPI } from '@modern-js/codesmith-formily';
10
+ import { i18n, getModuleNewActionSchema, ModuleActionFunctions, ModuleActionFunctionsDependencies, ModuleActionFunctionsDevDependencies, ModuleActionFunctionsPeerDependencies, ModuleNewActionGenerators, Solution } from '@modern-js/generator-common';
5
11
  import { getPackageManager, getModernPluginVersion } from '@modern-js/generator-utils';
6
12
  import { alreadyRepo, getGeneratorPath, hasEnabledFunction } from "./utils";
7
13
  export const ModuleNewAction = async options => {
@@ -33,29 +39,20 @@ export const ModuleNewAction = async options => {
33
39
  smith.logger.warn('not valid modern.js repo');
34
40
  }
35
41
 
36
- const mockGeneratorCore = new GeneratorCore({
37
- logger: smith.logger,
38
- materialsManager: new MaterialsManager(),
39
- outputPath: ''
40
- });
41
- const appAPI = new AppAPI({
42
+ const formilyAPI = new FormilyAPI({
42
43
  materials: {},
43
44
  config: {},
44
45
  data: {},
45
46
  current: null
46
- }, mockGeneratorCore);
47
+ });
47
48
  let hasOption = false;
48
- const schema = forEach(ModuleNewActionSchema, schemaItem => {
49
- if (ModuleActionFunctions.includes(schemaItem.key)) {
50
- const enable = hasEnabledFunction(schemaItem.key, ModuleActionFunctionsDependencies, ModuleActionFunctionsDevDependencies, ModuleActionFunctionsPeerDependencies, cwd);
51
- const {
52
- when
53
- } = schemaItem;
54
- schemaItem.when = enable ? () => false : when;
49
+ const funcMap = {};
50
+ ModuleActionFunctions.forEach(func => {
51
+ const enable = hasEnabledFunction(func, ModuleActionFunctionsDependencies, ModuleActionFunctionsDevDependencies, ModuleActionFunctionsPeerDependencies, cwd);
52
+ funcMap[func] = enable;
55
53
 
56
- if (!enable) {
57
- hasOption = true;
58
- }
54
+ if (!enable) {
55
+ hasOption = true;
59
56
  }
60
57
  });
61
58
 
@@ -65,7 +62,9 @@ export const ModuleNewAction = async options => {
65
62
  process.exit(1);
66
63
  }
67
64
 
68
- const ans = await appAPI.getInputBySchema(schema, UserConfig);
65
+ const ans = await formilyAPI.getInputBySchemaFunc(getModuleNewActionSchema, _objectSpread(_objectSpread({}, UserConfig), {}, {
66
+ funcMap
67
+ }));
69
68
  const actionType = ans.actionType;
70
69
  const action = ans[actionType];
71
70
  const generator = getGeneratorPath(ModuleNewActionGenerators[actionType][action], distTag);
@@ -80,7 +79,8 @@ export const ModuleNewAction = async options => {
80
79
 
81
80
  const getModulePluginVersion = packageName => {
82
81
  return getModernPluginVersion(Solution.Module, packageName, {
83
- registry
82
+ registry,
83
+ distTag
84
84
  });
85
85
  };
86
86
 
@@ -1,7 +1,13 @@
1
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2
+
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
+
5
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+
1
7
  import { merge } from '@modern-js/utils/lodash';
2
- import { CodeSmith, GeneratorCore, MaterialsManager } from '@modern-js/codesmith';
3
- import { AppAPI, forEach } from '@modern-js/codesmith-api-app';
4
- import { MWANewActionSchema, MWAActionFunctions, MWAActionFunctionsDependencies, MWAActionFunctionsAppendTypeContent, MWAActionFunctionsDevDependencies, MWANewActionGenerators, i18n, Solution } from '@modern-js/generator-common';
8
+ import { CodeSmith } from '@modern-js/codesmith';
9
+ import { FormilyAPI } from '@modern-js/codesmith-formily';
10
+ import { getMWANewActionSchema, MWAActionFunctions, MWAActionReactors, MWAActionFunctionsDependencies, MWAActionFunctionsAppendTypeContent, MWAActionReactorAppendTypeContent, MWAActionFunctionsDevDependencies, MWANewActionGenerators, i18n, Solution, MWAActionRefactorDependencies } from '@modern-js/generator-common';
5
11
  import { getModernPluginVersion, getPackageManager } from '@modern-js/generator-utils';
6
12
  import { alreadyRepo, getGeneratorPath, hasEnabledFunction } from "./utils";
7
13
  export const MWANewAction = async options => {
@@ -33,27 +39,26 @@ export const MWANewAction = async options => {
33
39
  smith.logger.warn('not valid modern.js repo');
34
40
  }
35
41
 
36
- const mockGeneratorCore = new GeneratorCore({
37
- logger: smith.logger,
38
- materialsManager: new MaterialsManager(),
39
- outputPath: ''
40
- });
41
- const appAPI = new AppAPI({
42
+ const formilyAPI = new FormilyAPI({
42
43
  materials: {},
43
44
  config: {},
44
45
  data: {},
45
46
  current: null
46
- }, mockGeneratorCore);
47
- const schema = forEach(MWANewActionSchema, schemaItem => {
48
- if (MWAActionFunctions.includes(schemaItem.key)) {
49
- const enable = hasEnabledFunction(schemaItem.key, MWAActionFunctionsDependencies, MWAActionFunctionsDevDependencies, {}, cwd);
50
- const {
51
- when
52
- } = schemaItem;
53
- schemaItem.when = enable ? () => false : when;
54
- }
55
47
  });
56
- const ans = await appAPI.getInputBySchema(schema, UserConfig);
48
+ const funcMap = {};
49
+ MWAActionFunctions.forEach(func => {
50
+ const enable = hasEnabledFunction(func, MWAActionFunctionsDependencies, MWAActionFunctionsDevDependencies, {}, cwd);
51
+ funcMap[func] = enable;
52
+ });
53
+ const refactorMap = {};
54
+ MWAActionReactors.forEach(refactor => {
55
+ const enable = hasEnabledFunction(refactor, MWAActionRefactorDependencies, {}, {}, cwd);
56
+ refactorMap[refactor] = enable;
57
+ });
58
+ const ans = await formilyAPI.getInputBySchemaFunc(getMWANewActionSchema, _objectSpread(_objectSpread({}, UserConfig), {}, {
59
+ funcMap,
60
+ refactorMap
61
+ }));
57
62
  const actionType = ans.actionType;
58
63
  const action = ans[actionType];
59
64
  const generator = getGeneratorPath(MWANewActionGenerators[actionType][action], distTag);
@@ -64,12 +69,13 @@ export const MWANewAction = async options => {
64
69
 
65
70
  const getMwaPluginVersion = packageName => {
66
71
  return getModernPluginVersion(Solution.MWA, packageName, {
67
- registry
72
+ registry,
73
+ distTag
68
74
  });
69
75
  };
70
76
 
71
77
  const devDependency = MWAActionFunctionsDevDependencies[action];
72
- const dependency = MWAActionFunctionsDependencies[action];
78
+ const dependency = MWAActionFunctionsDependencies[action] || MWAActionRefactorDependencies[action];
73
79
  const finalConfig = merge(UserConfig, ans, {
74
80
  locale: UserConfig.locale || locale,
75
81
  packageManager: UserConfig.packageManager || (await getPackageManager(cwd))
@@ -80,7 +86,7 @@ export const MWANewAction = async options => {
80
86
  dependencies: dependency ? {
81
87
  [dependency]: `${await getMwaPluginVersion(dependency)}`
82
88
  } : {},
83
- appendTypeContent: MWAActionFunctionsAppendTypeContent[action]
89
+ appendTypeContent: MWAActionFunctionsAppendTypeContent[action] || MWAActionReactorAppendTypeContent[action]
84
90
  });
85
91
  const task = [{
86
92
  name: generator,
@@ -0,0 +1,4 @@
1
+ import { MWANewAction } from ".";
2
+ MWANewAction({
3
+ locale: 'zh'
4
+ });
@@ -9,7 +9,7 @@ var _lodash = require("@modern-js/utils/lodash");
9
9
 
10
10
  var _codesmith = require("@modern-js/codesmith");
11
11
 
12
- var _codesmithApiApp = require("@modern-js/codesmith-api-app");
12
+ var _codesmithFormily = require("@modern-js/codesmith-formily");
13
13
 
14
14
  var _generatorCommon = require("@modern-js/generator-common");
15
15
 
@@ -17,6 +17,12 @@ var _generatorUtils = require("@modern-js/generator-utils");
17
17
 
18
18
  var _utils = require("./utils");
19
19
 
20
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
21
+
22
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
23
+
24
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
25
+
20
26
  const ModuleNewAction = async options => {
21
27
  const {
22
28
  locale = 'zh',
@@ -47,29 +53,21 @@ const ModuleNewAction = async options => {
47
53
  smith.logger.warn('not valid modern.js repo');
48
54
  }
49
55
 
50
- const mockGeneratorCore = new _codesmith.GeneratorCore({
51
- logger: smith.logger,
52
- materialsManager: new _codesmith.MaterialsManager(),
53
- outputPath: ''
54
- });
55
- const appAPI = new _codesmithApiApp.AppAPI({
56
+ const formilyAPI = new _codesmithFormily.FormilyAPI({
56
57
  materials: {},
57
58
  config: {},
58
59
  data: {},
59
60
  current: null
60
- }, mockGeneratorCore);
61
+ });
61
62
  let hasOption = false;
62
- const schema = (0, _codesmithApiApp.forEach)(_generatorCommon.ModuleNewActionSchema, schemaItem => {
63
- if (_generatorCommon.ModuleActionFunctions.includes(schemaItem.key)) {
64
- const enable = (0, _utils.hasEnabledFunction)(schemaItem.key, _generatorCommon.ModuleActionFunctionsDependencies, _generatorCommon.ModuleActionFunctionsDevDependencies, _generatorCommon.ModuleActionFunctionsPeerDependencies, cwd);
65
- const {
66
- when
67
- } = schemaItem;
68
- schemaItem.when = enable ? () => false : when;
69
-
70
- if (!enable) {
71
- hasOption = true;
72
- }
63
+ const funcMap = {};
64
+
65
+ _generatorCommon.ModuleActionFunctions.forEach(func => {
66
+ const enable = (0, _utils.hasEnabledFunction)(func, _generatorCommon.ModuleActionFunctionsDependencies, _generatorCommon.ModuleActionFunctionsDevDependencies, _generatorCommon.ModuleActionFunctionsPeerDependencies, cwd);
67
+ funcMap[func] = enable;
68
+
69
+ if (!enable) {
70
+ hasOption = true;
73
71
  }
74
72
  });
75
73
 
@@ -79,7 +77,9 @@ const ModuleNewAction = async options => {
79
77
  process.exit(1);
80
78
  }
81
79
 
82
- const ans = await appAPI.getInputBySchema(schema, UserConfig);
80
+ const ans = await formilyAPI.getInputBySchemaFunc(_generatorCommon.getModuleNewActionSchema, _objectSpread(_objectSpread({}, UserConfig), {}, {
81
+ funcMap
82
+ }));
83
83
  const actionType = ans.actionType;
84
84
  const action = ans[actionType];
85
85
  const generator = (0, _utils.getGeneratorPath)(_generatorCommon.ModuleNewActionGenerators[actionType][action], distTag);
@@ -94,7 +94,8 @@ const ModuleNewAction = async options => {
94
94
 
95
95
  const getModulePluginVersion = packageName => {
96
96
  return (0, _generatorUtils.getModernPluginVersion)(_generatorCommon.Solution.Module, packageName, {
97
- registry
97
+ registry,
98
+ distTag
98
99
  });
99
100
  };
100
101
 
@@ -9,7 +9,7 @@ var _lodash = require("@modern-js/utils/lodash");
9
9
 
10
10
  var _codesmith = require("@modern-js/codesmith");
11
11
 
12
- var _codesmithApiApp = require("@modern-js/codesmith-api-app");
12
+ var _codesmithFormily = require("@modern-js/codesmith-formily");
13
13
 
14
14
  var _generatorCommon = require("@modern-js/generator-common");
15
15
 
@@ -17,6 +17,12 @@ var _generatorUtils = require("@modern-js/generator-utils");
17
17
 
18
18
  var _utils = require("./utils");
19
19
 
20
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
21
+
22
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
23
+
24
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
25
+
20
26
  const MWANewAction = async options => {
21
27
  const {
22
28
  locale = 'zh',
@@ -47,27 +53,30 @@ const MWANewAction = async options => {
47
53
  smith.logger.warn('not valid modern.js repo');
48
54
  }
49
55
 
50
- const mockGeneratorCore = new _codesmith.GeneratorCore({
51
- logger: smith.logger,
52
- materialsManager: new _codesmith.MaterialsManager(),
53
- outputPath: ''
54
- });
55
- const appAPI = new _codesmithApiApp.AppAPI({
56
+ const formilyAPI = new _codesmithFormily.FormilyAPI({
56
57
  materials: {},
57
58
  config: {},
58
59
  data: {},
59
60
  current: null
60
- }, mockGeneratorCore);
61
- const schema = (0, _codesmithApiApp.forEach)(_generatorCommon.MWANewActionSchema, schemaItem => {
62
- if (_generatorCommon.MWAActionFunctions.includes(schemaItem.key)) {
63
- const enable = (0, _utils.hasEnabledFunction)(schemaItem.key, _generatorCommon.MWAActionFunctionsDependencies, _generatorCommon.MWAActionFunctionsDevDependencies, {}, cwd);
64
- const {
65
- when
66
- } = schemaItem;
67
- schemaItem.when = enable ? () => false : when;
68
- }
69
61
  });
70
- const ans = await appAPI.getInputBySchema(schema, UserConfig);
62
+ const funcMap = {};
63
+
64
+ _generatorCommon.MWAActionFunctions.forEach(func => {
65
+ const enable = (0, _utils.hasEnabledFunction)(func, _generatorCommon.MWAActionFunctionsDependencies, _generatorCommon.MWAActionFunctionsDevDependencies, {}, cwd);
66
+ funcMap[func] = enable;
67
+ });
68
+
69
+ const refactorMap = {};
70
+
71
+ _generatorCommon.MWAActionReactors.forEach(refactor => {
72
+ const enable = (0, _utils.hasEnabledFunction)(refactor, _generatorCommon.MWAActionRefactorDependencies, {}, {}, cwd);
73
+ refactorMap[refactor] = enable;
74
+ });
75
+
76
+ const ans = await formilyAPI.getInputBySchemaFunc(_generatorCommon.getMWANewActionSchema, _objectSpread(_objectSpread({}, UserConfig), {}, {
77
+ funcMap,
78
+ refactorMap
79
+ }));
71
80
  const actionType = ans.actionType;
72
81
  const action = ans[actionType];
73
82
  const generator = (0, _utils.getGeneratorPath)(_generatorCommon.MWANewActionGenerators[actionType][action], distTag);
@@ -78,12 +87,13 @@ const MWANewAction = async options => {
78
87
 
79
88
  const getMwaPluginVersion = packageName => {
80
89
  return (0, _generatorUtils.getModernPluginVersion)(_generatorCommon.Solution.MWA, packageName, {
81
- registry
90
+ registry,
91
+ distTag
82
92
  });
83
93
  };
84
94
 
85
95
  const devDependency = _generatorCommon.MWAActionFunctionsDevDependencies[action];
86
- const dependency = _generatorCommon.MWAActionFunctionsDependencies[action];
96
+ const dependency = _generatorCommon.MWAActionFunctionsDependencies[action] || _generatorCommon.MWAActionRefactorDependencies[action];
87
97
  const finalConfig = (0, _lodash.merge)(UserConfig, ans, {
88
98
  locale: UserConfig.locale || locale,
89
99
  packageManager: UserConfig.packageManager || (await (0, _generatorUtils.getPackageManager)(cwd))
@@ -94,7 +104,7 @@ const MWANewAction = async options => {
94
104
  dependencies: dependency ? {
95
105
  [dependency]: `${await getMwaPluginVersion(dependency)}`
96
106
  } : {},
97
- appendTypeContent: _generatorCommon.MWAActionFunctionsAppendTypeContent[action]
107
+ appendTypeContent: _generatorCommon.MWAActionFunctionsAppendTypeContent[action] || _generatorCommon.MWAActionReactorAppendTypeContent[action]
98
108
  });
99
109
  const task = [{
100
110
  name: generator,
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ var _ = require(".");
4
+
5
+ (0, _.MWANewAction)({
6
+ locale: 'zh'
7
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,5 @@
1
- import { ActionFunction } from '@modern-js/generator-common';
1
+ import { ActionFunction, ActionRefactor } from '@modern-js/generator-common';
2
2
  export declare function alreadyRepo(cwd?: string): boolean;
3
3
  export declare const readJson: (jsonPath: string) => any;
4
- export declare function hasEnabledFunction(action: ActionFunction, dependencies: Record<string, string>, devDependencies: Record<string, string>, peerDependencies: Record<string, string>, cwd: string): any;
4
+ export declare function hasEnabledFunction(action: ActionFunction | ActionRefactor, dependencies: Record<string, string>, devDependencies: Record<string, string>, peerDependencies: Record<string, string>, cwd: string): any;
5
5
  export declare function getGeneratorPath(generator: string, distTag: string): string;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.21.2",
14
+ "version": "2.0.0-beta.0",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -28,15 +28,15 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@babel/runtime": "^7.18.0",
31
- "@modern-js/codesmith": "1.6.3",
32
- "@modern-js/codesmith-api-app": "1.6.3",
33
- "@modern-js/generator-common": "2.4.7",
34
- "@modern-js/generator-utils": "2.4.7",
35
- "@modern-js/utils": "1.21.2"
31
+ "@modern-js/codesmith": "2.0.0",
32
+ "@modern-js/codesmith-formily": "2.0.0",
33
+ "@modern-js/generator-common": "3.0.0-beta.0",
34
+ "@modern-js/generator-utils": "3.0.0-beta.0",
35
+ "@modern-js/utils": "2.0.0-beta.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@scripts/build": "1.21.2",
39
- "@scripts/jest-config": "1.21.2",
38
+ "@scripts/build": "2.0.0-beta.0",
39
+ "@scripts/jest-config": "2.0.0-beta.0",
40
40
  "@types/jest": "^27",
41
41
  "@types/node": "^14",
42
42
  "jest": "^27",
@@ -52,32 +52,9 @@
52
52
  "registry": "https://registry.npmjs.org/",
53
53
  "access": "public"
54
54
  },
55
- "wireit": {
56
- "build": {
57
- "command": "modern build",
58
- "files": [
59
- "src/**/*",
60
- "tsconfig.json",
61
- "package.json"
62
- ],
63
- "output": [
64
- "dist/**/*"
65
- ]
66
- },
67
- "test": {
68
- "command": "jest --passWithNoTests",
69
- "files": [
70
- "src/**/*",
71
- "tsconfig.json",
72
- "package.json",
73
- "tests/**/*"
74
- ],
75
- "output": []
76
- }
77
- },
78
55
  "scripts": {
79
56
  "new": "modern new",
80
- "build": "wireit",
81
- "test": "wireit"
57
+ "build": "modern build",
58
+ "test": "jest --passWithNoTests"
82
59
  }
83
60
  }