@modern-js/generator-utils 1.2.7-alpha.0 → 1.4.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 +32 -5
- 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 +5 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,40 @@
|
|
|
1
1
|
# @modern-js/generator-utils
|
|
2
2
|
|
|
3
|
-
## 1.
|
|
3
|
+
## 1.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 52374e3: chore(generator): use module-tools bundle function to bundle generator package
|
|
8
|
+
|
|
9
|
+
chore(generator): 使用 module-tools 的 bundle 功能实现生成器打包
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [4fc801f]
|
|
14
|
+
- Updated dependencies [c8614b8]
|
|
15
|
+
- @modern-js/utils@1.8.0
|
|
16
|
+
|
|
17
|
+
## 1.3.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- 33cebd2: chore(generator-utils): tidy up `@modern-js/generator-utils` func
|
|
22
|
+
|
|
23
|
+
chore(generastor-utils): 整理 `@modern-js/generator-utils` 导出方法
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies [33cebd2]
|
|
28
|
+
- @modern-js/plugin-i18n@1.3.0
|
|
29
|
+
- @modern-js/utils@1.7.12
|
|
30
|
+
|
|
31
|
+
## 1.2.7
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
|
6
34
|
|
|
7
|
-
-
|
|
8
|
-
- Updated dependencies [
|
|
9
|
-
- @modern-js/utils@1.7.9
|
|
10
|
-
- @modern-js/plugin-i18n@1.2.8-alpha.0
|
|
35
|
+
- 341bb42: feat: bump codesmith package version
|
|
36
|
+
- Updated dependencies [a90bc96]
|
|
37
|
+
- @modern-js/utils@1.7.9
|
|
11
38
|
|
|
12
39
|
## 1.2.6
|
|
13
40
|
|
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,11 +11,10 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.
|
|
14
|
+
"version": "1.4.0",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
18
|
-
"module": "./dist/js/treeshaking/index.js",
|
|
19
18
|
"jsnext:modern": "./dist/js/modern/index.js",
|
|
20
19
|
"exports": {
|
|
21
20
|
".": {
|
|
@@ -24,16 +23,16 @@
|
|
|
24
23
|
"import": "./dist/js/modern/index.js",
|
|
25
24
|
"require": "./dist/js/node/index.js"
|
|
26
25
|
},
|
|
27
|
-
"default": "./dist/js/
|
|
26
|
+
"default": "./dist/js/node/index.js"
|
|
28
27
|
}
|
|
29
28
|
},
|
|
30
29
|
"dependencies": {
|
|
31
30
|
"@babel/runtime": "^7.18.0",
|
|
32
|
-
"@modern-js/plugin-i18n": "^1.
|
|
33
|
-
"@modern-js/utils": "^1.
|
|
31
|
+
"@modern-js/plugin-i18n": "^1.3.0",
|
|
32
|
+
"@modern-js/utils": "^1.8.0"
|
|
34
33
|
},
|
|
35
34
|
"devDependencies": {
|
|
36
|
-
"@modern-js/codesmith": "^1.
|
|
35
|
+
"@modern-js/codesmith": "^1.4.0",
|
|
37
36
|
"@types/jest": "^27",
|
|
38
37
|
"@types/node": "^14",
|
|
39
38
|
"typescript": "^4",
|