@kanjijs/cli 0.2.0-beta.44 → 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
@@ -20330,6 +20330,7 @@ export class ${className}Module {}
20330
20330
  await import_fs_extra.default.writeFile(path2.join(targetDir, `${lowerName}.module.ts`), moduleTpl);
20331
20331
  console.log(import_picocolors2.default.white(`CREATE ${lowerName}.module.ts`));
20332
20332
  const testTpl = `import { Test } from "@kanjijs/testing";
20333
+ import { describe, test, expect } from "bun:test";
20333
20334
  import { ${className}Controller } from "./${lowerName}.controller";
20334
20335
  import { ${className}Service } from "./${lowerName}.service";
20335
20336
 
@@ -20405,15 +20406,18 @@ class NewCommand extends Command2 {
20405
20406
  }
20406
20407
  console.log(import_picocolors3.default.blue(`Creating project in ${targetDir}...`));
20407
20408
  try {
20409
+ const filter = (src) => {
20410
+ return !src.includes("node_modules") && !src.includes(".git");
20411
+ };
20408
20412
  if (!await import_fs_extra2.default.pathExists(templateDir)) {
20409
20413
  const devTemplateDir = path3.join(process.cwd(), "packages/cli/templates/starter");
20410
20414
  if (await import_fs_extra2.default.pathExists(devTemplateDir)) {
20411
- await import_fs_extra2.default.copy(devTemplateDir, targetDir);
20415
+ await import_fs_extra2.default.copy(devTemplateDir, targetDir, { filter });
20412
20416
  } else {
20413
20417
  throw new Error(`Template not found at ${templateDir}`);
20414
20418
  }
20415
20419
  } else {
20416
- await import_fs_extra2.default.copy(templateDir, targetDir);
20420
+ await import_fs_extra2.default.copy(templateDir, targetDir, { filter });
20417
20421
  }
20418
20422
  const pkgJsonPath = path3.join(targetDir, "package.json");
20419
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.44",
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.44"
24
+ "@kanjijs/openapi": "^0.2.0-beta.46"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/fs-extra": "^11.0.4"
@@ -7,19 +7,18 @@
7
7
  "start": "bun run src/main.ts"
8
8
  },
9
9
  "dependencies": {
10
- "@kanjijs/core": "^0.2.0-beta.44",
11
- "@kanjijs/platform-bun": "^0.2.0-beta.44",
12
- "@kanjijs/platform-hono": "^0.2.0-beta.44",
13
- "@kanjijs/auth": "^0.2.0-beta.44",
14
- "@kanjijs/logger": "^0.2.0-beta.44",
15
- "@kanjijs/throttler": "^0.2.0-beta.44",
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
- "bun-types": "latest",
23
- "@kanjijs/testing": "^0.2.0-beta.44"
22
+ "@kanjijs/testing": "^0.2.0-beta.46"
24
23
  }
25
24
  }