Skip to content

Commit a193bd3

Browse files
committed
Make naming consistent
1 parent 0c39b4f commit a193bd3

9 files changed

+13
-10
lines changed

packages/cli/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
"bin": "n8n"
2121
},
2222
"scripts": {
23-
"benchmark": "pnpm build && NODE_ENV=benchmark node dist/benchmarks/main.js",
23+
"benchmark": "pnpm build:benchmark && NODE_ENV=benchmark node dist/benchmarks/main.js",
2424
"clean": "rimraf dist .turbo",
2525
"typecheck": "tsc",
2626
"build": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && node scripts/build.mjs",
27+
"build:benchmark": "tsc -p tsconfig.benchmark.json && tsc-alias -p tsconfig.benchmark.json && node scripts/build.mjs",
2728
"buildAndDev": "pnpm run build && pnpm run dev",
2829
"dev": "concurrently -k -n \"TypeScript,Node\" -c \"yellow.bold,cyan.bold\" \"npm run watch\" \"nodemon\"",
2930
"dev:worker": "concurrently -k -n \"TypeScript,Node\" -c \"yellow.bold,cyan.bold\" \"npm run watch\" \"nodemon worker\"",
File renamed without changes.
File renamed without changes.

packages/cli/src/benchmarks/main.ts packages/cli/src/benchmark/main.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import 'reflect-metadata';
22
import path from 'node:path';
33
import glob from 'fast-glob';
4-
// eslint-disable-next-line import/no-extraneous-dependencies
5-
import Bench from 'tinybench';
6-
// eslint-disable-next-line import/no-extraneous-dependencies
7-
import { withCodSpeed } from '@codspeed/tinybench-plugin';
84
import type { Task } from './types';
95
import { hooks } from './hooks';
106

7+
/* eslint-disable import/no-extraneous-dependencies */
8+
import { withCodSpeed } from '@codspeed/tinybench-plugin';
9+
import Bench from 'tinybench';
10+
/* eslint-ensable import/no-extraneous-dependencies */
11+
1112
const tasks: Task[] = [];
1213

1314
export function task(description: string, operation: Task['operation']) {
@@ -16,7 +17,7 @@ export function task(description: string, operation: Task['operation']) {
1617

1718
async function loadTasks() {
1819
const files = await glob('**/*.tasks.js', {
19-
cwd: path.join('dist', 'benchmarks'),
20+
cwd: path.join('dist', 'benchmark'),
2021
absolute: true,
2122
});
2223

File renamed without changes.

packages/cli/tsconfig.benchmark.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"extends": ["./tsconfig.json", "../../tsconfig.build.json"],
33
"compilerOptions": {
4-
"rootDir": ".",
4+
"rootDir": "src",
55
"outDir": "dist",
66
"tsBuildInfoFile": "dist/benchmark.tsbuildinfo"
7-
}
8-
// "include": ["test/benchmark/**/*.ts"]
7+
},
8+
"include": ["src/**/*.ts", "src/benchmark/**/*.ts"],
9+
"exclude": ["test/**"]
910
}

packages/cli/tsconfig.build.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"tsBuildInfoFile": "dist/build.tsbuildinfo"
77
},
88
"include": ["src/**/*.ts"],
9-
"exclude": ["test/**"]
9+
"exclude": ["test/**", "src/benchmarks/**"]
1010
}

0 commit comments

Comments
 (0)