Skip to content

Commit 29a8bae

Browse files
committed
Ensures data directory is ignored
Adds `data/` to the `.gitignore` to prevent local, transient, or sensitive data files from being committed to the repository. This change is applied both directly to the project's `.gitignore` and programmatically through the `init` command, standardizing its exclusion for new projects.
1 parent ab6ac83 commit 29a8bae

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ template
99
.npmignore
1010
.opencode/config.json
1111
.opencode/config.*.json
12+
data/

bin/commands/init.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ export async function init(options) {
250250
".opencode/*",
251251
"opencode.json",
252252
"opencode.example.json",
253+
"data/",
253254
];
254255
if (!existsSync(gitignorePath)) {
255256
writeFileSync(gitignorePath, gitignoreEntries.join("\n") + "\n", "utf-8");

0 commit comments

Comments
 (0)