@blimu/codegen 0.5.0 → 0.5.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.
@@ -43,7 +43,7 @@
43
43
  "build": "tsup",
44
44
  "typecheck": "tsc -p tsconfig.json --noEmit",
45
45
  "lint": "eslint .",
46
- "format": "eslint --fix . && prettier --write .",
46
+ "format": "eslint --fix .",
47
47
  "prepublishOnly": "npm run build && npm run typecheck"
48
48
  },
49
49
  "dependencies": {
@@ -1,6 +1,6 @@
1
- import { FetchClient } from '@blimu/fetch';
1
+ import type { FetchClient } from '@blimu/fetch';
2
2
  {{#if (serviceUsesSchema Service)}}
3
- import * as Schema from "../schema";
3
+ import type * as Schema from "../schema";
4
4
  {{/if}}
5
5
  {{#if Client.includeQueryKeys}}
6
6
  {{#if (hasAnyOptionalQueryKeyParams Service)}}
@@ -1,7 +1,13 @@
1
1
  import { defineConfig } from "tsup";
2
2
 
3
3
  export default defineConfig({
4
- entry: ["{{Client.srcDir}}/**/*.ts"],
4
+ entry: [
5
+ "{{Client.srcDir}}/index.ts",
6
+ "{{Client.srcDir}}/services/*.ts",
7
+ "{{Client.srcDir}}/schema.ts",
8
+ "{{Client.srcDir}}/client.ts",
9
+ "{{Client.srcDir}}/utils.ts",
10
+ ],
5
11
  format: ["cjs", "esm"],
6
12
  dts: true,
7
13
  splitting: false,
package/dist/index.js CHANGED
@@ -3108,7 +3108,7 @@ var TypeScriptGeneratorService = class _TypeScriptGeneratorService {
3108
3108
  });
3109
3109
  Handlebars2.registerHelper("getAllDependencies", (client) => {
3110
3110
  const deps = {
3111
- "@blimu/fetch": "^0.2.0",
3111
+ "@blimu/fetch": "^0.4.0",
3112
3112
  zod: "^4.3.5"
3113
3113
  };
3114
3114
  if (client.predefinedTypes) {
@@ -3483,7 +3483,7 @@ var TypeScriptGeneratorService = class _TypeScriptGeneratorService {
3483
3483
  const content = `import { defineConfig } from "tsup";
3484
3484
 
3485
3485
  export default defineConfig({
3486
- entry: ["${srcDir}/**/*.ts"],
3486
+ entry: ["${srcDir}/index.ts"],
3487
3487
  format: ["cjs", "esm"],
3488
3488
  dts: {
3489
3489
  resolve: true,