@@ -5,7 +5,7 @@ import Client, {
55import { stat , readFile } from "node:fs/promises" ;
66import { basename , dirname , join , relative } from "node:path" ;
77import { loginIfNeeded } from "./lib/auth" ;
8- import { migrateBlinkToData } from "./lib/migrate" ;
8+ import { migrateDataToBlink } from "./lib/migrate" ;
99import { existsSync } from "node:fs" ;
1010import { mkdir , writeFile , readdir } from "fs/promises" ;
1111import { select , confirm , isCancel , spinner } from "@clack/prompts" ;
@@ -26,8 +26,8 @@ export default async function deploy(
2626 directory = process . cwd ( ) ;
2727 }
2828
29- // Auto-migrate .blink to data if it exists
30- await migrateBlinkToData ( directory ) ;
29+ // Auto-migrate data to .blink if it exists
30+ await migrateDataToBlink ( directory ) ;
3131
3232 const token = await loginIfNeeded ( ) ;
3333 const client = new Client ( {
@@ -54,8 +54,8 @@ export default async function deploy(
5454 // Find the nearest config file if it exists.
5555 const rootDirectory = dirname ( packageJSON ) ;
5656
57- // Check for a data directory. This stores the agent's deploy config.
58- const deployConfigPath = join ( rootDirectory , "data " , "config.json" ) ;
57+ // Check for a .blink directory. This stores the agent's deploy config.
58+ const deployConfigPath = join ( rootDirectory , ".blink " , "config.json" ) ;
5959
6060 let deployConfig : DeployConfig = { } ;
6161 if ( existsSync ( deployConfigPath ) ) {
@@ -549,7 +549,7 @@ async function collectSourceFiles(rootDir: string): Promise<string[]> {
549549 const defaultIgnorePatterns = [
550550 ".git" ,
551551 "node_modules" ,
552- "data " ,
552+ ".blink " ,
553553 ".env" ,
554554 ".env.*" ,
555555 ] ;
0 commit comments