Skip to content

Commit

Permalink
Make naming consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov committed Apr 19, 2024
1 parent 0c39b4f commit a193bd3
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 10 deletions.
3 changes: 2 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
"bin": "n8n"
},
"scripts": {
"benchmark": "pnpm build && NODE_ENV=benchmark node dist/benchmarks/main.js",
"benchmark": "pnpm build:benchmark && NODE_ENV=benchmark node dist/benchmarks/main.js",
"clean": "rimraf dist .turbo",
"typecheck": "tsc",
"build": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && node scripts/build.mjs",
"build:benchmark": "tsc -p tsconfig.benchmark.json && tsc-alias -p tsconfig.benchmark.json && node scripts/build.mjs",
"buildAndDev": "pnpm run build && pnpm run dev",
"dev": "concurrently -k -n \"TypeScript,Node\" -c \"yellow.bold,cyan.bold\" \"npm run watch\" \"nodemon\"",
"dev:worker": "concurrently -k -n \"TypeScript,Node\" -c \"yellow.bold,cyan.bold\" \"npm run watch\" \"nodemon worker\"",
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import 'reflect-metadata';
import path from 'node:path';
import glob from 'fast-glob';
// eslint-disable-next-line import/no-extraneous-dependencies
import Bench from 'tinybench';
// eslint-disable-next-line import/no-extraneous-dependencies
import { withCodSpeed } from '@codspeed/tinybench-plugin';
import type { Task } from './types';
import { hooks } from './hooks';

/* eslint-disable import/no-extraneous-dependencies */
import { withCodSpeed } from '@codspeed/tinybench-plugin';
import Bench from 'tinybench';
/* eslint-ensable import/no-extraneous-dependencies */

const tasks: Task[] = [];

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

async function loadTasks() {
const files = await glob('**/*.tasks.js', {
cwd: path.join('dist', 'benchmarks'),
cwd: path.join('dist', 'benchmark'),
absolute: true,
});

Expand Down
File renamed without changes.
7 changes: 4 additions & 3 deletions packages/cli/tsconfig.benchmark.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"extends": ["./tsconfig.json", "../../tsconfig.build.json"],
"compilerOptions": {
"rootDir": ".",
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/benchmark.tsbuildinfo"
}
// "include": ["test/benchmark/**/*.ts"]
},
"include": ["src/**/*.ts", "src/benchmark/**/*.ts"],
"exclude": ["test/**"]
}
2 changes: 1 addition & 1 deletion packages/cli/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"tsBuildInfoFile": "dist/build.tsbuildinfo"
},
"include": ["src/**/*.ts"],
"exclude": ["test/**"]
"exclude": ["test/**", "src/benchmarks/**"]
}

0 comments on commit a193bd3

Please sign in to comment.