create-rstack 2.1.0 → 2.1.2
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 +10 -1
- package/dist/index.js +617 -617
- package/package.json +5 -5
- package/template-biome/package.json +1 -1
- package/template-eslint/react-js/package.json +2 -2
- package/template-eslint/react-ts/package.json +3 -3
- package/template-eslint/svelte-js/package.json +2 -2
- package/template-eslint/svelte-ts/package.json +3 -3
- package/template-eslint/vanilla-js/package.json +2 -2
- package/template-eslint/vanilla-ts/package.json +3 -3
- package/template-eslint/vue-js/package.json +2 -2
- package/template-eslint/vue-ts/package.json +3 -3
- package/template-rslint/AGENTS.md +4 -0
- package/template-rslint/{package.json → react-js/package.json} +2 -2
- package/template-rslint/react-js/rslint.config.ts +7 -0
- package/template-rslint/react-ts/package.json +11 -0
- package/template-rslint/react-ts/rslint.config.ts +14 -0
- package/template-rslint/vanilla-js/package.json +11 -0
- package/template-rslint/vanilla-js/rslint.config.ts +3 -0
- package/template-rslint/vanilla-ts/package.json +11 -0
- package/template-rslint/vanilla-ts/rslint.config.ts +3 -0
- package/template-rslint/rslint.config.ts +0 -3
package/dist/index.d.ts
CHANGED
|
@@ -91,7 +91,7 @@ export declare function copyFolder({ from, to, version, packageName, templatePar
|
|
|
91
91
|
skipFiles?: string[];
|
|
92
92
|
}): void;
|
|
93
93
|
|
|
94
|
-
export declare function create({ name, root, templates, skipFiles, getTemplateName, mapESLintTemplate, version, noteInformation, extraTools, extraSkills, argv: processArgv, }: {
|
|
94
|
+
export declare function create({ name, root, templates, skipFiles, getTemplateName, mapESLintTemplate, mapRslintTemplate, version, noteInformation, extraTools, extraSkills, argv: processArgv, }: {
|
|
95
95
|
name: string;
|
|
96
96
|
root: string;
|
|
97
97
|
skipFiles?: string[];
|
|
@@ -104,6 +104,13 @@ export declare function create({ name, root, templates, skipFiles, getTemplateNa
|
|
|
104
104
|
mapESLintTemplate?: (templateName: string, context: {
|
|
105
105
|
distFolder: string;
|
|
106
106
|
}) => ESLintTemplateName | null;
|
|
107
|
+
/**
|
|
108
|
+
* Map the template name to the Rslint template name.
|
|
109
|
+
* If not provided, reuses mapESLintTemplate and falls back to 'vanilla-ts'.
|
|
110
|
+
*/
|
|
111
|
+
mapRslintTemplate?: (templateName: string, context: {
|
|
112
|
+
distFolder: string;
|
|
113
|
+
}) => RslintTemplateName | null;
|
|
107
114
|
version?: Record<string, string> | string;
|
|
108
115
|
noteInformation?: string[];
|
|
109
116
|
/**
|
|
@@ -280,6 +287,8 @@ export declare function resolveNpmTemplate(packageName: string, version?: string
|
|
|
280
287
|
cacheDir?: string;
|
|
281
288
|
}): string;
|
|
282
289
|
|
|
290
|
+
export declare type RslintTemplateName = 'vanilla-js' | 'vanilla-ts' | 'react-js' | 'react-ts';
|
|
291
|
+
|
|
283
292
|
/**
|
|
284
293
|
* Sanitize package name and version to create a valid cache key
|
|
285
294
|
*/
|