create-nanoka-app 1.2.0 → 1.4.0

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 CHANGED
@@ -43,7 +43,8 @@ async function copyTemplate(srcDir, destDir, vars) {
43
43
  for (const entry of entries) {
44
44
  const srcPath = join(srcDir, entry.name);
45
45
  const isTmpl = extname(entry.name) === ".tmpl";
46
- const destName = isTmpl ? basename(entry.name, ".tmpl") : entry.name;
46
+ const isGitignore = !entry.isDirectory() && entry.name === "gitignore";
47
+ const destName = isGitignore ? ".gitignore" : isTmpl ? basename(entry.name, ".tmpl") : entry.name;
47
48
  const destPath = join(destDir, destName);
48
49
  if (entry.isDirectory()) {
49
50
  await copyTemplate(srcPath, destPath, vars);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nanoka-app",
3
- "version": "1.2.0",
3
+ "version": "1.4.0",
4
4
  "description": "Create a new Nanoka (Hono + D1) project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -0,0 +1,4 @@
1
+ node_modules
2
+ dist
3
+ .wrangler
4
+ .dev.vars
@@ -0,0 +1,18 @@
1
+ // Wrangler configuration. See https://developers.cloudflare.com/workers/wrangler/configuration/
2
+ {
3
+ "name": "{{packageName}}",
4
+ "main": "src/index.ts",
5
+ "compatibility_date": "2025-04-01",
6
+ "compatibility_flags": ["nodejs_compat"],
7
+ "d1_databases": [
8
+ {
9
+ "binding": "DB",
10
+ "database_name": "{{packageName}}",
11
+ "database_id": "00000000-0000-0000-0000-000000000000",
12
+ "migrations_dir": "drizzle/migrations"
13
+ }
14
+ ],
15
+ "vars": {
16
+ "ENVIRONMENT": "development"
17
+ }
18
+ }
@@ -1,13 +0,0 @@
1
- name = "{{packageName}}"
2
- main = "src/index.ts"
3
- compatibility_date = "2025-04-01"
4
- compatibility_flags = ["nodejs_compat"]
5
-
6
- [[d1_databases]]
7
- binding = "DB"
8
- database_name = "{{packageName}}"
9
- database_id = "00000000-0000-0000-0000-000000000000"
10
- migrations_dir = "drizzle/migrations"
11
-
12
- [vars]
13
- ENVIRONMENT = "development"