Skip to content

Commit bc42b86

Browse files
authored
run bechmarks mostly dist file (#425)
1 parent c662d1c commit bc42b86

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Bench } from "tinybench"
22
import { withCodSpeed } from "@codspeed/tinybench-plugin"
33
import * as fs from "fs"
4-
import { analyze } from '../src/index.js'
4+
import { analyze } from '../dist/analyze-css.js'
55
import { namedColors, systemColors, colorKeywords } from "../src/values/colors.js"
66

77
let filelist = fs.readdirSync('./src/__fixtures__')

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"scripts": {
3030
"test": "uvu",
3131
"build": "vite build",
32-
"benchmark": "node benchmark/benchmark.js"
32+
"benchmark": "npm run build && node benchmark/benchmark.js"
3333
},
3434
"keywords": [
3535
"projectwallace",

0 commit comments

Comments
 (0)