bosia 0.4.1 → 0.4.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/package.json +2 -1
- package/src/cli/create.ts +4 -1
- package/templates/default/.prettierignore +1 -0
- package/templates/default/_gitignore +12 -0
- package/templates/demo/.prettierignore +1 -0
- package/templates/demo/_gitignore +12 -0
- package/templates/todo/.prettierignore +1 -0
- package/templates/todo/_gitignore +12 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bosia",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A fast, batteries-included fullstack framework — SSR · Svelte 5 Runes · Bun · ElysiaJS. File-based routing inspired by SvelteKit. No Node.js, no Vite, no adapters.",
|
|
6
6
|
"keywords": [
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"check": "tsc --noEmit && prettier --check .",
|
|
44
|
+
"check:templates": "bun scripts/check-templates.ts",
|
|
44
45
|
"test": "bun test",
|
|
45
46
|
"test:watch": "bun test --watch"
|
|
46
47
|
},
|
package/src/cli/create.ts
CHANGED
|
@@ -148,7 +148,10 @@ function copyDir(src: string, dest: string, projectName: string, isLocal: boolea
|
|
|
148
148
|
mkdirSync(dest, { recursive: true });
|
|
149
149
|
for (const entry of readdirSync(src, { withFileTypes: true })) {
|
|
150
150
|
const srcPath = join(src, entry.name);
|
|
151
|
-
|
|
151
|
+
// npm pack strips `.gitignore` from published packages, so templates ship
|
|
152
|
+
// it as `_gitignore` and we restore the dotfile name on copy.
|
|
153
|
+
const destName = entry.name === "_gitignore" ? ".gitignore" : entry.name;
|
|
154
|
+
const destPath = join(dest, destName);
|
|
152
155
|
|
|
153
156
|
// Do not copy instructions.txt or template.json to the final project
|
|
154
157
|
if (entry.name === "instructions.txt" || entry.name === "template.json") continue;
|