arri 0.57.4 → 0.57.5

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/cli.cjs CHANGED
@@ -96,11 +96,14 @@ async function startBuild(config, skipCodeGen = false) {
96
96
  );
97
97
  const def = JSON.parse(fs.readFileSync(defJson, { encoding: "utf-8" }));
98
98
  if (codegenUtils.isAppDefinition(def) && clientCount > 0) {
99
- dev.logger.log(`Generating ${clientCount} clients`);
99
+ const startTime = (/* @__PURE__ */ new Date()).getTime();
100
+ dev.logger.log(`Generating ${clientCount} client(s)...`);
100
101
  await Promise.all(
101
102
  config.generators.map((plugin) => plugin.generator(def))
102
103
  );
103
- dev.logger.log(`${clientCount} clients generated`);
104
+ dev.logger.log(
105
+ `${clientCount} client(s) generated in ${( new Date()).getTime() - startTime}ms`
106
+ );
104
107
  } else {
105
108
  dev.logger.warn(
106
109
  "No client generators specified. Skipping client codegen."
@@ -213,7 +216,8 @@ async function createCodegenEntryFile(config) {
213
216
  writeFileSync(
214
217
  path.resolve(__dirname, "../.output", "__definition.json"),
215
218
  JSON.stringify(def),
216
- );`,
219
+ );
220
+ process.exit(0);`,
217
221
  { tabWidth: 4, parser: "typescript" }
218
222
  );
219
223
  await fs__default.writeFile(
package/dist/cli.mjs CHANGED
@@ -83,11 +83,14 @@ async function startBuild(config, skipCodeGen = false) {
83
83
  );
84
84
  const def = JSON.parse(readFileSync(defJson, { encoding: "utf-8" }));
85
85
  if (isAppDefinition(def) && clientCount > 0) {
86
- logger.log(`Generating ${clientCount} clients`);
86
+ const startTime = (/* @__PURE__ */ new Date()).getTime();
87
+ logger.log(`Generating ${clientCount} client(s)...`);
87
88
  await Promise.all(
88
89
  config.generators.map((plugin) => plugin.generator(def))
89
90
  );
90
- logger.log(`${clientCount} clients generated`);
91
+ logger.log(
92
+ `${clientCount} client(s) generated in ${( new Date()).getTime() - startTime}ms`
93
+ );
91
94
  } else {
92
95
  logger.warn(
93
96
  "No client generators specified. Skipping client codegen."
@@ -200,7 +203,8 @@ async function createCodegenEntryFile(config) {
200
203
  writeFileSync(
201
204
  path.resolve(__dirname, "../.output", "__definition.json"),
202
205
  JSON.stringify(def),
203
- );`,
206
+ );
207
+ process.exit(0);`,
204
208
  { tabWidth: 4, parser: "typescript" }
205
209
  );
206
210
  await fs.writeFile(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arri",
3
- "version": "0.57.4",
3
+ "version": "0.57.5",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -39,12 +39,12 @@
39
39
  "ofetch": "^1.3.4",
40
40
  "pathe": "^1.1.2",
41
41
  "prettier": "^3.3.3",
42
- "@arrirpc/codegen-dart": "0.57.4",
43
- "@arrirpc/codegen-rust": "0.57.4",
44
- "@arrirpc/schema": "0.57.4",
45
- "@arrirpc/codegen-kotlin": "0.57.4",
46
- "@arrirpc/codegen-utils": "0.57.4",
47
- "@arrirpc/codegen-ts": "0.57.4"
42
+ "@arrirpc/codegen-dart": "0.57.5",
43
+ "@arrirpc/codegen-rust": "0.57.5",
44
+ "@arrirpc/codegen-ts": "0.57.5",
45
+ "@arrirpc/codegen-utils": "0.57.5",
46
+ "@arrirpc/schema": "0.57.5",
47
+ "@arrirpc/codegen-kotlin": "0.57.5"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/degit": "^2.8.6"