create-ereo 0.2.4 → 0.2.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 +50 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -420,11 +420,28 @@ export default function HomePage() {
|
|
|
420
420
|
esModuleInterop: true,
|
|
421
421
|
skipLibCheck: true,
|
|
422
422
|
forceConsistentCasingInFileNames: true,
|
|
423
|
-
types: ["bun-types"]
|
|
423
|
+
types: ["bun-types"],
|
|
424
|
+
baseUrl: ".",
|
|
425
|
+
paths: {
|
|
426
|
+
"~/*": ["./app/*"],
|
|
427
|
+
"@/*": ["./app/*"]
|
|
428
|
+
}
|
|
424
429
|
},
|
|
425
430
|
include: ["app/**/*", "*.config.ts"]
|
|
426
431
|
};
|
|
427
432
|
await Bun.write(join(projectDir, "tsconfig.json"), JSON.stringify(tsconfig, null, 2));
|
|
433
|
+
} else {
|
|
434
|
+
const jsconfig = {
|
|
435
|
+
compilerOptions: {
|
|
436
|
+
baseUrl: ".",
|
|
437
|
+
paths: {
|
|
438
|
+
"~/*": ["./app/*"],
|
|
439
|
+
"@/*": ["./app/*"]
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
include: ["app/**/*"]
|
|
443
|
+
};
|
|
444
|
+
await Bun.write(join(projectDir, "jsconfig.json"), JSON.stringify(jsconfig, null, 2));
|
|
428
445
|
}
|
|
429
446
|
await Bun.write(join(projectDir, ".gitignore"), `node_modules
|
|
430
447
|
.ereo
|
|
@@ -516,13 +533,27 @@ export default defineConfig({
|
|
|
516
533
|
skipLibCheck: true,
|
|
517
534
|
forceConsistentCasingInFileNames: true,
|
|
518
535
|
types: ["bun-types"],
|
|
536
|
+
baseUrl: ".",
|
|
519
537
|
paths: {
|
|
520
|
-
"~/*": ["./app/*"]
|
|
538
|
+
"~/*": ["./app/*"],
|
|
539
|
+
"@/*": ["./app/*"]
|
|
521
540
|
}
|
|
522
541
|
},
|
|
523
542
|
include: ["app/**/*", "*.config.ts"]
|
|
524
543
|
};
|
|
525
544
|
await Bun.write(join(projectDir, "tsconfig.json"), JSON.stringify(tsconfig, null, 2));
|
|
545
|
+
} else {
|
|
546
|
+
const jsconfig = {
|
|
547
|
+
compilerOptions: {
|
|
548
|
+
baseUrl: ".",
|
|
549
|
+
paths: {
|
|
550
|
+
"~/*": ["./app/*"],
|
|
551
|
+
"@/*": ["./app/*"]
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
include: ["app/**/*"]
|
|
555
|
+
};
|
|
556
|
+
await Bun.write(join(projectDir, "jsconfig.json"), JSON.stringify(jsconfig, null, 2));
|
|
526
557
|
}
|
|
527
558
|
const tailwindConfig = `
|
|
528
559
|
/** @type {import('tailwindcss').Config} */
|
|
@@ -713,7 +744,7 @@ For production, alias \\\`@ereo/trace\\\` to \\\`@ereo/trace/noop\\\` \u2014 a 5
|
|
|
713
744
|
tags: ['ereo', 'tracing', 'devtools'],
|
|
714
745
|
},` : "";
|
|
715
746
|
const mockData = `
|
|
716
|
-
${ts ? `import type { Post } from '
|
|
747
|
+
${ts ? `import type { Post } from '~/lib/types';
|
|
717
748
|
` : ""}
|
|
718
749
|
/**
|
|
719
750
|
* Mock blog posts data.
|
|
@@ -2051,13 +2082,27 @@ export default defineConfig({
|
|
|
2051
2082
|
skipLibCheck: true,
|
|
2052
2083
|
forceConsistentCasingInFileNames: true,
|
|
2053
2084
|
types: ["bun-types"],
|
|
2085
|
+
baseUrl: ".",
|
|
2054
2086
|
paths: {
|
|
2055
|
-
"~/*": ["./app/*"]
|
|
2087
|
+
"~/*": ["./app/*"],
|
|
2088
|
+
"@/*": ["./app/*"]
|
|
2056
2089
|
}
|
|
2057
2090
|
},
|
|
2058
2091
|
include: ["app/**/*", "*.config.ts"]
|
|
2059
2092
|
};
|
|
2060
2093
|
await Bun.write(join(projectDir, "tsconfig.json"), JSON.stringify(tsconfig, null, 2));
|
|
2094
|
+
} else {
|
|
2095
|
+
const jsconfig = {
|
|
2096
|
+
compilerOptions: {
|
|
2097
|
+
baseUrl: ".",
|
|
2098
|
+
paths: {
|
|
2099
|
+
"~/*": ["./app/*"],
|
|
2100
|
+
"@/*": ["./app/*"]
|
|
2101
|
+
}
|
|
2102
|
+
},
|
|
2103
|
+
include: ["app/**/*"]
|
|
2104
|
+
};
|
|
2105
|
+
await Bun.write(join(projectDir, "jsconfig.json"), JSON.stringify(jsconfig, null, 2));
|
|
2061
2106
|
}
|
|
2062
2107
|
const tailwindConfig = `
|
|
2063
2108
|
/** @type {import('tailwindcss').Config} */
|
|
@@ -2341,7 +2386,7 @@ export default db;
|
|
|
2341
2386
|
* Shared types for the application.
|
|
2342
2387
|
*/
|
|
2343
2388
|
|
|
2344
|
-
export type { User, Task, TaskStats } from '
|
|
2389
|
+
export type { User, Task, TaskStats } from '~/lib/db';
|
|
2345
2390
|
|
|
2346
2391
|
export interface ActionResult<T = unknown> {
|
|
2347
2392
|
success: boolean;
|