@staff0rd/assist 0.189.1 → 0.189.2
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 +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.189.
|
|
9
|
+
version: "0.189.2",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -425,7 +425,7 @@ var gitignoreEntries = [".assist-*", ".assist/*.db*"];
|
|
|
425
425
|
function ensureGitignore(dir) {
|
|
426
426
|
const gitignorePath = join2(dir, ".gitignore");
|
|
427
427
|
const existing = existsSync2(gitignorePath) ? readFileSync3(gitignorePath, "utf-8") : "";
|
|
428
|
-
const lines = existing.split(
|
|
428
|
+
const lines = existing.split(/\r?\n/);
|
|
429
429
|
const missing = gitignoreEntries.filter((entry) => !lines.includes(entry));
|
|
430
430
|
if (missing.length === 0) return;
|
|
431
431
|
const suffix = existing.length > 0 && !existing.endsWith("\n") ? "\n" : "";
|