@modern-js/storybook-next-generator 3.3.5 → 3.3.7
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 +27 -27
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -118404,12 +118404,12 @@ function _define_property(obj, key, value) {
|
|
|
118404
118404
|
return obj;
|
|
118405
118405
|
}
|
|
118406
118406
|
|
|
118407
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
118407
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
|
118408
118408
|
var import_utils12 = __toESM(require_cjs());
|
|
118409
118409
|
var import_lodash5 = __toESM(require_lodash2());
|
|
118410
118410
|
var import_comment_json = __toESM(require_src2());
|
|
118411
118411
|
|
|
118412
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.
|
|
118412
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.3/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/env.js
|
|
118413
118413
|
var import_utils = __toESM(require_cjs());
|
|
118414
118414
|
async function canUseNvm() {
|
|
118415
118415
|
try {
|
|
@@ -118459,7 +118459,7 @@ async function canUsePnpm() {
|
|
|
118459
118459
|
}
|
|
118460
118460
|
}
|
|
118461
118461
|
|
|
118462
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.
|
|
118462
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.3/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
|
|
118463
118463
|
var import_utils2 = __toESM(require_cjs());
|
|
118464
118464
|
function execaWithStreamLog(command, args, options) {
|
|
118465
118465
|
const promise = (0, import_utils2.execa)(command, args, {
|
|
@@ -118555,7 +118555,7 @@ async function pnpmInstall({ cwd, registryUrl, ignoreScripts, useNvm }) {
|
|
|
118555
118555
|
throw new Error("please install pnpm first");
|
|
118556
118556
|
}
|
|
118557
118557
|
|
|
118558
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.
|
|
118558
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.3/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
|
|
118559
118559
|
var NpmAPI = class {
|
|
118560
118560
|
npmInstall({ cwd, registryUrl, ignoreScripts }) {
|
|
118561
118561
|
return npmInstall({
|
|
@@ -118584,7 +118584,7 @@ var NpmAPI = class {
|
|
|
118584
118584
|
}
|
|
118585
118585
|
};
|
|
118586
118586
|
|
|
118587
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.
|
|
118587
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
|
|
118588
118588
|
var import_utils4 = __toESM(require_cjs());
|
|
118589
118589
|
async function canUseGit() {
|
|
118590
118590
|
try {
|
|
@@ -118659,7 +118659,7 @@ async function gitCommit(cwd, commitMessage) {
|
|
|
118659
118659
|
});
|
|
118660
118660
|
}
|
|
118661
118661
|
|
|
118662
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.
|
|
118662
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
|
|
118663
118663
|
var GitAPI = class {
|
|
118664
118664
|
async isInGitRepo(cwd = this.generatorCore.outputPath) {
|
|
118665
118665
|
const canUse = await canUseGit();
|
|
@@ -118711,11 +118711,11 @@ var GitAPI = class {
|
|
|
118711
118711
|
}
|
|
118712
118712
|
};
|
|
118713
118713
|
|
|
118714
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
118714
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
|
|
118715
118715
|
var import_path = __toESM(require("path"));
|
|
118716
118716
|
var FS_RESOURCE = "_codesmith_core_fs_resource";
|
|
118717
118717
|
|
|
118718
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
118718
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
|
|
118719
118719
|
var import_utils6 = __toESM(require_cjs());
|
|
118720
118720
|
async function fsExists(path6) {
|
|
118721
118721
|
try {
|
|
@@ -118726,7 +118726,7 @@ async function fsExists(path6) {
|
|
|
118726
118726
|
}
|
|
118727
118727
|
}
|
|
118728
118728
|
|
|
118729
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.
|
|
118729
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
|
|
118730
118730
|
var import_handlebars = __toESM(require_lib2());
|
|
118731
118731
|
function renderString(template, fullData, registers) {
|
|
118732
118732
|
const helpers = {
|
|
@@ -118740,7 +118740,7 @@ function renderString(template, fullData, registers) {
|
|
|
118740
118740
|
return import_handlebars.default.compile(template)(fullData) || "";
|
|
118741
118741
|
}
|
|
118742
118742
|
|
|
118743
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.
|
|
118743
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
|
|
118744
118744
|
var HandlebarsAPI = class {
|
|
118745
118745
|
async registerHelp(helpers) {
|
|
118746
118746
|
this.registers.helpers = {
|
|
@@ -118790,13 +118790,13 @@ var HandlebarsAPI = class {
|
|
|
118790
118790
|
}
|
|
118791
118791
|
};
|
|
118792
118792
|
|
|
118793
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.
|
|
118793
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
|
|
118794
118794
|
var import_ejs = __toESM(require_ejs());
|
|
118795
118795
|
function renderString2(template, fullData) {
|
|
118796
118796
|
return import_ejs.default.render(template, fullData) || "";
|
|
118797
118797
|
}
|
|
118798
118798
|
|
|
118799
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.
|
|
118799
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
|
|
118800
118800
|
var EjsAPI = class {
|
|
118801
118801
|
async renderTemplate(templateResource, target, parameters = {}) {
|
|
118802
118802
|
if (templateResource._type !== FS_RESOURCE) {
|
|
@@ -118829,7 +118829,7 @@ var EjsAPI = class {
|
|
|
118829
118829
|
}
|
|
118830
118830
|
};
|
|
118831
118831
|
|
|
118832
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.3.
|
|
118832
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.3.3_@modern-js+codesmith@2.3.3/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
|
|
118833
118833
|
var import_path2 = __toESM(require("path"));
|
|
118834
118834
|
var import_utils9 = __toESM(require_cjs());
|
|
118835
118835
|
var FsAPI = class {
|
|
@@ -128413,10 +128413,10 @@ var Schema = (
|
|
|
128413
128413
|
}()
|
|
128414
128414
|
);
|
|
128415
128415
|
|
|
128416
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
128416
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
|
|
128417
128417
|
var import_inquirer = __toESM(require_inquirer());
|
|
128418
128418
|
|
|
128419
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
128419
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
|
|
128420
128420
|
var import_lodash = __toESM(require_lodash2());
|
|
128421
128421
|
function validateSchema(schema) {
|
|
128422
128422
|
const { type, properties } = schema;
|
|
@@ -128508,7 +128508,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
|
|
|
128508
128508
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
|
128509
128509
|
}
|
|
128510
128510
|
|
|
128511
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
128511
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
|
|
128512
128512
|
var compileRule = (rule, scope) => {
|
|
128513
128513
|
const state = Schema.compile(rule, {
|
|
128514
128514
|
$self: {},
|
|
@@ -128612,7 +128612,7 @@ async function prompt(schema, configValue = {}, validateMap, initValue) {
|
|
|
128612
128612
|
return answers;
|
|
128613
128613
|
}
|
|
128614
128614
|
|
|
128615
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
128615
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
|
|
128616
128616
|
var CLIReader = class {
|
|
128617
128617
|
getAnswers() {
|
|
128618
128618
|
return this.answers;
|
|
@@ -128643,7 +128643,7 @@ var CLIReader = class {
|
|
|
128643
128643
|
}
|
|
128644
128644
|
};
|
|
128645
128645
|
|
|
128646
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
128646
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
|
128647
128647
|
var import_inquirer2 = __toESM(require_inquirer2());
|
|
128648
128648
|
|
|
128649
128649
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.37.2/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
|
@@ -128709,7 +128709,7 @@ var I18n = class {
|
|
|
128709
128709
|
}
|
|
128710
128710
|
};
|
|
128711
128711
|
|
|
128712
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
128712
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
|
|
128713
128713
|
var ZH_LOCALE = {
|
|
128714
128714
|
environment: {
|
|
128715
128715
|
node_version: "请升级 Node 版本至 LIS",
|
|
@@ -128736,7 +128736,7 @@ var ZH_LOCALE = {
|
|
|
128736
128736
|
}
|
|
128737
128737
|
};
|
|
128738
128738
|
|
|
128739
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
128739
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
|
|
128740
128740
|
var EN_LOCALE = {
|
|
128741
128741
|
environment: {
|
|
128742
128742
|
node_version: "please upgrade node to lts version",
|
|
@@ -128763,14 +128763,14 @@ var EN_LOCALE = {
|
|
|
128763
128763
|
}
|
|
128764
128764
|
};
|
|
128765
128765
|
|
|
128766
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
128766
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
|
|
128767
128767
|
var i18n = new I18n();
|
|
128768
128768
|
var localeKeys = i18n.init("zh", {
|
|
128769
128769
|
zh: ZH_LOCALE,
|
|
128770
128770
|
en: EN_LOCALE
|
|
128771
128771
|
});
|
|
128772
128772
|
|
|
128773
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
128773
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
|
|
128774
128774
|
var import_lodash4 = __toESM(require_lodash2());
|
|
128775
128775
|
function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
|
|
128776
128776
|
for (const question of questions) {
|
|
@@ -128798,7 +128798,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
|
|
|
128798
128798
|
return questions;
|
|
128799
128799
|
}
|
|
128800
128800
|
|
|
128801
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
128801
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
|
|
128802
128802
|
var import_path4 = __toESM(require("path"));
|
|
128803
128803
|
var import_utils11 = __toESM(require_cjs());
|
|
128804
128804
|
var NODE_MAJOR_VERSION_MAP = {
|
|
@@ -128846,7 +128846,7 @@ async function checkUseNvm(cwd, logger2) {
|
|
|
128846
128846
|
}
|
|
128847
128847
|
}
|
|
128848
128848
|
|
|
128849
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
128849
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
|
128850
128850
|
var AppAPI = class {
|
|
128851
128851
|
async checkEnvironment(nodeVersion) {
|
|
128852
128852
|
if (import_utils12.semver.lt(process.versions.node, nodeVersion || "12.22.12")) {
|
|
@@ -129086,11 +129086,11 @@ var AppAPI = class {
|
|
|
129086
129086
|
}
|
|
129087
129087
|
};
|
|
129088
129088
|
|
|
129089
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.
|
|
129089
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.3/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
|
|
129090
129090
|
var import_comment_json2 = __toESM(require_src2());
|
|
129091
129091
|
var declarationUpdate = __toESM(require_dist());
|
|
129092
129092
|
|
|
129093
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.
|
|
129093
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.3/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
|
|
129094
129094
|
async function editJson(generatorCore, resource, getNewJsonValue) {
|
|
129095
129095
|
const originJsonValue = await resource.value();
|
|
129096
129096
|
const newJsonString = await getNewJsonValue(originJsonValue.content);
|
|
@@ -129103,7 +129103,7 @@ async function editJson(generatorCore, resource, getNewJsonValue) {
|
|
|
129103
129103
|
return newJsonString;
|
|
129104
129104
|
}
|
|
129105
129105
|
|
|
129106
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.
|
|
129106
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.3/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
|
|
129107
129107
|
var JsonAPI = class {
|
|
129108
129108
|
async get(resource) {
|
|
129109
129109
|
const originJsonValue = await resource.value();
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.3.
|
|
18
|
+
"version": "3.3.7",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"files": [
|
|
@@ -23,19 +23,19 @@
|
|
|
23
23
|
"/dist/index.js"
|
|
24
24
|
],
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@modern-js/codesmith": "2.3.
|
|
27
|
-
"@modern-js/codesmith-api-app": "2.3.
|
|
28
|
-
"@modern-js/codesmith-api-json": "2.3.
|
|
26
|
+
"@modern-js/codesmith": "2.3.3",
|
|
27
|
+
"@modern-js/codesmith-api-app": "2.3.3",
|
|
28
|
+
"@modern-js/codesmith-api-json": "2.3.3",
|
|
29
29
|
"@types/jest": "^29",
|
|
30
30
|
"@types/node": "^14",
|
|
31
31
|
"jest": "^29",
|
|
32
32
|
"typescript": "^5",
|
|
33
|
-
"@modern-js/generator
|
|
34
|
-
"@modern-js/
|
|
35
|
-
"@
|
|
36
|
-
"@scripts/
|
|
37
|
-
"@
|
|
38
|
-
"@modern-js/
|
|
33
|
+
"@modern-js/dependence-generator": "3.3.7",
|
|
34
|
+
"@modern-js/generator-utils": "3.3.7",
|
|
35
|
+
"@modern-js/plugin-i18n": "2.46.0",
|
|
36
|
+
"@scripts/build": "2.46.0",
|
|
37
|
+
"@scripts/jest-config": "2.46.0",
|
|
38
|
+
"@modern-js/generator-common": "3.3.7"
|
|
39
39
|
},
|
|
40
40
|
"sideEffects": false,
|
|
41
41
|
"publishConfig": {
|