npm version update and setup script fix

This commit is contained in:
Leon van Zyl
2025-11-30 14:59:36 +02:00
parent 489e1b6bcf
commit ab4d9023a7
3 changed files with 8 additions and 5 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "create-agentic-app",
"version": "1.1.19",
"version": "1.1.20",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "create-agentic-app",
"version": "1.1.19",
"version": "1.1.20",
"license": "MIT",
"dependencies": {
"chalk": "^5.3.0",

View File

@@ -1,6 +1,6 @@
{
"name": "create-agentic-app",
"version": "1.1.19",
"version": "1.1.20",
"description": "Scaffold a new agentic AI application with Next.js, Better Auth, and AI SDK",
"type": "module",
"bin": {

View File

@@ -7,9 +7,12 @@
import { existsSync, copyFileSync, readFileSync } from "fs";
import { createInterface } from "readline";
import { execSync } from "child_process";
import { join } from "path";
import { dirname, join } from "path";
import { fileURLToPath } from "url";
const ROOT_DIR = join(import.meta.dirname, "..");
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const ROOT_DIR = join(__dirname, "..");
const ENV_EXAMPLE = join(ROOT_DIR, "env.example");
const ENV_FILE = join(ROOT_DIR, ".env");