@modern-js/generator-utils 1.2.7 → 1.3.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 +14 -0
- package/dist/js/modern/index.js +1 -1
- package/dist/js/node/index.js +7 -0
- package/dist/types/index.d.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @modern-js/generator-utils
|
|
2
2
|
|
|
3
|
+
## 1.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 33cebd2: chore(generator-utils): tidy up `@modern-js/generator-utils` func
|
|
8
|
+
|
|
9
|
+
chore(generastor-utils): 整理 `@modern-js/generator-utils` 导出方法
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [33cebd2]
|
|
14
|
+
- @modern-js/plugin-i18n@1.3.0
|
|
15
|
+
- @modern-js/utils@1.7.12
|
|
16
|
+
|
|
3
17
|
## 1.2.7
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/js/modern/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { fs, ora, execa, getMonorepoPackages, canUseNpm, canUsePnpm, canUseYarn
|
|
|
3
3
|
import { stripAnsi } from "./utils/strip-ansi";
|
|
4
4
|
import { i18n, localeKeys } from "./locale";
|
|
5
5
|
export * from "./utils";
|
|
6
|
-
export { fs, readTsConfigByFile, getPackageManager, canUseNpm, canUsePnpm, canUseYarn } from '@modern-js/utils';
|
|
6
|
+
export { fs, execa, readTsConfigByFile, getPackageManager, canUseNpm, canUsePnpm, canUseYarn } from '@modern-js/utils';
|
|
7
7
|
export { i18n } from "./locale";
|
|
8
8
|
export async function getPackageVersion(packageName, registry) {
|
|
9
9
|
const spinner = ora('Loading...').start();
|
package/dist/js/node/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var _exportNames = {
|
|
|
14
14
|
getModuleProjectPath: true,
|
|
15
15
|
getMWAProjectPath: true,
|
|
16
16
|
fs: true,
|
|
17
|
+
execa: true,
|
|
17
18
|
readTsConfigByFile: true,
|
|
18
19
|
getPackageManager: true,
|
|
19
20
|
canUseNpm: true,
|
|
@@ -39,6 +40,12 @@ Object.defineProperty(exports, "canUseYarn", {
|
|
|
39
40
|
return _utils.canUseYarn;
|
|
40
41
|
}
|
|
41
42
|
});
|
|
43
|
+
Object.defineProperty(exports, "execa", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () {
|
|
46
|
+
return _utils.execa;
|
|
47
|
+
}
|
|
48
|
+
});
|
|
42
49
|
Object.defineProperty(exports, "fs", {
|
|
43
50
|
enumerable: true,
|
|
44
51
|
get: function () {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GeneratorContext } from '@modern-js/codesmith';
|
|
2
2
|
export * from './utils';
|
|
3
|
-
export { fs, readTsConfigByFile, getPackageManager, canUseNpm, canUsePnpm, canUseYarn } from '@modern-js/utils';
|
|
3
|
+
export { fs, execa, readTsConfigByFile, getPackageManager, canUseNpm, canUsePnpm, canUseYarn } from '@modern-js/utils';
|
|
4
4
|
export { i18n } from './locale';
|
|
5
5
|
export declare function getPackageVersion(packageName: string, registry?: string): Promise<string>;
|
|
6
6
|
export declare function getPackageManagerText(packageManager: 'pnpm' | 'yarn' | 'npm'): string;
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.
|
|
14
|
+
"version": "1.3.0",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@babel/runtime": "^7.18.0",
|
|
32
|
-
"@modern-js/plugin-i18n": "^1.
|
|
33
|
-
"@modern-js/utils": "^1.7.
|
|
32
|
+
"@modern-js/plugin-i18n": "^1.3.0",
|
|
33
|
+
"@modern-js/utils": "^1.7.12"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@modern-js/codesmith": "^1.3.0",
|