@modern-js/utils 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +16 -0
- package/compiled/ajv/types/vocabularies/errors.d.ts +1 -0
- package/compiled/ajv/{uri-js/dist/es5/uri.all.d.ts → uri-js.d.ts} +0 -0
- package/dist/commands.d.ts +2 -0
- package/dist/commands.js +14 -0
- package/dist/constants.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# @modern-js/utils
|
2
2
|
|
3
|
+
## 2.3.0
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- fd5a3ed: fix: failed to exit new command
|
8
|
+
|
9
|
+
fix: 修复 new 命令执行完成后未退出进程的问题
|
10
|
+
|
11
|
+
- 6ca1c0b: fix: .ejs is not a valid config file extension
|
12
|
+
|
13
|
+
fix: 修复配置文件使用 .ejs 作为后缀的问题
|
14
|
+
|
15
|
+
- 89b6739: fix(utils): fix pre-bundled ajv types
|
16
|
+
|
17
|
+
fix(utils): 修复预打包后的 ajv 中的类型问题
|
18
|
+
|
3
19
|
## 2.2.0
|
4
20
|
|
5
21
|
### Patch Changes
|
@@ -0,0 +1 @@
|
|
1
|
+
export type DefinedError = any;
|
File without changes
|
package/dist/commands.js
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isDevCommand = exports.getCommand = void 0;
|
4
|
+
const getCommand = () => {
|
5
|
+
const args = process.argv.slice(2);
|
6
|
+
const command = args[0];
|
7
|
+
return command;
|
8
|
+
};
|
9
|
+
exports.getCommand = getCommand;
|
10
|
+
const isDevCommand = () => {
|
11
|
+
const command = (0, exports.getCommand)();
|
12
|
+
return command === 'dev' || command === 'start';
|
13
|
+
};
|
14
|
+
exports.isDevCommand = isDevCommand;
|
package/dist/constants.js
CHANGED
@@ -43,7 +43,7 @@ exports.SHARED_DIR = 'shared';
|
|
43
43
|
* Modern.config.ts cached dir
|
44
44
|
*/
|
45
45
|
exports.CONFIG_CACHE_DIR = './node_modules/.cache/node-bundle-require';
|
46
|
-
exports.CONFIG_FILE_EXTENSIONS = ['.js', '.ts', '.
|
46
|
+
exports.CONFIG_FILE_EXTENSIONS = ['.js', '.ts', '.mjs'];
|
47
47
|
/**
|
48
48
|
* Serialized config path
|
49
49
|
*/
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./compiled"), exports);
|
18
|
+
__exportStar(require("./commands"), exports);
|
18
19
|
__exportStar(require("./format"), exports);
|
19
20
|
__exportStar(require("./FileSizeReporter"), exports);
|
20
21
|
__exportStar(require("./printBuildError"), exports);
|
package/package.json
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
"modern",
|
12
12
|
"modern.js"
|
13
13
|
],
|
14
|
-
"version": "2.
|
14
|
+
"version": "2.3.0",
|
15
15
|
"jsnext:source": "./src/index.ts",
|
16
16
|
"types": "./dist/index.d.ts",
|
17
17
|
"main": "./dist/index.js",
|
@@ -134,9 +134,9 @@
|
|
134
134
|
"jest": "^27",
|
135
135
|
"typescript": "^4",
|
136
136
|
"webpack": "^5.75.0",
|
137
|
-
"@modern-js/types": "2.
|
138
|
-
"@scripts/
|
139
|
-
"@scripts/
|
137
|
+
"@modern-js/types": "2.3.0",
|
138
|
+
"@scripts/build": "2.3.0",
|
139
|
+
"@scripts/jest-config": "2.3.0"
|
140
140
|
},
|
141
141
|
"sideEffects": false,
|
142
142
|
"scripts": {
|