@modern-js/create 1.22.1 → 1.22.3
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/dist/index.js +5 -3
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -75764,6 +75764,8 @@ function getDefaultConfig(projectDir = import_path.default.basename(process.cwd(
|
|
|
75764
75764
|
}
|
|
75765
75765
|
if (distTag) {
|
|
75766
75766
|
initialConfig.distTag = distTag;
|
|
75767
|
+
} else {
|
|
75768
|
+
initialConfig.distTag = "modern-1";
|
|
75767
75769
|
}
|
|
75768
75770
|
initialConfig.defaultBranch = initialConfig.defaultBranch || "main";
|
|
75769
75771
|
if (plugin) {
|
|
@@ -75782,7 +75784,7 @@ function getDefaultConfig(projectDir = import_path.default.basename(process.cwd(
|
|
|
75782
75784
|
return initialConfig;
|
|
75783
75785
|
}
|
|
75784
75786
|
async function createAction(projectDir, options3) {
|
|
75785
|
-
const { debug, registry
|
|
75787
|
+
const { debug, registry } = options3;
|
|
75786
75788
|
const smith = new import_codesmith.CodeSmith({
|
|
75787
75789
|
debug,
|
|
75788
75790
|
registryUrl: registry
|
|
@@ -75799,8 +75801,8 @@ async function createAction(projectDir, options3) {
|
|
|
75799
75801
|
let generator = REPO_GENERATOR;
|
|
75800
75802
|
if (process.env.CODESMITH_ENV === "development") {
|
|
75801
75803
|
generator = __require.resolve(REPO_GENERATOR);
|
|
75802
|
-
} else if (distTag) {
|
|
75803
|
-
generator = `${REPO_GENERATOR}@${distTag}`;
|
|
75804
|
+
} else if (config.distTag) {
|
|
75805
|
+
generator = `${REPO_GENERATOR}@${config.distTag}`;
|
|
75804
75806
|
}
|
|
75805
75807
|
const task = [
|
|
75806
75808
|
{
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.22.
|
|
14
|
+
"version": "1.22.3",
|
|
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.
|
|
44
|
-
"@modern-js/plugin-i18n": "1.22.
|
|
45
|
-
"@modern-js/repo-generator": "2.4.
|
|
46
|
-
"@modern-js/utils": "1.22.
|
|
47
|
-
"@scripts/build": "1.22.
|
|
48
|
-
"@scripts/jest-config": "1.22.
|
|
43
|
+
"@modern-js/generator-plugin-plugin": "2.4.14",
|
|
44
|
+
"@modern-js/plugin-i18n": "1.22.3",
|
|
45
|
+
"@modern-js/repo-generator": "2.4.14",
|
|
46
|
+
"@modern-js/utils": "1.22.3",
|
|
47
|
+
"@scripts/build": "1.22.3",
|
|
48
|
+
"@scripts/jest-config": "1.22.3"
|
|
49
49
|
},
|
|
50
50
|
"sideEffects": false,
|
|
51
51
|
"publishConfig": {
|