unoverse 0.1.15 → 0.1.16
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/lib/create.mjs +6 -1
- package/package.json +1 -1
package/lib/create.mjs
CHANGED
|
@@ -72,8 +72,13 @@ async function validateRegistryToken(token) {
|
|
|
72
72
|
function resolveTarget(nameArg) {
|
|
73
73
|
const dir = nameArg || ".";
|
|
74
74
|
const here = dir === ".";
|
|
75
|
+
// DOTFILES DO NOT COUNT. A folder holding only .git, .claude, .vscode or .DS_Store is
|
|
76
|
+
// empty to the person standing in it: that is tool and editor config they had before
|
|
77
|
+
// they decided to build anything. Naming a few exceptions was not enough — a fresh
|
|
78
|
+
// folder opened in an editor already has .claude/ in it, and refusing that reads as
|
|
79
|
+
// the tool being broken.
|
|
75
80
|
const existing = existsSync(dir)
|
|
76
|
-
? readdirSync(dir).filter((f) => f
|
|
81
|
+
? readdirSync(dir).filter((f) => !f.startsWith("."))
|
|
77
82
|
: [];
|
|
78
83
|
if (existing.length) {
|
|
79
84
|
fail(here ? "this folder is not empty" : `./${dir} is not empty`);
|
package/package.json
CHANGED