@kanjijs/cli 0.2.0-beta.45 → 0.2.0-beta.46

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
@@ -20406,15 +20406,18 @@ class NewCommand extends Command2 {
20406
20406
  }
20407
20407
  console.log(import_picocolors3.default.blue(`Creating project in ${targetDir}...`));
20408
20408
  try {
20409
+ const filter = (src) => {
20410
+ return !src.includes("node_modules") && !src.includes(".git");
20411
+ };
20409
20412
  if (!await import_fs_extra2.default.pathExists(templateDir)) {
20410
20413
  const devTemplateDir = path3.join(process.cwd(), "packages/cli/templates/starter");
20411
20414
  if (await import_fs_extra2.default.pathExists(devTemplateDir)) {
20412
- await import_fs_extra2.default.copy(devTemplateDir, targetDir);
20415
+ await import_fs_extra2.default.copy(devTemplateDir, targetDir, { filter });
20413
20416
  } else {
20414
20417
  throw new Error(`Template not found at ${templateDir}`);
20415
20418
  }
20416
20419
  } else {
20417
- await import_fs_extra2.default.copy(templateDir, targetDir);
20420
+ await import_fs_extra2.default.copy(templateDir, targetDir, { filter });
20418
20421
  }
20419
20422
  const pkgJsonPath = path3.join(targetDir, "package.json");
20420
20423
  const projectPkg = await import_fs_extra2.default.readJson(pkgJsonPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanjijs/cli",
3
- "version": "0.2.0-beta.45",
3
+ "version": "0.2.0-beta.46",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "kanji": "./dist/index.js"
@@ -21,7 +21,7 @@
21
21
  "fs-extra": "^11.3.3",
22
22
  "picocolors": "^1.1.1",
23
23
  "openapi-typescript-codegen": "^0.25.0",
24
- "@kanjijs/openapi": "^0.2.0-beta.45"
24
+ "@kanjijs/openapi": "^0.2.0-beta.46"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/fs-extra": "^11.0.4"
@@ -7,18 +7,18 @@
7
7
  "start": "bun run src/main.ts"
8
8
  },
9
9
  "dependencies": {
10
- "@kanjijs/core": "^0.2.0-beta.45",
11
- "@kanjijs/platform-bun": "^0.2.0-beta.45",
12
- "@kanjijs/platform-hono": "^0.2.0-beta.45",
13
- "@kanjijs/auth": "^0.2.0-beta.45",
14
- "@kanjijs/logger": "^0.2.0-beta.45",
15
- "@kanjijs/throttler": "^0.2.0-beta.45",
10
+ "@kanjijs/core": "^0.2.0-beta.46",
11
+ "@kanjijs/platform-bun": "^0.2.0-beta.46",
12
+ "@kanjijs/platform-hono": "^0.2.0-beta.46",
13
+ "@kanjijs/auth": "^0.2.0-beta.46",
14
+ "@kanjijs/logger": "^0.2.0-beta.46",
15
+ "@kanjijs/throttler": "^0.2.0-beta.46",
16
16
  "hono": "^4.0.0",
17
17
  "reflect-metadata": "^0.2.0",
18
18
  "zod": "^3.0.0"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/bun": "latest",
22
- "@kanjijs/testing": "^0.2.0-beta.45"
22
+ "@kanjijs/testing": "^0.2.0-beta.46"
23
23
  }
24
24
  }