@farm.js/create-app 0.1.36 → 0.1.37
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 +9 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -15
- package/dist/index.mjs.map +1 -1
- package/dist/{rolldown-runtime-VH7oDXx4.js → rolldown-runtime-CmQyd0Gu.js} +1 -2
- package/dist/utils.js +2 -3
- package/dist/utils.mjs +1 -2
- package/package.json +1 -1
- package/templates/_renderers/preact/package.json +5 -5
- package/templates/_renderers/solid/package.json +4 -4
- package/templates/_renderers/svelte/package.json +4 -4
- package/templates/_renderers/vue/package.json +6 -6
- package/templates/auth/package.json +7 -7
- package/templates/basic/package.json +6 -6
- package/templates/better-auth/package.json +7 -7
- package/templates/react-compiler/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -173,12 +173,10 @@ Label.displayName = "Label";
|
|
|
173
173
|
`;
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
|
|
177
|
-
//#region ../farm-cli/src/ui-registry.ts
|
|
176
|
+
// ../farm-cli/src/ui-registry.ts
|
|
178
177
|
/** Value written into a generated `components.json` as `registries.farm.url`. */
|
|
179
178
|
const UI_REGISTRY_URL_TEMPLATE = "https://farmjs.dev/r/{name}.json";
|
|
180
|
-
|
|
181
|
-
//#region ../farm-cli/src/ui-feature-registry.ts
|
|
179
|
+
// ../farm-cli/src/ui-feature-registry.ts
|
|
182
180
|
async function installUIFeature(input) {
|
|
183
181
|
const feature = input.definition.ui;
|
|
184
182
|
if (!feature) {
|
|
@@ -1760,8 +1758,7 @@ function readObject(value) {
|
|
|
1760
1758
|
function pushResultPath(list, filePath) {
|
|
1761
1759
|
if (!list.includes(filePath)) list.push(filePath);
|
|
1762
1760
|
}
|
|
1763
|
-
|
|
1764
|
-
//#region ../farm-cli/src/add-integration.ts
|
|
1761
|
+
// ../farm-cli/src/add-integration.ts
|
|
1765
1762
|
const PROVIDERS = [
|
|
1766
1763
|
{
|
|
1767
1764
|
provider: "ai",
|
|
@@ -2135,7 +2132,7 @@ export const autumnIntegration = autumn({
|
|
|
2135
2132
|
"BETTER_AUTH_DATABASE_PATH"
|
|
2136
2133
|
],
|
|
2137
2134
|
dependencies: {
|
|
2138
|
-
"better-auth": "^1.
|
|
2135
|
+
"better-auth": "^1.6.22",
|
|
2139
2136
|
"better-sqlite3": "^12.6.2"
|
|
2140
2137
|
},
|
|
2141
2138
|
devDependencies: { "@types/better-sqlite3": "^7.6.13" },
|
|
@@ -2208,7 +2205,7 @@ export const betterAuthIntegration = betterAuth({
|
|
|
2208
2205
|
"AUTH_GITHUB_ID",
|
|
2209
2206
|
"AUTH_GITHUB_SECRET"
|
|
2210
2207
|
],
|
|
2211
|
-
dependencies: { "@auth/core": "0.
|
|
2208
|
+
dependencies: { "@auth/core": "^0.41.3" },
|
|
2212
2209
|
setupFiles: [{
|
|
2213
2210
|
path: "src/lib/auth.ts",
|
|
2214
2211
|
source: () => `import { Auth } from "@auth/core";
|
|
@@ -2691,8 +2688,7 @@ function toImportPath(relativePath) {
|
|
|
2691
2688
|
function escapeRegExp(input) {
|
|
2692
2689
|
return input.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2693
2690
|
}
|
|
2694
|
-
|
|
2695
|
-
//#region ../farm-cli/src/telemetry-contract.ts
|
|
2691
|
+
// ../farm-cli/src/telemetry-contract.ts
|
|
2696
2692
|
const FARM_CREATE_APP_TELEMETRY_COMMANDS = ["create", "list-templates"];
|
|
2697
2693
|
const FARM_TELEMETRY_TEMPLATES = [
|
|
2698
2694
|
"basic",
|
|
@@ -2728,8 +2724,7 @@ const FARM_TELEMETRY_PACKAGE_MANAGERS = [
|
|
|
2728
2724
|
"yarn",
|
|
2729
2725
|
"bun"
|
|
2730
2726
|
];
|
|
2731
|
-
|
|
2732
|
-
//#region ../farm-cli/src/telemetry.ts
|
|
2727
|
+
// ../farm-cli/src/telemetry.ts
|
|
2733
2728
|
const TELEMETRY_SCHEMA_VERSION = 1;
|
|
2734
2729
|
const DEFAULT_TELEMETRY_ENDPOINT = "https://farmjs.dev/api/telemetry/v1/events";
|
|
2735
2730
|
const TELEMETRY_NOTICE_URL = "https://farmjs.dev/docs/telemetry";
|
|
@@ -3055,8 +3050,7 @@ function normalizePlatform(value) {
|
|
|
3055
3050
|
function normalizeArchitecture(value) {
|
|
3056
3051
|
return value === "arm64" || value === "x64" ? value : "other";
|
|
3057
3052
|
}
|
|
3058
|
-
|
|
3059
|
-
//#region src/index.ts
|
|
3053
|
+
// src/index.ts
|
|
3060
3054
|
const templateDetails = {
|
|
3061
3055
|
basic: {
|
|
3062
3056
|
title: "Basic starter",
|
|
@@ -3666,7 +3660,6 @@ async function updatePackageManagerInstructions(projectPath, packageManager) {
|
|
|
3666
3660
|
}
|
|
3667
3661
|
}));
|
|
3668
3662
|
}
|
|
3669
|
-
//#endregion
|
|
3670
3663
|
export { createApp, detectPackageManager, installDependencies };
|
|
3671
3664
|
|
|
3672
3665
|
//# sourceMappingURL=index.mjs.map
|