@modern-js/create 1.22.2 → 1.22.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -75784,7 +75784,7 @@ function getDefaultConfig(projectDir = import_path.default.basename(process.cwd(
75784
75784
  return initialConfig;
75785
75785
  }
75786
75786
  async function createAction(projectDir, options3) {
75787
- const { debug, registry, distTag } = options3;
75787
+ const { debug, registry } = options3;
75788
75788
  const smith = new import_codesmith.CodeSmith({
75789
75789
  debug,
75790
75790
  registryUrl: registry
@@ -75801,8 +75801,8 @@ async function createAction(projectDir, options3) {
75801
75801
  let generator = REPO_GENERATOR;
75802
75802
  if (process.env.CODESMITH_ENV === "development") {
75803
75803
  generator = __require.resolve(REPO_GENERATOR);
75804
- } else if (distTag) {
75805
- generator = `${REPO_GENERATOR}@${distTag}`;
75804
+ } else if (config.distTag) {
75805
+ generator = `${REPO_GENERATOR}@${config.distTag}`;
75806
75806
  }
75807
75807
  const task = [
75808
75808
  {
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.22.2",
14
+ "version": "1.22.4",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/index.js",
@@ -40,12 +40,12 @@
40
40
  "jest": "^27",
41
41
  "ts-node": "^10.1.0",
42
42
  "typescript": "^4",
43
- "@modern-js/generator-plugin-plugin": "2.4.13",
44
- "@modern-js/plugin-i18n": "1.22.2",
45
- "@modern-js/repo-generator": "2.4.13",
46
- "@modern-js/utils": "1.22.2",
47
- "@scripts/build": "1.22.2",
48
- "@scripts/jest-config": "1.22.2"
43
+ "@modern-js/generator-plugin-plugin": "2.4.15",
44
+ "@modern-js/plugin-i18n": "1.22.4",
45
+ "@modern-js/repo-generator": "2.4.15",
46
+ "@modern-js/utils": "1.22.4",
47
+ "@scripts/build": "1.22.4",
48
+ "@scripts/jest-config": "1.22.4"
49
49
  },
50
50
  "sideEffects": false,
51
51
  "publishConfig": {