fix: Unknown file extension '.ts' issue

This commit is contained in:
Shreyaschorge 2025-07-19 03:12:54 +05:30
parent 9ee370628d
commit 61df6d6a64
No known key found for this signature in database
3 changed files with 10 additions and 3 deletions

View File

@ -35,7 +35,7 @@
"build:raw": "next build",
"start": "next start",
"lint": "next lint",
"deploy:vercel": "ts-node scripts/deploy.ts",
"deploy:vercel": "node --loader ts-node/esm scripts/deploy.ts",
"deploy:raw": "vercel --prod",
"cleanup": "node scripts/cleanup.js"
},
@ -52,4 +52,4 @@
"@types/node": "^22.13.10",
"typescript": "^5.6.3"
}
}
}

View File

@ -7,7 +7,7 @@ import inquirer from 'inquirer';
import dotenv from 'dotenv';
import crypto from 'crypto';
import { Vercel } from '@vercel/sdk';
import { APP_NAME, APP_BUTTON_TEXT } from '../src/lib/constants';
import { APP_NAME, APP_BUTTON_TEXT } from '../src/lib/constants.js';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const projectRoot = path.join(__dirname, '..');

View File

@ -22,6 +22,13 @@
"~/*": ["./src/*"]
}
},
"ts-node": {
"esm": true,
"compilerOptions": {
"module": "ES2020",
"moduleResolution": "node"
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}