From d1640a0136bb996003194ffe63ce59bfac67681c Mon Sep 17 00:00:00 2001 From: Bart Veneman Date: Fri, 9 Aug 2024 15:16:15 +0200 Subject: [PATCH] run bechmarks mostly dist file --- benchmark/benchmark.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmark/benchmark.js b/benchmark/benchmark.js index 561f005..42cc6fb 100644 --- a/benchmark/benchmark.js +++ b/benchmark/benchmark.js @@ -1,7 +1,7 @@ import { Bench } from "tinybench" import { withCodSpeed } from "@codspeed/tinybench-plugin" import * as fs from "fs" -import { analyze } from '../src/index.js' +import { analyze } from '../dist/analyze-css.js' import { namedColors, systemColors, colorKeywords } from "../src/values/colors.js" let filelist = fs.readdirSync('./src/__fixtures__') diff --git a/package.json b/package.json index 147dc6a..7158bc2 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "scripts": { "test": "uvu", "build": "vite build", - "benchmark": "node benchmark/benchmark.js" + "benchmark": "npm run build && node benchmark/benchmark.js" }, "keywords": [ "projectwallace",