@farm.js/create-app 0.1.36 → 0.1.38
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 +5 -5
- package/templates/_renderers/svelte/package.json +5 -5
- 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.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
2
|
+
const require_rolldown_runtime = require("./rolldown-runtime-CmQyd0Gu.js");
|
|
3
3
|
const require_utils = require("./utils.js");
|
|
4
4
|
let prompts = require("prompts");
|
|
5
5
|
prompts = require_rolldown_runtime.__toESM(prompts);
|
|
@@ -180,12 +180,10 @@ Label.displayName = "Label";
|
|
|
180
180
|
`;
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
-
|
|
184
|
-
//#region ../farm-cli/src/ui-registry.ts
|
|
183
|
+
// ../farm-cli/src/ui-registry.ts
|
|
185
184
|
/** Value written into a generated `components.json` as `registries.farm.url`. */
|
|
186
185
|
const UI_REGISTRY_URL_TEMPLATE = "https://farmjs.dev/r/{name}.json";
|
|
187
|
-
|
|
188
|
-
//#region ../farm-cli/src/ui-feature-registry.ts
|
|
186
|
+
// ../farm-cli/src/ui-feature-registry.ts
|
|
189
187
|
async function installUIFeature(input) {
|
|
190
188
|
const feature = input.definition.ui;
|
|
191
189
|
if (!feature) {
|
|
@@ -1767,8 +1765,7 @@ function readObject(value) {
|
|
|
1767
1765
|
function pushResultPath(list, filePath) {
|
|
1768
1766
|
if (!list.includes(filePath)) list.push(filePath);
|
|
1769
1767
|
}
|
|
1770
|
-
|
|
1771
|
-
//#region ../farm-cli/src/add-integration.ts
|
|
1768
|
+
// ../farm-cli/src/add-integration.ts
|
|
1772
1769
|
const PROVIDERS = [
|
|
1773
1770
|
{
|
|
1774
1771
|
provider: "ai",
|
|
@@ -2142,7 +2139,7 @@ export const autumnIntegration = autumn({
|
|
|
2142
2139
|
"BETTER_AUTH_DATABASE_PATH"
|
|
2143
2140
|
],
|
|
2144
2141
|
dependencies: {
|
|
2145
|
-
"better-auth": "^1.
|
|
2142
|
+
"better-auth": "^1.6.22",
|
|
2146
2143
|
"better-sqlite3": "^12.6.2"
|
|
2147
2144
|
},
|
|
2148
2145
|
devDependencies: { "@types/better-sqlite3": "^7.6.13" },
|
|
@@ -2215,7 +2212,7 @@ export const betterAuthIntegration = betterAuth({
|
|
|
2215
2212
|
"AUTH_GITHUB_ID",
|
|
2216
2213
|
"AUTH_GITHUB_SECRET"
|
|
2217
2214
|
],
|
|
2218
|
-
dependencies: { "@auth/core": "0.
|
|
2215
|
+
dependencies: { "@auth/core": "^0.41.3" },
|
|
2219
2216
|
setupFiles: [{
|
|
2220
2217
|
path: "src/lib/auth.ts",
|
|
2221
2218
|
source: () => `import { Auth } from "@auth/core";
|
|
@@ -2698,8 +2695,7 @@ function toImportPath(relativePath) {
|
|
|
2698
2695
|
function escapeRegExp(input) {
|
|
2699
2696
|
return input.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2700
2697
|
}
|
|
2701
|
-
|
|
2702
|
-
//#region ../farm-cli/src/telemetry-contract.ts
|
|
2698
|
+
// ../farm-cli/src/telemetry-contract.ts
|
|
2703
2699
|
const FARM_CREATE_APP_TELEMETRY_COMMANDS = ["create", "list-templates"];
|
|
2704
2700
|
const FARM_TELEMETRY_TEMPLATES = [
|
|
2705
2701
|
"basic",
|
|
@@ -2735,8 +2731,7 @@ const FARM_TELEMETRY_PACKAGE_MANAGERS = [
|
|
|
2735
2731
|
"yarn",
|
|
2736
2732
|
"bun"
|
|
2737
2733
|
];
|
|
2738
|
-
|
|
2739
|
-
//#region ../farm-cli/src/telemetry.ts
|
|
2734
|
+
// ../farm-cli/src/telemetry.ts
|
|
2740
2735
|
const TELEMETRY_SCHEMA_VERSION = 1;
|
|
2741
2736
|
const DEFAULT_TELEMETRY_ENDPOINT = "https://farmjs.dev/api/telemetry/v1/events";
|
|
2742
2737
|
const TELEMETRY_NOTICE_URL = "https://farmjs.dev/docs/telemetry";
|
|
@@ -3062,8 +3057,7 @@ function normalizePlatform(value) {
|
|
|
3062
3057
|
function normalizeArchitecture(value) {
|
|
3063
3058
|
return value === "arm64" || value === "x64" ? value : "other";
|
|
3064
3059
|
}
|
|
3065
|
-
|
|
3066
|
-
//#region src/index.ts
|
|
3060
|
+
// src/index.ts
|
|
3067
3061
|
const templateDetails = {
|
|
3068
3062
|
basic: {
|
|
3069
3063
|
title: "Basic starter",
|
|
@@ -3673,7 +3667,6 @@ async function updatePackageManagerInstructions(projectPath, packageManager) {
|
|
|
3673
3667
|
}
|
|
3674
3668
|
}));
|
|
3675
3669
|
}
|
|
3676
|
-
//#endregion
|
|
3677
3670
|
exports.createApp = createApp;
|
|
3678
3671
|
exports.detectPackageManager = detectPackageManager;
|
|
3679
3672
|
exports.installDependencies = installDependencies;
|