@modern-js/generator-utils 1.2.3 → 1.2.4

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,16 @@
1
1
  # @modern-js/generator-utils
2
2
 
3
+ ## 1.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 6b0bb5e3b: feat: bump codesmith version
8
+ - 69a728375: fix: remove exports.jsnext:source after publish
9
+ - Updated dependencies [cd7346b0d]
10
+ - Updated dependencies [69a728375]
11
+ - @modern-js/utils@1.7.2
12
+ - @modern-js/plugin-i18n@1.2.5
13
+
3
14
  ## 1.2.3
4
15
 
5
16
  ### Patch Changes
@@ -99,7 +99,7 @@ export function validatePackagePath(value, projectDir, options) {
99
99
  if (fs.existsSync(packageDir)) {
100
100
  return {
101
101
  success: false,
102
- error: i18n.t(localeKeys.pacakgePath.exit, {
102
+ error: i18n.t(localeKeys.packagePath.exit, {
103
103
  value
104
104
  })
105
105
  };
@@ -2,7 +2,7 @@ export const EN_LOCALE = {
2
2
  packageName: {
3
3
  exit: 'package name `{value}` is already exists'
4
4
  },
5
- pacakgePath: {
5
+ packagePath: {
6
6
  exit: 'package path {value} is already exists'
7
7
  }
8
8
  };
@@ -2,7 +2,7 @@ export const ZH_LOCALE = {
2
2
  packageName: {
3
3
  exit: '项目名称 {value} 已存在'
4
4
  },
5
- pacakgePath: {
5
+ packagePath: {
6
6
  exit: '目录 {value} 已存在'
7
7
  }
8
8
  };
@@ -197,7 +197,7 @@ function validatePackagePath(value, projectDir, options) {
197
197
  if (_utils.fs.existsSync(packageDir)) {
198
198
  return {
199
199
  success: false,
200
- error: _locale.i18n.t(_locale.localeKeys.pacakgePath.exit, {
200
+ error: _locale.i18n.t(_locale.localeKeys.packagePath.exit, {
201
201
  value
202
202
  })
203
203
  };
@@ -8,7 +8,7 @@ const EN_LOCALE = {
8
8
  packageName: {
9
9
  exit: 'package name `{value}` is already exists'
10
10
  },
11
- pacakgePath: {
11
+ packagePath: {
12
12
  exit: 'package path {value} is already exists'
13
13
  }
14
14
  };
@@ -8,7 +8,7 @@ const ZH_LOCALE = {
8
8
  packageName: {
9
9
  exit: '项目名称 {value} 已存在'
10
10
  },
11
- pacakgePath: {
11
+ packagePath: {
12
12
  exit: '目录 {value} 已存在'
13
13
  }
14
14
  };
@@ -2,7 +2,7 @@ export declare const EN_LOCALE: {
2
2
  packageName: {
3
3
  exit: string;
4
4
  };
5
- pacakgePath: {
5
+ packagePath: {
6
6
  exit: string;
7
7
  };
8
8
  };
@@ -4,14 +4,14 @@ declare const localeKeys: {
4
4
  packageName: {
5
5
  exit: string;
6
6
  };
7
- pacakgePath: {
7
+ packagePath: {
8
8
  exit: string;
9
9
  };
10
10
  } | {
11
11
  packageName: {
12
12
  exit: string;
13
13
  };
14
- pacakgePath: {
14
+ packagePath: {
15
15
  exit: string;
16
16
  };
17
17
  };
@@ -2,7 +2,7 @@ export declare const ZH_LOCALE: {
2
2
  packageName: {
3
3
  exit: string;
4
4
  };
5
- pacakgePath: {
5
+ packagePath: {
6
6
  exit: string;
7
7
  };
8
8
  };
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.2.3",
14
+ "version": "1.2.4",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -29,11 +29,11 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@babel/runtime": "^7",
32
- "@modern-js/plugin-i18n": "^1.2.4",
33
- "@modern-js/utils": "^1.6.0"
32
+ "@modern-js/plugin-i18n": "^1.2.5",
33
+ "@modern-js/utils": "^1.7.2"
34
34
  },
35
35
  "devDependencies": {
36
- "@modern-js/codesmith": "^1.0.8",
36
+ "@modern-js/codesmith": "^1.0.10",
37
37
  "@types/jest": "^26",
38
38
  "@types/node": "^14",
39
39
  "typescript": "^4",