@modern-js/monorepo-tools 2.21.1 → 2.22.1
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 +36 -0
- package/dist/cjs/cli/build.js +3 -1
- package/dist/cjs/cli/buildWatch.js +3 -1
- package/dist/cjs/cli/clear.js +3 -1
- package/dist/cjs/cli/deploy.js +3 -1
- package/dist/cjs/cli/install.js +3 -1
- package/dist/cjs/cli/new.js +3 -1
- package/dist/cjs/commands/build.js +3 -1
- package/dist/cjs/commands/buildWatch.js +3 -1
- package/dist/cjs/commands/clear.js +3 -1
- package/dist/cjs/commands/deploy.js +3 -1
- package/dist/cjs/commands/install.js +3 -1
- package/dist/cjs/constants.js +6 -2
- package/dist/cjs/dag/create.js +3 -1
- package/dist/cjs/dag/edgeManager.js +3 -1
- package/dist/cjs/dag/index.js +3 -1
- package/dist/cjs/dag/operator.js +3 -1
- package/dist/cjs/dag/task.js +3 -1
- package/dist/cjs/dag/utils.js +12 -4
- package/dist/cjs/features/build/index.js +6 -2
- package/dist/cjs/features/clear/index.js +6 -2
- package/dist/cjs/features/deploy/index.js +3 -1
- package/dist/cjs/features/dev/cmds.js +3 -1
- package/dist/cjs/features/dev/createTask.js +6 -2
- package/dist/cjs/features/dev/index.js +3 -1
- package/dist/cjs/features/dev/watchProjectsState.js +3 -1
- package/dist/cjs/features/install/index.js +3 -1
- package/dist/cjs/hooks/index.js +3 -1
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/locale/en.js +3 -1
- package/dist/cjs/locale/index.js +6 -2
- package/dist/cjs/locale/zh.js +3 -1
- package/dist/cjs/log/error.js +3 -1
- package/dist/cjs/log/multiTasksLog.js +3 -1
- package/dist/cjs/log/time.js +9 -3
- package/dist/cjs/log/utils.js +3 -1
- package/dist/cjs/package/index.js +3 -1
- package/dist/cjs/parse-config/index.js +3 -1
- package/dist/cjs/parse-config/monorepo.js +15 -5
- package/dist/cjs/projects/checkProjectChange.js +15 -5
- package/dist/cjs/projects/clearMemoryFiles.js +3 -1
- package/dist/cjs/projects/getProjects.js +6 -2
- package/dist/cjs/projects/getProjectsByPackagesConfig.js +6 -2
- package/dist/cjs/projects/getProjectsByWorkspaceFile.js +6 -2
- package/dist/cjs/utils/install.js +6 -2
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @modern-js/monorepo-tools
|
|
2
2
|
|
|
3
|
+
## 2.22.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [e2848a2]
|
|
8
|
+
- Updated dependencies [a2dd693]
|
|
9
|
+
- Updated dependencies [b904b3a]
|
|
10
|
+
- Updated dependencies [d4045ed]
|
|
11
|
+
- Updated dependencies [1f02cd2]
|
|
12
|
+
- @modern-js/utils@2.22.1
|
|
13
|
+
- @modern-js/plugin-changeset@2.22.1
|
|
14
|
+
- @modern-js/core@2.22.1
|
|
15
|
+
- @modern-js/plugin-i18n@2.22.1
|
|
16
|
+
- @modern-js/plugin-lint@2.22.1
|
|
17
|
+
- @modern-js/new-action@2.22.1
|
|
18
|
+
- @modern-js/plugin@2.22.1
|
|
19
|
+
- @modern-js/upgrade@2.22.1
|
|
20
|
+
|
|
21
|
+
## 2.22.0
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [3d48836]
|
|
26
|
+
- Updated dependencies [7d1b96e]
|
|
27
|
+
- Updated dependencies [5050e8e]
|
|
28
|
+
- Updated dependencies [27618e4]
|
|
29
|
+
- Updated dependencies [b647c68]
|
|
30
|
+
- @modern-js/utils@2.22.0
|
|
31
|
+
- @modern-js/plugin-changeset@2.22.0
|
|
32
|
+
- @modern-js/core@2.22.0
|
|
33
|
+
- @modern-js/new-action@2.22.0
|
|
34
|
+
- @modern-js/upgrade@2.22.0
|
|
35
|
+
- @modern-js/plugin-i18n@2.22.0
|
|
36
|
+
- @modern-js/plugin-lint@2.22.0
|
|
37
|
+
- @modern-js/plugin@2.22.0
|
|
38
|
+
|
|
3
39
|
## 2.21.1
|
|
4
40
|
|
|
5
41
|
### Patch Changes
|
package/dist/cjs/cli/build.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "buildCli", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return buildCli;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _commands = require("../commands");
|
|
10
12
|
const buildCli = (program, api) => {
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "buildWatchCli", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return buildWatchCli;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _commands = require("../commands");
|
|
10
12
|
const buildWatchCli = (program, api) => {
|
package/dist/cjs/cli/clear.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "clearCli", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return clearCli;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _commands = require("../commands");
|
|
10
12
|
const clearCli = (program, api) => {
|
package/dist/cjs/cli/deploy.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "deployCli", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return deployCli;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _commands = require("../commands");
|
|
10
12
|
const deployCli = (program, api) => {
|
package/dist/cjs/cli/install.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "installCli", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return installCli;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _commands = require("../commands");
|
|
10
12
|
const installCli = (program, api) => {
|
package/dist/cjs/cli/new.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "newCli", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return newCli;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _newaction = require("@modern-js/new-action");
|
|
10
12
|
const _locale = require("../locale");
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "build", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return build;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _monorepo = require("../parse-config/monorepo");
|
|
10
12
|
const _build = require("../features/build");
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "buildWatch", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return buildWatch;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _monorepo = require("../parse-config/monorepo");
|
|
10
12
|
const _dev = require("../features/dev");
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "clear", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return clear;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _getProjects = require("../projects/getProjects");
|
|
10
12
|
const _monorepo = require("../parse-config/monorepo");
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "deploy", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return deploy;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _utils = require("@modern-js/utils");
|
|
10
12
|
const _dag = require("../dag");
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "install", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return install;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _install = require("../features/install");
|
|
10
12
|
const _monorepo = require("../parse-config/monorepo");
|
package/dist/cjs/constants.js
CHANGED
|
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
WORKSPACE_FILE: ()
|
|
14
|
-
|
|
13
|
+
WORKSPACE_FILE: function() {
|
|
14
|
+
return WORKSPACE_FILE;
|
|
15
|
+
},
|
|
16
|
+
LOCK_FILE: function() {
|
|
17
|
+
return LOCK_FILE;
|
|
18
|
+
}
|
|
15
19
|
});
|
|
16
20
|
const WORKSPACE_FILE = {
|
|
17
21
|
LERNA: "lerna.json",
|
package/dist/cjs/dag/create.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "create", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return create;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const initProjectDependencyAndDependent = (project, projectsName, projectsMap) => {
|
|
10
12
|
const dependencies = project.extra.dependencies || {};
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "EdgeManager", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return EdgeManager;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _define_property = require("@swc/helpers/_/_define_property");
|
|
10
12
|
class EdgeManager {
|
package/dist/cjs/dag/index.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "initDAG", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return initDAG;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _create = require("./create");
|
|
10
12
|
const _operator = require("./operator");
|
package/dist/cjs/dag/operator.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "DagOperator", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return DagOperator;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _define_property = require("@swc/helpers/_/_define_property");
|
|
10
12
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
package/dist/cjs/dag/task.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "TaskRunner", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return TaskRunner;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _define_property = require("@swc/helpers/_/_define_property");
|
|
10
12
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
package/dist/cjs/dag/utils.js
CHANGED
|
@@ -10,10 +10,18 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
calculateCriticalPaths: ()
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
calculateCriticalPaths: function() {
|
|
14
|
+
return calculateCriticalPaths;
|
|
15
|
+
},
|
|
16
|
+
recursiveGetDependency: function() {
|
|
17
|
+
return recursiveGetDependency;
|
|
18
|
+
},
|
|
19
|
+
sortProjects: function() {
|
|
20
|
+
return sortProjects;
|
|
21
|
+
},
|
|
22
|
+
findCircle: function() {
|
|
23
|
+
return findCircle;
|
|
24
|
+
}
|
|
17
25
|
});
|
|
18
26
|
const _error = require("../log/error");
|
|
19
27
|
const _edgeManager = require("./edgeManager");
|
|
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
runBuildTask: ()
|
|
14
|
-
|
|
13
|
+
runBuildTask: function() {
|
|
14
|
+
return runBuildTask;
|
|
15
|
+
},
|
|
16
|
+
runAllBuildTask: function() {
|
|
17
|
+
return runAllBuildTask;
|
|
18
|
+
}
|
|
15
19
|
});
|
|
16
20
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
17
21
|
const _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
|
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
defaultRemoveDirs: ()
|
|
14
|
-
|
|
13
|
+
defaultRemoveDirs: function() {
|
|
14
|
+
return defaultRemoveDirs;
|
|
15
|
+
},
|
|
16
|
+
runClearTask: function() {
|
|
17
|
+
return runClearTask;
|
|
18
|
+
}
|
|
15
19
|
});
|
|
16
20
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
17
21
|
const _path = /* @__PURE__ */ _interop_require_wildcard._(require("path"));
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "deploy", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return deploy;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
10
12
|
const _path = /* @__PURE__ */ _interop_require_wildcard._(require("path"));
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "defaultBuildWatchCmds", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return defaultBuildWatchCmds;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const defaultBuildWatchCmds = [
|
|
10
12
|
"dev",
|
|
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
createDependenciesTask: ()
|
|
14
|
-
|
|
13
|
+
createDependenciesTask: function() {
|
|
14
|
+
return createDependenciesTask;
|
|
15
|
+
},
|
|
16
|
+
createDevTask: function() {
|
|
17
|
+
return createDevTask;
|
|
18
|
+
}
|
|
15
19
|
});
|
|
16
20
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
17
21
|
const _utils = require("@modern-js/utils");
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "runBuildWatchTask", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return runBuildWatchTask;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
10
12
|
const _anymatch = /* @__PURE__ */ _interop_require_default._(require("anymatch"));
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "WatchedProjectsState", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return WatchedProjectsState;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _define_property = require("@swc/helpers/_/_define_property");
|
|
10
12
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "runInstallTask", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return runInstallTask;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
10
12
|
const _path = /* @__PURE__ */ _interop_require_wildcard._(require("path"));
|
package/dist/cjs/hooks/index.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "hooks", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return hooks;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _plugin = require("@modern-js/plugin");
|
|
10
12
|
const afterMonorepoDeploy = (0, _plugin.createAsyncWorkflow)();
|
package/dist/cjs/index.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "default", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return _default;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _export_star = require("@swc/helpers/_/_export_star");
|
|
10
12
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
package/dist/cjs/locale/en.js
CHANGED
package/dist/cjs/locale/index.js
CHANGED
|
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
i18n: ()
|
|
14
|
-
|
|
13
|
+
i18n: function() {
|
|
14
|
+
return i18n;
|
|
15
|
+
},
|
|
16
|
+
localeKeys: function() {
|
|
17
|
+
return localeKeys;
|
|
18
|
+
}
|
|
15
19
|
});
|
|
16
20
|
const _plugini18n = require("@modern-js/plugin-i18n");
|
|
17
21
|
const _zh = require("./zh");
|
package/dist/cjs/locale/zh.js
CHANGED
package/dist/cjs/log/error.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "errorLog", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return errorLog;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const errorLog = (...rest) => {
|
|
10
12
|
throw new Error(rest.join("\n"));
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "MultitasksLogger", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return MultitasksLogger;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _define_property = require("@swc/helpers/_/_define_property");
|
|
10
12
|
const _utils = require("@modern-js/utils");
|
package/dist/cjs/log/time.js
CHANGED
|
@@ -10,9 +10,15 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
initTimeLog: ()
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
initTimeLog: function() {
|
|
14
|
+
return initTimeLog;
|
|
15
|
+
},
|
|
16
|
+
startTime: function() {
|
|
17
|
+
return startTime;
|
|
18
|
+
},
|
|
19
|
+
endTime: function() {
|
|
20
|
+
return endTime;
|
|
21
|
+
}
|
|
16
22
|
});
|
|
17
23
|
const _utils = require("@modern-js/utils");
|
|
18
24
|
const initTimeLog = (option = {}) => new _utils.Signale({
|
package/dist/cjs/log/utils.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "formatLog", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return formatLog;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const formatLog = (log) => {
|
|
10
12
|
const strs = log.split(/\r\n|\n\r|\r|\n/g);
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "Package", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return Package;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _define_property = require("@swc/helpers/_/_define_property");
|
|
10
12
|
class Package {
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "getFinalConfig", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return getFinalConfig;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
10
12
|
const _path = /* @__PURE__ */ _interop_require_wildcard._(require("path"));
|
|
@@ -10,11 +10,21 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
findMonorepoRoot: ()
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
findMonorepoRoot: function() {
|
|
14
|
+
return findMonorepoRoot;
|
|
15
|
+
},
|
|
16
|
+
getWorkspaceFile: function() {
|
|
17
|
+
return getWorkspaceFile;
|
|
18
|
+
},
|
|
19
|
+
packageManagerFlag: function() {
|
|
20
|
+
return packageManagerFlag;
|
|
21
|
+
},
|
|
22
|
+
getPackageManager: function() {
|
|
23
|
+
return getPackageManager;
|
|
24
|
+
},
|
|
25
|
+
getMonorepoBaseData: function() {
|
|
26
|
+
return getMonorepoBaseData;
|
|
27
|
+
}
|
|
18
28
|
});
|
|
19
29
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
20
30
|
const _path = /* @__PURE__ */ _interop_require_wildcard._(require("path"));
|
|
@@ -10,11 +10,21 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
PROJECT_CONTENT_FILE_NAME: ()
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
PROJECT_CONTENT_FILE_NAME: function() {
|
|
14
|
+
return PROJECT_CONTENT_FILE_NAME;
|
|
15
|
+
},
|
|
16
|
+
MONOREPO_GIT_FILE_NAME: function() {
|
|
17
|
+
return MONOREPO_GIT_FILE_NAME;
|
|
18
|
+
},
|
|
19
|
+
PROJECT_MEMORY_PATH: function() {
|
|
20
|
+
return PROJECT_MEMORY_PATH;
|
|
21
|
+
},
|
|
22
|
+
checkProjectChangeByGit: function() {
|
|
23
|
+
return checkProjectChangeByGit;
|
|
24
|
+
},
|
|
25
|
+
checkProjectChangeByContent: function() {
|
|
26
|
+
return checkProjectChangeByContent;
|
|
27
|
+
}
|
|
18
28
|
});
|
|
19
29
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
20
30
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "clearProjectsMemoryFile", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return clearProjectsMemoryFile;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
10
12
|
const _path = /* @__PURE__ */ _interop_require_wildcard._(require("path"));
|
|
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
getProjects: ()
|
|
14
|
-
|
|
13
|
+
getProjects: function() {
|
|
14
|
+
return getProjects;
|
|
15
|
+
},
|
|
16
|
+
syncGetProjects: function() {
|
|
17
|
+
return syncGetProjects;
|
|
18
|
+
}
|
|
15
19
|
});
|
|
16
20
|
const _error = require("../log/error");
|
|
17
21
|
const _monorepo = require("../parse-config/monorepo");
|
|
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
getProjectsByPackageConfig: ()
|
|
14
|
-
|
|
13
|
+
getProjectsByPackageConfig: function() {
|
|
14
|
+
return getProjectsByPackageConfig;
|
|
15
|
+
},
|
|
16
|
+
syncGetProjectsByPackageConfig: function() {
|
|
17
|
+
return syncGetProjectsByPackageConfig;
|
|
18
|
+
}
|
|
15
19
|
});
|
|
16
20
|
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
17
21
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
getProjectsByWorkspaceFile: ()
|
|
14
|
-
|
|
13
|
+
getProjectsByWorkspaceFile: function() {
|
|
14
|
+
return getProjectsByWorkspaceFile;
|
|
15
|
+
},
|
|
16
|
+
syncGetProjectsByWorkspaceFile: function() {
|
|
17
|
+
return syncGetProjectsByWorkspaceFile;
|
|
18
|
+
}
|
|
15
19
|
});
|
|
16
20
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
17
21
|
const _path = /* @__PURE__ */ _interop_require_wildcard._(require("path"));
|
|
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
removeLockFile: ()
|
|
14
|
-
|
|
13
|
+
removeLockFile: function() {
|
|
14
|
+
return removeLockFile;
|
|
15
|
+
},
|
|
16
|
+
installByPackageManager: function() {
|
|
17
|
+
return installByPackageManager;
|
|
18
|
+
}
|
|
15
19
|
});
|
|
16
20
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
17
21
|
const _path = /* @__PURE__ */ _interop_require_wildcard._(require("path"));
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.22.1",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
"md5": "^2.3.0",
|
|
44
44
|
"p-map": "^4.0.0",
|
|
45
45
|
"@swc/helpers": "0.5.1",
|
|
46
|
-
"@modern-js/core": "2.
|
|
47
|
-
"@modern-js/new-action": "2.
|
|
48
|
-
"@modern-js/upgrade": "2.
|
|
49
|
-
"@modern-js/plugin": "2.
|
|
50
|
-
"@modern-js/plugin-changeset": "2.
|
|
51
|
-
"@modern-js/plugin-i18n": "2.
|
|
52
|
-
"@modern-js/plugin-lint": "2.
|
|
53
|
-
"@modern-js/utils": "2.
|
|
46
|
+
"@modern-js/core": "2.22.1",
|
|
47
|
+
"@modern-js/new-action": "2.22.1",
|
|
48
|
+
"@modern-js/upgrade": "2.22.1",
|
|
49
|
+
"@modern-js/plugin": "2.22.1",
|
|
50
|
+
"@modern-js/plugin-changeset": "2.22.1",
|
|
51
|
+
"@modern-js/plugin-i18n": "2.22.1",
|
|
52
|
+
"@modern-js/plugin-lint": "2.22.1",
|
|
53
|
+
"@modern-js/utils": "2.22.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/jest": "^29",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"@types/node": "^14",
|
|
59
59
|
"jest": "^29",
|
|
60
60
|
"typescript": "^5",
|
|
61
|
-
"@scripts/build": "2.
|
|
62
|
-
"@scripts/jest-config": "2.
|
|
61
|
+
"@scripts/build": "2.22.1",
|
|
62
|
+
"@scripts/jest-config": "2.22.1"
|
|
63
63
|
},
|
|
64
64
|
"sideEffects": false,
|
|
65
65
|
"publishConfig": {
|