create-rstack 1.4.2 → 1.4.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.d.ts +2 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export declare function copyFolder({ from, to, version, packageName, isMergePack
|
|
|
27
27
|
skipFiles?: string[];
|
|
28
28
|
}): void;
|
|
29
29
|
|
|
30
|
-
export declare function create({ name, root, templates, skipFiles, getTemplateName, mapESLintTemplate, version, }: {
|
|
30
|
+
export declare function create({ name, root, templates, skipFiles, getTemplateName, mapESLintTemplate, version, noteInformation, }: {
|
|
31
31
|
name: string;
|
|
32
32
|
root: string;
|
|
33
33
|
skipFiles?: string[];
|
|
@@ -35,6 +35,7 @@ export declare function create({ name, root, templates, skipFiles, getTemplateNa
|
|
|
35
35
|
getTemplateName: (argv: Argv) => Promise<string>;
|
|
36
36
|
mapESLintTemplate: (templateName: string) => ESLintTemplateName | null;
|
|
37
37
|
version?: Record<string, string> | string;
|
|
38
|
+
noteInformation?: string[];
|
|
38
39
|
}): Promise<void>;
|
|
39
40
|
|
|
40
41
|
export declare type ESLintTemplateName = 'vanilla-js' | 'vanilla-ts' | 'react-js' | 'react-ts' | 'vue-ts' | 'vue-js' | 'svelte-js' | 'svelte-ts';
|
package/dist/index.js
CHANGED
|
@@ -1598,7 +1598,7 @@ function upperFirst(str) {
|
|
|
1598
1598
|
}
|
|
1599
1599
|
const readJSON = async (path)=>JSON.parse(await __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__["default"].promises.readFile(path, 'utf-8'));
|
|
1600
1600
|
const readPackageJson = async (filePath)=>readJSON(__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].join(filePath, 'package.json'));
|
|
1601
|
-
async function create({ name, root, templates, skipFiles, getTemplateName, mapESLintTemplate, version }) {
|
|
1601
|
+
async function create({ name, root, templates, skipFiles, getTemplateName, mapESLintTemplate, version, noteInformation }) {
|
|
1602
1602
|
const argv = minimist_default()(process.argv.slice(2), {
|
|
1603
1603
|
alias: {
|
|
1604
1604
|
h: 'help',
|
|
@@ -1692,7 +1692,7 @@ async function create({ name, root, templates, skipFiles, getTemplateName, mapES
|
|
|
1692
1692
|
await __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__["default"].promises.writeFile(biomeJsonPath, `${JSON.stringify(biomeJson, null, 2)}\n`, 'utf-8');
|
|
1693
1693
|
}
|
|
1694
1694
|
}
|
|
1695
|
-
const nextSteps = [
|
|
1695
|
+
const nextSteps = noteInformation?.length ? noteInformation : [
|
|
1696
1696
|
`1. ${picocolors_default().cyan(`cd ${targetDir}`)}`,
|
|
1697
1697
|
`2. ${picocolors_default().cyan('git init')} ${picocolors_default().dim('(optional)')}`,
|
|
1698
1698
|
`3. ${picocolors_default().cyan(`${pkgManager} install`)}`,
|