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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bosia",
3
- "version": "0.4.1",
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
- const destPath = join(dest, entry.name);
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;
@@ -3,3 +3,4 @@ dist
3
3
  build
4
4
  .bosia
5
5
  bun.lock
6
+ public/bosia-tw.css
@@ -0,0 +1,12 @@
1
+ node_modules/
2
+ dist/
3
+ .bosia/
4
+ .DS_Store
5
+ *.log
6
+
7
+ # Generated Tailwind output
8
+ public/bosia-tw.css
9
+
10
+ # Local env overrides — never commit secrets
11
+ .env*.local
12
+ .env
@@ -3,3 +3,4 @@ dist
3
3
  build
4
4
  .bosia
5
5
  bun.lock
6
+ public/bosia-tw.css
@@ -0,0 +1,12 @@
1
+ node_modules/
2
+ dist/
3
+ .bosia/
4
+ .DS_Store
5
+ *.log
6
+
7
+ # Generated Tailwind output
8
+ public/bosia-tw.css
9
+
10
+ # Local env overrides — never commit secrets
11
+ .env*.local
12
+ .env
@@ -3,3 +3,4 @@ dist
3
3
  build
4
4
  .bosia
5
5
  bun.lock
6
+ public/bosia-tw.css
@@ -0,0 +1,12 @@
1
+ node_modules/
2
+ dist/
3
+ .bosia/
4
+ .DS_Store
5
+ *.log
6
+
7
+ # Generated Tailwind output
8
+ public/bosia-tw.css
9
+
10
+ # Local env overrides — never commit secrets
11
+ .env*.local
12
+ .env