sprawlify 0.1.1 → 0.1.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.mjs +3 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import { faker } from "@faker-js/faker";
|
|
|
10
10
|
import { cosmiconfig } from "cosmiconfig";
|
|
11
11
|
import { createMatchPath, loadConfig } from "tsconfig-paths";
|
|
12
12
|
//#region package.json
|
|
13
|
-
var version = "0.1.
|
|
13
|
+
var version = "0.1.3";
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/utils/file-helper.ts
|
|
16
16
|
const FILE_BACKUP_SUFFIX = ".bak";
|
|
@@ -3986,7 +3986,7 @@ async function runInit(options) {
|
|
|
3986
3986
|
preset: options.preset,
|
|
3987
3987
|
metaframework: options.metaframework,
|
|
3988
3988
|
tsx: true,
|
|
3989
|
-
|
|
3989
|
+
tailwind: { css: `${tailwindcss.cwd}/${tailwindcss.css}` },
|
|
3990
3990
|
aliases: {
|
|
3991
3991
|
components: "@/components",
|
|
3992
3992
|
utils: "@/lib/utils",
|
|
@@ -4215,6 +4215,7 @@ async function promptForMissingSelections(options, config) {
|
|
|
4215
4215
|
//#endregion
|
|
4216
4216
|
//#region src/registry/schema.ts
|
|
4217
4217
|
const rawConfigSchema = z.object({
|
|
4218
|
+
$schema: z.string().optional(),
|
|
4218
4219
|
preset: z.string(),
|
|
4219
4220
|
framework: z.string(),
|
|
4220
4221
|
tsx: z.coerce.boolean().default(true),
|
|
@@ -4278,7 +4279,6 @@ async function getRawConfig(cwd) {
|
|
|
4278
4279
|
return rawConfigSchema.parse(configResult.config);
|
|
4279
4280
|
} catch (error) {
|
|
4280
4281
|
const componentPath = `${cwd}/components.json`;
|
|
4281
|
-
if (error instanceof Error && error.message.includes("reserved registry")) throw error;
|
|
4282
4282
|
throw new Error(`Invalid configuration found in ${highlighter.info(componentPath)}.`);
|
|
4283
4283
|
}
|
|
4284
4284
|
}
|